body.case-study-page {
  --site-steel: #526877;
  --case-accent: var(--site-steel);
  --case-plate: var(--site-field);
  background: var(--site-page);
}

body.case-study-page main {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 64px);
}

.case-opening,
.case-section,
.work-navigation {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.2vw, 32px);
}

.case-opening {
  padding-block: clamp(72px, 9vw, 136px) clamp(88px, 11vw, 160px);
  border-bottom: 1px solid var(--site-divider);
}

.case-opening > *,
.case-section > *,
.work-navigation > * {
  min-width: 0;
}

.case-index,
.case-section__label,
.case-meta dt,
.case-ledger dt,
.source-list__meta,
.work-navigation__label {
  color: var(--case-accent);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.case-index {
  grid-column: 1 / 3;
  margin-bottom: clamp(28px, 4vw, 56px);
  animation: case-rise 520ms ease-out both;
}

.case-index span,
.case-section__label span {
  font-variant-numeric: tabular-nums;
}

.case-opening h1 {
  grid-column: 1 / 11;
  max-width: 10ch;
  margin-bottom: clamp(36px, 5vw, 72px);
  font-size: clamp(4rem, 7vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-wrap: balance;
  animation: case-rise 600ms 60ms ease-out both;
}

.case-standfirst {
  grid-column: 1 / 7;
  max-width: 65ch;
  margin-bottom: clamp(32px, 4vw, 56px);
  color: var(--site-muted);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.2;
  text-wrap: pretty;
  animation: case-rise 600ms 120ms ease-out both;
}

.case-meta {
  grid-column: 1 / 7;
  align-self: end;
  margin: 0;
  animation: case-rise 600ms 180ms ease-out both;
}

.case-meta > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.68fr) minmax(0, 1.32fr);
  gap: 16px clamp(20px, 2vw, 32px);
  padding-block: 14px;
  border-top: 1px solid var(--site-divider);
}

.case-meta > div:last-child {
  border-bottom: 1px solid var(--site-divider);
}

.case-meta dd,
.case-ledger dd {
  margin: 0;
}

.case-meta dd {
  color: var(--site-ink);
  line-height: 1.45;
}

.evidence-plate {
  grid-column: 4 / 12;
  margin: 0;
  border-radius: 0;
  background: var(--case-plate);
  background-image: none;
  box-shadow: none;
}

.case-opening__media.evidence-plate {
  grid-column: 8 / 13;
  grid-row: 3 / 5;
  align-self: start;
  animation: case-media 680ms 140ms ease-out both;
}

.case-opening__media picture,
.case-opening__media img {
  display: block;
  width: 100%;
}

.case-opening__media picture {
  overflow: hidden;
}

.case-opening__media img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: 50% 35%;
  transition: transform 420ms ease;
}

.case-opening__media:hover img {
  transform: scale(1.012);
}

.case-opening__media figcaption,
.evidence-plate figcaption {
  padding: 14px 0 0;
  background: var(--site-page);
  color: var(--site-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.case-section {
  padding-block: clamp(88px, 11vw, 160px);
  border-bottom: 1px solid var(--site-divider);
}

.case-section__label {
  grid-column: 1 / 3;
  padding-top: 10px;
}

.case-section__content {
  grid-column: 4 / 12;
}

.case-section__content h2 {
  max-width: 14ch;
  margin-bottom: clamp(28px, 4vw, 52px);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.case-section__content > p {
  max-width: 65ch;
  color: var(--site-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.case-section__content > p + p {
  margin-top: 20px;
}

.case-section__content > .case-section__intro {
  max-width: 48ch;
  margin-bottom: clamp(36px, 5vw, 64px);
  color: var(--site-ink);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.25;
  text-wrap: pretty;
}

.case-ledger {
  margin: 0;
  border-top: 1px solid var(--site-divider);
  border-radius: 0;
  background-image: none;
  box-shadow: none;
}

.case-ledger__entry {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(0, 1.65fr);
  gap: 18px clamp(28px, 4vw, 64px);
  padding-block: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--site-divider);
}

.case-ledger dd {
  max-width: 68ch;
  color: var(--site-muted);
  line-height: 1.65;
}

.source-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--site-divider);
  list-style: none;
}

.source-list > li {
  display: grid;
  grid-template-columns: minmax(170px, 0.75fr) minmax(0, 1.65fr);
  gap: 18px clamp(28px, 4vw, 64px);
  padding-block: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--site-divider);
}

.source-list a,
.case-text-link {
  width: fit-content;
  align-self: start;
  border-bottom: 1px solid var(--case-accent);
  color: var(--site-ink);
  font-size: 1.08rem;
  line-height: 1.45;
  transition: color 160ms ease, border-color 160ms ease;
}

.source-list a:hover,
.case-text-link:hover {
  border-color: var(--site-ink);
  color: var(--case-accent);
}

.source-list a span,
.case-text-link span {
  display: inline-block;
  margin-left: 0.35em;
  transition: transform 160ms ease;
}

.source-list a:hover span {
  transform: translate(2px, -2px);
}

.case-text-link:hover span {
  transform: translateX(3px);
}

.case-contact .case-section__content {
  padding-bottom: clamp(12px, 2vw, 28px);
}

.work-navigation {
  padding-block: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--site-divider);
  border-radius: 0;
  background-image: none;
  box-shadow: none;
}

