.work-header nav { align-items: center; }
.work-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: minmax(0, 1fr); align-items: stretch; height: clamp(34rem, 68vh, 43rem); padding: 0; background: var(--green-deep); color: white; }
.work-hero > *, .work-close > * { min-width: 0; }
.work-hero-portrait { position: relative; min-height: 0; overflow: hidden; }
.work-hero-portrait::after { content: ''; position: absolute; inset: 62% 0 0; background: linear-gradient(transparent, rgb(35 50 41 / .65)); pointer-events: none; }
.work-hero-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; filter: sepia(.12); }
.work-hero-portrait figcaption { position: absolute; z-index: 1; bottom: 1.5rem; left: var(--gutter); font-size: .78rem; font-weight: 700; }
.work-hero-copy { align-self: center; padding: clamp(2.5rem, 5vw, 5rem) var(--gutter); }
.work-hero h1 { max-width: 16ch; font: 700 clamp(2.7rem, 4.4vw, 4.8rem)/1.06 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.work-hero-role { max-width: 28ch; margin-top: 1.3rem; color: var(--lime); font: 600 clamp(1.2rem, 1.9vw, 1.85rem)/1.35 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.work-hero-lede { max-width: 52ch; margin-top: clamp(2rem, 4vw, 3.5rem); font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.55; color: #e1e3d8; }
.work-hero-link { display: inline-flex; min-height: 2.75rem; align-items: center; margin-top: 1.15rem; color: white; font-weight: 700; }
.work-index { padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter); background: var(--paper-deep); }
.work-index-heading { padding-bottom: 1.25rem; }
.work-index-heading strong { color: var(--ink); font: 600 var(--type-card)/1.2 var(--display); }
.work-index-row { min-height: 7rem; display: grid; grid-template-columns: minmax(8rem, .65fr) minmax(12rem, 1.1fr) minmax(12rem, 1.35fr) minmax(10rem, 1fr) 5.5rem; align-items: center; gap: 1.4rem; padding: 1.25rem 0; border-top: 1px solid var(--line); text-decoration: none; scroll-margin-top: 6rem; }
a.work-index-row:hover { color: var(--green-soft); }
.work-index-row strong { font: 600 1.05rem/1.35 var(--display); }
.index-org, .index-task, .index-result { font-size: .88rem; line-height: 1.5; }
.index-org { color: var(--muted); }
.index-result { font-weight: 700; }
.index-arrow { font-size: 1.25rem; }
a.index-arrow { font-size: .78rem; font-weight: 700; white-space: nowrap; }
a.index-arrow:hover { color: var(--green-soft); }
.work-close { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding-top: clamp(3rem, 5vw, 5rem); padding-bottom: clamp(3rem, 5vw, 5rem); border-top: 1px solid var(--line); background: var(--paper-deep); }
.work-close h2 { max-width: 23ch; font: 700 var(--type-section)/1.12 var(--display); letter-spacing: -.03em; }
.work-close h2 { overflow-wrap: anywhere; }
.work-close p { max-width: 47rem; margin-top: 1.4rem; color: var(--muted); font-size: 1.1rem; }
.work-close .button { flex-shrink: 0; background: var(--green-deep); color: white; }
.work-close .button:hover { background: var(--green-soft); }
footer { padding: 3rem var(--gutter) 2rem; background: var(--green-deep); color: white; }
footer > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; }
footer > div:first-child strong { font: 600 clamp(1.2rem, 2vw, 2rem) var(--display); }
footer a { color: #e1e3d8; }
.work-footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #617061; }
.work-footer-links a { color: #e1e3d8; }
@media (max-width: 980px) {
  .work-header nav a:not([href="#cases"]) { display: none; }
  .work-hero { grid-template-columns: 1fr; }
  .work-hero { grid-template-rows: auto auto; height: auto; }
  .work-hero-portrait { min-height: 0; height: clamp(20rem, 45vw, 27rem); }
  .work-hero-portrait img { object-position: center 27%; }
  .work-hero-copy { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .work-index-row { grid-template-columns: minmax(8rem, .8fr) minmax(12rem, 1.2fr) minmax(11rem, 1fr) 5.5rem; }
  .index-task { display: none; }
}
@media (max-width: 680px) {
  .work-hero h1 { font-size: clamp(2.45rem, 9vw, 3.7rem); }
  .work-hero-portrait { height: clamp(18rem, 74vw, 22rem); }
  .work-hero-role { font-size: clamp(1.05rem, 4.5vw, 1.4rem); }
  .work-hero-lede { margin-top: 1.6rem; }
  .work-close { align-items: start; flex-direction: column; }
  footer > div:first-child { align-items: flex-start; flex-direction: column; }
  .work-index-row { grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: 1.1rem 0; }
  .index-org, .work-index-row strong, .index-result { grid-column: 1; }
  .index-arrow { grid-column: 2; grid-row: 1 / 4; }
}
@media (max-width: 360px) {
  .work-hero h1 { font-size: 2.25rem; }
  .work-close h2 { font-size: 1.9rem; }
}
