/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 */
/* Portfolio and case study, sharing the V3 homepage tokens. */
.inner-page h1 { font-size: var(--heading-1); }
.inner-page .site-header [aria-current] { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.inner-hero { padding-block: clamp(32px,5vw,64px) clamp(44px,6vw,80px); text-align: center; }
.breadcrumbs { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; font-size: .875rem; margin-bottom: clamp(32px,5vw,64px); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:is(:hover,:focus-visible) { text-decoration: underline; }
.inner-tag { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; line-height: 1.4; font-weight: 500; letter-spacing: 0; margin-bottom: 16px; }
.inner-tag::before { content: ""; display: block; flex: 0 0 20px; height: 22px; background: currentColor; mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='40 18 53 80'%3E%3Cpath d='M69.71 21.60 89.16 44.72H73.53L65.55 95.02H50.43L58.31 44.78H43.85L43.63 44.15Z'/%3E%3C/svg%3E"); }
.inner-hero h1 { font-size: clamp(2.4rem,5.1vw,4.65rem); font-weight: 650; max-width: 21ch; margin-inline: auto; line-height: 1.05; letter-spacing: -.055em; }
.inner-hero mark { margin-block: .08em; }
.inner-intro { max-width: 52ch; margin: 22px auto 0; color: var(--muted); font-size: clamp(1rem,1.5vw,1.125rem); }
.portfolio-section { padding-bottom: clamp(24px,5vw,64px); }
.portfolio-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-block: 0 24px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.project-filters button { padding: 9px 15px; min-height: 44px; border: 1px solid var(--ink); border-radius: 99px; background: transparent; font-size: .875rem; }
.project-filters button[aria-pressed="true"] { background: var(--lime); }
.project-filters button:not([aria-pressed="true"]):hover { background: var(--white); box-shadow: 2px 2px var(--ink); }
.project-count { font-size: .875rem; white-space: nowrap; }
.portfolio-grid, .related-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(16px,2vw,28px); }
.portfolio-project { min-width: 0; }
.portfolio-project .project-header h2 { font-size: clamp(1.2rem,2vw,1.65rem); line-height: 1.15; letter-spacing: -.035em; }
.portfolio-project .project-media { position: relative; margin-top: 2px; overflow: hidden; border-radius: 12px; }
.portfolio-project .project-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.25,1); }
.portfolio-project:is(:hover,:focus-visible) .project-media img { transform: scale(1.055); }
.portfolio-project .project-caption { margin: 0; color: var(--white); padding: 11px 14px; font-size: .875rem; }
.portfolio-featured { grid-column: 1/-1; }
.portfolio-featured .project-media img { aspect-ratio: 2.25; object-position: center 28%; }
.inner-page .section .button { border-radius: 10px; }
.case-intro h1 { max-width: 25ch; }
.case-opening { display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); border: 1px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--ink); }
.case-portrait { min-height: 480px; overflow: hidden; }
.case-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 46% center; }
.case-summary { padding: clamp(26px,4vw,56px); display: flex; flex-direction: column; justify-content: center; align-items: start; }
.case-summary h2 { font-size: clamp(1.65rem,2.8vw,2.6rem); max-width: 20ch; }
.project-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; gap: 20px; border-block: 1px solid var(--dark-line); padding-block: 22px; margin: 28px 0; }
.project-facts div:last-child { grid-column: 1/-1; }
.project-facts dt { color: var(--line); text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; margin-bottom: 6px; }
.project-facts dd { margin: 0; line-height: 1.5; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration-thickness: 1px; }
.case-summary .text-link { color: var(--lime); }
.case-story-section { display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); gap: clamp(24px,6vw,90px); align-items: start; }
.case-section-label { position: sticky; top: 115px; }
.case-section-label > p:last-child { color: var(--muted); margin-top: 8px; }
.case-prose h2 { max-width: 23ch; margin-bottom: 24px; }
.case-prose > p { margin-top: 16px; max-width: 64ch; font-size: clamp(1rem,1.5vw,1.125rem); line-height: 1.65; }
.delivery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.delivery-item { display: flex; align-items: start; gap: 18px; padding: clamp(20px,3vw,34px); border: 1px solid var(--dark-line); border-radius: 14px; background: var(--case-surface); }
.delivery-item > span { font-size: .875rem; color: var(--lime); padding-top: 3px; }
.delivery-item h3 { font-size: clamp(1.25rem,2vw,1.65rem); line-height: 1.15; }
.delivery-item p { margin-top: 14px; color: var(--line); max-width: 44ch; }
.delivery-item:last-child { grid-column: 1/-1; }
.website-figure { margin: 0; border: 1px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--white); }
.website-figure img { width: 100%; height: auto; }
.website-figure figcaption { border-top: 1px solid var(--line); padding: 14px 20px; font-size: .875rem; color: var(--muted); }
.case-outcome { padding-bottom: 0; }
.outcome-panel { background: var(--lime); padding: clamp(24px,5vw,66px); border: 1px solid var(--ink); border-radius: 20px; }
.outcome-panel h2 { max-width: 24ch; margin-bottom: 20px; }
.outcome-panel > p:not(.tag) { max-width: 68ch; font-size: clamp(1rem,1.6vw,1.125rem); }
.outcome-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.outcome-points span { border: 1px solid var(--ink); border-radius: 99px; padding: 6px 12px; font-size: .875rem; }
.related-work { padding-bottom: 0; }
.inner-page footer .button { border-radius: 10px; }
@media (max-width: 800px) {
  .portfolio-toolbar { align-items: start; flex-direction: column; gap: 12px; }
  .case-opening { grid-template-columns: minmax(0,1fr); }
  .case-portrait { min-height: 0; height: clamp(260px,60vw,440px); }
  .case-portrait img { object-position: center 32%; }
  .case-summary { padding: 28px 24px; }
  .case-story-section { grid-template-columns: minmax(0,1fr); }
  .case-section-label { position: static; }
  .delivery-grid { grid-template-columns: minmax(0,1fr); }
  .related-work .section-head { display: grid; }
}
@media (max-width: 560px) {
  .inner-hero { padding-bottom: 40px; }
  .inner-hero h1 { font-size: clamp(2.15rem,8.4vw,2.8rem); }
  .breadcrumbs { margin-bottom: 30px; font-size: .8rem; gap: 7px; }
  .portfolio-grid, .related-grid { grid-template-columns: minmax(0,1fr); }
  .portfolio-project .project-media img, .portfolio-featured .project-media img { aspect-ratio: 16/10; }
  .portfolio-project .project-caption { padding: 9px 12px; font-size: .8125rem; }
  .portfolio-project .project-header { min-height: 54px; }
  .case-intro .inner-tag { align-items: start; font-size: .75rem; }
  .case-intro .inner-tag::before { height: 18px; }
  .case-intro h1 br { display: none; }
  .project-facts { gap: 16px 10px; font-size: .875rem; }
  .delivery-item { padding: 20px; }
  .case-prose h2 br { display: none; }
  .outcome-points { flex-direction: column; align-items: start; }
}.case-intro h1 { text-wrap: balance; }