.work-navigation__link {
  display: grid;
  grid-column: span 3;
  gap: 7px;
  align-content: start;
  padding-block: 12px;
  border-top: 1px solid var(--site-divider);
  transition: color 160ms ease, border-color 160ms ease;
}

.work-navigation__link:hover {
  border-color: var(--case-accent);
  color: var(--case-accent);
}

.work-navigation__link[aria-current="page"] {
  border-color: var(--case-accent);
}

.work-navigation__description {
  color: var(--site-ink);
  font-size: 1rem;
}

.work-navigation__link[aria-current="page"] .work-navigation__description {
  color: var(--case-accent);
}

@keyframes case-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes case-media {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body.case-study-page {
    --site-steel: #a8bbc7;
  }
}

html[data-theme="dark"] body.case-study-page {
  --site-steel: #a8bbc7;
}

@media (max-width: 1023px) {
  .case-opening,
  .case-section,
  .work-navigation {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .case-index {
    grid-column: 1 / 3;
  }

  .case-opening h1 {
    grid-column: 1 / -1;
  }

  .case-standfirst {
    grid-column: 1 / 6;
  }

  .case-meta {
    grid-column: 1 / 6;
  }

  .case-opening__media.evidence-plate {
    grid-column: 6 / 9;
  }

  .case-section__label {
    grid-column: 1 / 3;
  }

  .case-section__content,
  .evidence-plate {
    grid-column: 3 / 9;
  }

  .work-navigation__link {
    grid-column: span 4;
  }
}

@media (min-width: 1024px) {
  .case-study--oegema .case-opening h1,
  .case-study--hhw .case-opening h1 {
    grid-column: 1 / 7;
  }

  .case-study--oegema .case-opening__media.evidence-plate,
  .case-study--hhw .case-opening__media.evidence-plate {
    grid-row: 2 / 5;
  }
}

@media (max-width: 767px) {
  body.case-study-page main {
    padding-inline: 20px;
  }

  .case-opening,
  .case-section,
  .work-navigation {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }

  .case-opening {
    padding-block: 64px 88px;
  }

  .case-opening > *,
  .case-section__label,
  .case-section__content,
  .work-navigation > * {
    grid-column: 1;
    grid-row: auto;
  }

  .case-opening h1 {
    margin-bottom: 28px;
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .case-standfirst {
    margin-bottom: 36px;
  }

  .case-meta > div,
  .case-ledger__entry,
  .source-list > li {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-opening__media.evidence-plate {
    grid-column: 1;
    grid-row: auto;
    margin-top: 44px;
  }

  .case-section {
    padding-block: 88px;
  }

  .case-section__label {
    margin-bottom: 40px;
    padding-top: 0;
  }

  .case-section__content h2 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .case-section__content > .case-section__intro {
    margin-bottom: 36px;
  }

  .work-navigation {
    gap: 20px;
    padding-block: 52px;
  }

}

body.case-study--glpvda {
  --case-accent: #38644d;
}

@media (prefers-reduced-motion: reduce) {
  .case-index,
  .case-opening h1,
  .case-standfirst,
  .case-meta,
  .case-opening__media.evidence-plate {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .case-opening__media img,
  .source-list a span,
  .case-text-link span {
    transition: none;
  }

  .case-opening__media:hover img,
  .source-list a:hover span,
  .case-text-link:hover span {
    transform: none;
  }
}

body.case-study--glasvezel {
  --case-accent: #3f6680;
}

.case-study--glasvezel .case-opening h1 {
  grid-column: 1 / 11;
  grid-row: 2;
  max-width: 11ch;
}

.case-study--glasvezel .case-opening__mark {
  grid-column: 11 / 13;
  grid-row: 2;
  width: clamp(92px, 9vw, 128px);
  height: auto;
  margin: 0;
  justify-self: end;
}

.case-study--glasvezel .case-opening__mark img {
  display: block;
  width: 100%;
  height: auto;
}

.case-study--glasvezel .case-opening__mark figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.case-study--glasvezel .case-opening__media.evidence-plate--wide {
  grid-column: 1 / -1;
  grid-row: auto;
  margin-top: clamp(48px, 7vw, 88px);
}

.evidence-plate--wide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

body.case-study--glasvezel .evidence-plate--status-map .evidence-plate__crop {
  width: 100%;
  aspect-ratio: 1280 / 1360;
  overflow: hidden;
  background: #fff;
}

body.case-study--glasvezel .evidence-plate--status-map img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}

.case-study--glasvezel .case-opening__media.evidence-plate--wide img {
  aspect-ratio: 800 / 533;
}

.evidence-plate--inset {
  width: min(100%, 760px);
  margin-inline: auto;
}

.evidence-plate--inset img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.case-study--glasvezel .case-section__content > h3 {
  max-width: 20ch;
  margin-top: clamp(56px, 8vw, 104px);
  margin-bottom: 24px;
  font-size: clamp(1.85rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

.case-study--glasvezel .case-section__content > .case-evidence-note {
  color: var(--case-accent);
  font-size: 0.9rem;
}

.case-study--glasvezel .case-section__content > .evidence-plate {
  margin-block: clamp(40px, 5vw, 72px) clamp(72px, 9vw, 120px);
}

.case-study--glasvezel .evidence-plate figcaption strong,
.case-study--glasvezel .evidence-plate figcaption span {
  display: block;
}

.case-study--glasvezel .evidence-plate figcaption strong {
  margin-bottom: 5px;
  color: var(--site-ink);
  font-weight: 500;
}

.case-study--glasvezel .source-list {
  margin-top: clamp(48px, 7vw, 88px);
}

.case-study--glasvezel .source-list__title {
  margin-top: 8px;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
}

.case-study--glasvezel .source-list__body {
  display: grid;
  gap: 18px;
}

.case-study--glasvezel .source-list__copy {
  max-width: 58ch;
  color: var(--site-muted);
  line-height: 1.6;
}

.case-study--glasvezel .source-list > li:first-child .source-list__title {
  font-size: clamp(1.75rem, 2.4vw, 2.4rem);
  letter-spacing: -0.02em;
}

@media (max-width: 1023px) {
  .case-study--glasvezel .case-opening h1 {
    grid-column: 1 / 7;
  }

  .case-study--glasvezel .case-opening__mark {
    grid-column: 7 / 9;
  }
}

@media (max-width: 767px) {
  .case-study--glasvezel .case-opening h1,
  .case-study--glasvezel .case-opening__mark {
    grid-column: 1;
    grid-row: auto;
  }

  .case-study--glasvezel .case-opening__mark {
    width: 88px;
    margin-bottom: 28px;
    justify-self: start;
  }

  .case-study--glasvezel .case-opening__media.evidence-plate--wide {
    margin-top: 44px;
  }
}

body.case-study--hhw {
  --case-accent: #66704d;
}

.case-study--hhw .case-venue-evidence img {
  object-position: 50% 68%;
}

.case-study--hhw .case-human-evidence,
.case-study--hhw .case-poster-evidence {
  align-self: start;
}

.case-study--hhw .case-human-evidence--lead {
  margin-top: clamp(48px, 7vw, 88px);
}

.case-study--hhw .case-human-evidence img,
.case-study--hhw .case-poster-evidence img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.case-study--hhw #scope .case-ledger {
  margin-top: clamp(48px, 7vw, 88px);
}

.case-study--hhw #scope > .case-human-evidence {
  grid-column: 1 / -1;
  margin-top: clamp(64px, 8vw, 112px);
}

.case-study--hhw #systems > .case-poster-evidence {
  grid-column: 4 / 10;
  margin-top: clamp(56px, 7vw, 96px);
}

.case-study--hhw .evidence-plate figcaption strong,
.case-study--hhw .evidence-plate figcaption span {
  display: block;
}

.case-study--hhw .evidence-plate figcaption strong {
  margin-bottom: 5px;
  color: var(--site-ink);
  font-weight: 500;
}

.case-study--hhw .source-list {
  margin-top: clamp(48px, 7vw, 88px);
}

.case-study--hhw .source-list__title {
  margin-top: 8px;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
}

.case-study--hhw .source-list__body {
  display: grid;
  gap: 18px;
}

.case-study--hhw .source-list__copy {
  max-width: 58ch;
  color: var(--site-muted);
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body.case-study--glasvezel {
    --case-accent: #82aac4;
  }

  html:not([data-theme="light"]) body.case-study--glpvda {
    --case-accent: #7eab92;
  }

  html:not([data-theme="light"]) body.case-study--hhw {
    --case-accent: #aeb993;
  }
}

html[data-theme="dark"] body.case-study--glasvezel {
  --case-accent: #82aac4;
}

html[data-theme="dark"] body.case-study--glpvda {
  --case-accent: #7eab92;
}

html[data-theme="dark"] body.case-study--hhw {
  --case-accent: #aeb993;
}

@media (max-width: 1023px) {
  .case-study--hhw #systems > .case-poster-evidence {
    grid-column: 3 / 8;
  }
}

@media (max-width: 767px) {
  .case-study--hhw .case-human-evidence--lead,
  .case-study--hhw #scope > .case-human-evidence,
  .case-study--hhw #systems > .case-poster-evidence {
    grid-column: 1;
    margin-top: 44px;
  }
}
