:root {
  --line: #d9dbe2;
  --panel: #e9ebf0;
  --detail-link: #284a75;
}

.shell { width: min(calc(100% - 2 * var(--gutter)), 1280px); margin-inline: auto; }
.case-hero { padding-bottom: clamp(30px, 4.5vw, 66px); }
.hero-dark { background: var(--slate); color: #f7f7f8; --hero-muted: var(--muted-on-dark); }
.hero-cool { background: var(--cool-paper); }
.case-intro { padding-block: clamp(18px, 3vw, 34px) clamp(25px, 3.5vw, 48px); }
.back {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--hero-muted, var(--muted));
  font-size: .85rem;
  font-weight: 600;
}
.case-intro .back { margin-bottom: clamp(24px, 4vw, 56px); }
.back:hover { text-decoration: underline; text-underline-offset: .2em; }
.case-intro-copy { text-align: center; }
.case-intro-copy .kicker, .case-intro-copy .lede, .case-cover figcaption { color: var(--hero-muted, var(--muted)); }
.case-title {
  margin: 10px 0 14px;
  font-size: clamp(2.45rem, 6.3vw, 6.4rem);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.lede { max-width: 58ch; margin-inline: auto; font-size: clamp(1rem, 1.8vw, 1.23rem); text-wrap: pretty; }
.case-cover img { width: 100%; border-radius: 4px; }
.case-cover figcaption { margin-top: 9px; }
.construction-cover { max-width: 1120px; }
.walkthrough-screen { display: grid; aspect-ratio: 16/9; background: var(--black); border-radius: 4px; overflow: hidden; }
.walkthrough-screen > :is(video, img) { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; }
.walkthrough-screen > img { visibility: hidden; }

.case-body { padding-top: clamp(16px, 2.1vw, 32px); }
.section { padding-block: clamp(32px, 5vw, 72px); border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.85rem, 3.3vw, 3.1rem); line-height: 1.05; text-wrap: balance; }
.case-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(16px, 4vw, 54px); }
.case-section h3 { font-size: clamp(1.15rem, 2.1vw, 1.55rem); letter-spacing: -.02em; line-height: 1.15; }
.case-section p, figcaption { color: var(--muted); }
.case-copy { min-width: 0; max-width: 67ch; font-size: clamp(1rem, 1.3vw, 1.13rem); }
.case-copy p + p { margin-top: 13px; }
.case-content { display: contents; }
.case-section .case-copy { align-self: start; }
.case-section .case-figures, .case-section .site-evidence { grid-column: 1 / -1; }
.case-figures { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.case-figures.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-figures img { width: 100%; border-radius: 4px; }
.case-figures.two img { aspect-ratio: 16 / 10; object-fit: contain; background: var(--panel); }
.case-figures.range-comparison img { aspect-ratio: 16 / 9; }
.range-panel { max-width: 980px; }
figcaption { margin-top: 8px; font-size: .84rem; }
figcaption strong { color: var(--ink); }
figcaption span { display: block; }


.next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: clamp(20px, 3.5vw, 44px) 0;
  border-top: 1px solid var(--line);
  font-size: clamp(1rem, 2.2vw, 1.55rem);
}
.next strong { font-weight: 650; }
.round-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 43px;
  height: 43px;
  border: 1px solid #c9c9d0;
  border-radius: 50%;
  font-size: 1.03rem;
}
.next:hover .round-arrow { background: #eeeef2; }
.next:hover strong { text-decoration: underline; text-underline-offset: .18em; }

@media (max-width: 740px) {
  .case-section, .case-figures.two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 430px) {
  .construction-cover { width: calc(100% - 16px); }
}
