:root {
  --pd-ink: #0a0a0a;
  --pd-muted: #6b6b6b;
  --pd-faint: #a4a4a4;
  --pd-paper: #f5f5f5;
  --pd-white: #fff;
  --pd-line: rgba(10, 10, 10, .14);
  --pd-dark-line: rgba(255, 255, 255, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--pd-ink);
  background: var(--pd-paper);
  font-family: "PD Footer", Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }

.pd-case-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 96px;
  padding: 0 4vw;
  background: rgba(245, 245, 245, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10, 10, 10, .06);
}
.pd-case-nav .pd-logo { font-size: clamp(18px, 1.65vw, 26px); font-weight: 650; letter-spacing: -.055em; }
.pd-case-nav nav { display: flex; align-items: center; justify-content: center; gap: clamp(38px, 7vw, 110px); font-size: clamp(16px, 1.35vw, 22px); font-weight: 600; letter-spacing: -.055em; }
.pd-case-nav nav a { transition: opacity 180ms ease; }
.pd-case-nav nav a:hover { opacity: .55; }
.pd-case-nav sup { position: relative; top: -.35em; margin-left: 4px; font-size: .52em; opacity: .55; }
.pd-menu { justify-self: end; width: 42px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.pd-menu span { display: block; width: 100%; height: 2px; margin: 8px 0; background: var(--pd-ink); transition: transform 220ms ease, opacity 220ms ease; }
.pd-menu[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.pd-menu[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }
.pd-mobile-nav { display: none; }

.pd-wrap { width: min(1520px, calc(100% - 48px)); margin: 24px auto 0; }
.pd-dark {
  color: var(--pd-white);
  background-color: #111;
  background-image: radial-gradient(circle at 20% 18%, rgba(255,255,255,.075) 0 1px, transparent 1.4px), radial-gradient(circle at 72% 64%, rgba(255,255,255,.045) 0 1px, transparent 1.4px), linear-gradient(120deg, rgba(255,255,255,.02), transparent 42%);
  background-size: 5px 5px, 7px 7px, 100% 100%;
}
.case-hero { min-height: min(760px, calc(100vh - 120px)); padding: clamp(42px, 8vw, 126px) clamp(28px, 7vw, 112px) clamp(52px, 7vw, 104px); border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.case-hero .case-label { display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.58); font-size: 14px; font-weight: 550; letter-spacing: -.03em; text-transform: uppercase; }
.case-hero h1 { max-width: 980px; margin: clamp(90px, 13vw, 180px) 0 0; font-size: clamp(76px, 14vw, 225px); line-height: .8; font-weight: 630; letter-spacing: -.1em; }
.case-hero h1 span { display: block; padding-left: .22em; color: rgba(255,255,255,.43); }
.case-hero .hero-deck { width: min(640px, 100%); margin: 54px 0 0; color: rgba(255,255,255,.68); font-size: clamp(21px, 2.15vw, 34px); line-height: 1.12; letter-spacing: -.06em; }
.hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 70px; padding-top: 18px; border-top: 1px solid var(--pd-dark-line); color: rgba(255,255,255,.6); font-size: 13px; text-transform: uppercase; letter-spacing: -.02em; }

.case-section { padding: clamp(76px, 10vw, 150px) clamp(24px, 6vw, 96px); }
.case-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 46px; color: var(--pd-muted); font-size: 14px; font-weight: 600; letter-spacing: -.02em; text-transform: uppercase; }
.case-kicker::before { content: "+"; color: #aaa; font-size: 26px; font-weight: 300; line-height: .6; }
.case-section h2 { max-width: 980px; margin: 0; font-size: clamp(55px, 8.5vw, 132px); line-height: .86; font-weight: 620; letter-spacing: -.095em; }
.case-section h2 .soft { color: var(--pd-muted); }
.case-intro { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 118px); align-items: start; }
.case-intro figure { margin: 0; overflow: hidden; border-radius: 24px; background: #ddd; }
.case-intro figure img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center; }
.case-copy { padding-top: 8px; }
.case-copy .lead { margin: 0 0 30px; font-size: clamp(27px, 3vw, 45px); line-height: 1.04; letter-spacing: -.075em; }
.case-copy p { max-width: 620px; margin: 0 0 22px; color: var(--pd-muted); font-size: clamp(17px, 1.7vw, 25px); line-height: 1.18; letter-spacing: -.05em; }
.case-copy h3 { margin: 55px 0 20px; font-size: 18px; font-weight: 650; letter-spacing: -.04em; }
.broken-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--pd-line); }
.broken-list li { padding: 17px 0; border-bottom: 1px solid var(--pd-line); color: var(--pd-muted); font-size: 17px; line-height: 1.22; letter-spacing: -.045em; }
.broken-list li::before { content: "+"; display: inline-block; width: 28px; color: var(--pd-faint); font-size: 21px; font-weight: 300; }

.case-diagnosis { border-radius: 30px; padding: clamp(70px, 10vw, 150px) clamp(24px, 7vw, 110px); }
.case-diagnosis .case-kicker { color: rgba(255,255,255,.56); }
.case-diagnosis .case-kicker::before { color: rgba(255,255,255,.52); }
.case-diagnosis h2 { max-width: 1180px; color: #fff; }
.case-diagnosis p { max-width: 800px; margin: 62px 0 0 auto; color: rgba(255,255,255,.65); font-size: clamp(21px, 2.25vw, 36px); line-height: 1.08; letter-spacing: -.065em; }

.build-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 58px; }
.build-head h2 { max-width: none; }
.build-head .count { color: var(--pd-muted); font-size: 22px; letter-spacing: -.05em; }
.build-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--pd-line); }
.build-step { min-height: 350px; padding: 30px 28px 30px 0; border-bottom: 1px solid var(--pd-line); }
.build-step:nth-child(odd) { padding-right: clamp(28px, 5vw, 88px); border-right: 1px solid var(--pd-line); }
.build-step:nth-child(even) { padding-left: clamp(28px, 5vw, 88px); }
.step-num { color: var(--pd-muted); font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.build-step h3 { max-width: 480px; margin: 52px 0 20px; font-size: clamp(28px, 3.1vw, 49px); line-height: .98; font-weight: 610; letter-spacing: -.075em; }
.build-step p { max-width: 510px; margin: 0; color: var(--pd-muted); font-size: clamp(17px, 1.65vw, 24px); line-height: 1.15; letter-spacing: -.052em; }
.build-step .proof { display: inline-flex; margin-top: 30px; padding: 8px 12px; border-radius: 999px; color: var(--pd-ink); background: #e5e5e5; font-size: 12px; font-weight: 650; letter-spacing: -.02em; }

.receipts { border-radius: 30px; overflow: hidden; padding-bottom: 0; }
.receipts .case-kicker { color: rgba(255,255,255,.56); }
.receipts .case-kicker::before { color: rgba(255,255,255,.52); }
.receipts h2 { color: #fff; }
.receipt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 72px; border-top: 1px solid var(--pd-dark-line); }
.receipt { min-height: 220px; padding: 23px 22px 40px 0; border-right: 1px solid var(--pd-dark-line); }
.receipt + .receipt { padding-left: 22px; }
.receipt:last-child { border-right: 0; }
.receipt strong { display: block; color: #fff; font-size: clamp(38px, 4vw, 62px); font-weight: 600; letter-spacing: -.09em; line-height: .95; }
.receipt span { display: block; max-width: 210px; margin-top: 24px; color: rgba(255,255,255,.6); font-size: 16px; line-height: 1.12; letter-spacing: -.05em; }

.quote-section { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); gap: clamp(40px, 9vw, 150px); align-items: center; }
.quote-section blockquote { margin: 0; }
.quote-section blockquote p { margin: 0; font-size: clamp(36px, 5vw, 76px); line-height: .97; font-weight: 590; letter-spacing: -.085em; }
.quote-section blockquote footer { margin-top: 36px; color: var(--pd-muted); font-size: 14px; letter-spacing: -.03em; }
.quote-section figure { margin: 0; overflow: hidden; border-radius: 24px; background: #ddd; }
.quote-section figure img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.pattern { border-top: 1px solid var(--pd-line); }
.pattern h2 { max-width: 1200px; font-size: clamp(43px, 6.5vw, 100px); }
.pattern p { max-width: 800px; margin: 54px 0 0 auto; color: var(--pd-muted); font-size: clamp(20px, 2.3vw, 35px); line-height: 1.1; letter-spacing: -.065em; }
.case-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 82px; padding-top: 24px; border-top: 1px solid var(--pd-line); }
.case-cta span { color: var(--pd-muted); font-size: 14px; letter-spacing: -.02em; }
.pd-pill { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-width: 170px; padding: 15px 18px 15px 22px; border-radius: 999px; color: #fff; background: var(--pd-ink); font-size: 16px; font-weight: 620; letter-spacing: -.045em; transition: transform 180ms ease, background 180ms ease; }
.pd-pill::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.pd-pill:hover { background: #333; transform: translateY(-2px); }

.pd-case-footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-top: 24px; padding: 70px clamp(24px, 6vw, 96px) 40px; color: #fff; background: var(--pd-ink); }
.pd-case-footer .footer-brand { font-size: clamp(34px, 4vw, 62px); line-height: .88; font-weight: 600; letter-spacing: -.09em; }
.pd-case-footer h3 { margin: 0 0 18px; color: rgba(255,255,255,.52); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: -.02em; }
.pd-case-footer ul { margin: 0; padding: 0; list-style: none; }
.pd-case-footer li { margin: 0 0 10px; font-size: 18px; letter-spacing: -.05em; }
.pd-case-footer a:hover { opacity: .62; }
.pd-footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 16px; border-top: 1px solid var(--pd-dark-line); color: rgba(255,255,255,.48); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 700ms cubic-bezier(.22, .7, .2, 1), transform 700ms cubic-bezier(.22, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 150ms; }
.delay-3 { transition-delay: 220ms; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 809px) {
  .pd-case-nav { min-height: 74px; padding: 0 20px; grid-template-columns: 1fr auto; }
  .pd-case-nav nav { display: none; }
  .pd-mobile-nav { position: fixed; inset: 74px 0 auto; z-index: 25; display: grid; gap: 0; padding: 12px 20px 24px; background: rgba(245,245,245,.98); transform: translateY(-125%); transition: transform 260ms ease; }
  .pd-mobile-nav.is-open { transform: translateY(0); }
  .pd-mobile-nav a { padding: 15px 0; border-bottom: 1px solid var(--pd-line); font-size: 25px; font-weight: 600; letter-spacing: -.07em; }
  .pd-wrap { width: calc(100% - 20px); margin-top: 10px; }
  .case-hero { min-height: 630px; border-radius: 20px; padding: 28px 22px 32px; }
  .case-hero h1 { margin-top: 100px; font-size: clamp(52px, 14.5vw, 100px); }
  .hero-meta { grid-template-columns: 1fr; gap: 10px; margin-top: 45px; }
  .case-section { padding: 72px 16px; }
  .case-intro, .quote-section { grid-template-columns: 1fr; gap: 36px; }
  .case-intro figure { order: 2; }
  .case-copy { order: 1; }
  .case-copy h3 { margin-top: 38px; }
  .case-diagnosis { border-radius: 20px; padding: 72px 22px; }
  .case-diagnosis p, .pattern p { margin-left: 0; }
  .build-head { display: block; margin-bottom: 34px; }
  .build-head .count { display: block; margin-top: 15px; }
  .build-grid { grid-template-columns: 1fr; }
  .build-step, .build-step:nth-child(odd), .build-step:nth-child(even) { min-height: 0; padding: 28px 0 34px; border-right: 0; }
  .build-step h3 { margin-top: 36px; }
  .receipts { border-radius: 20px; }
  .receipt-grid { grid-template-columns: 1fr 1fr; }
  .receipt, .receipt + .receipt { min-height: 180px; padding: 20px 14px 28px 0; }
  .receipt:nth-child(2n) { padding-left: 14px; border-right: 0; }
  .receipt:nth-child(-n + 2) { border-bottom: 1px solid var(--pd-dark-line); }
  .pd-case-footer { grid-template-columns: 1fr 1fr; padding: 58px 20px 30px; }
  .pd-case-footer > div { min-width: 0; }
  .pd-case-footer .footer-brand { grid-column: 1 / -1; min-width: 0; font-size: 28px; overflow-wrap: anywhere; }
  .pd-footer-bottom { min-width: 0; flex-direction: column; }
  .pd-footer-bottom span { min-width: 0; overflow-wrap: anywhere; }
}

/* Fabrica project-detail alignment pass. */
body {
  background: var(--pd-paper);
}

.pd-dark {
  background-color: var(--pd-ink);
  background-image: none;
}

.pd-case-nav {
  min-height: 60px;
  padding: 0 36px;
  border: 0;
  background: rgba(245, 245, 245, .94);
  backdrop-filter: blur(7px);
}

.pd-case-nav .pd-logo,
.pd-case-nav nav {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.055em;
}

.pd-case-nav nav {
  gap: clamp(70px, 10vw, 160px);
}

.pd-menu {
  width: 58px;
}

.pd-menu span {
  height: 1.5px;
  margin: 8px 0;
}

.pd-wrap {
  width: 100%;
  margin: 0;
}

.case-hero {
  display: grid;
  min-height: max(760px, calc(100svh - 60px));
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(260px, 1fr) auto auto;
  column-gap: 20px;
  padding: 92px 36px 72px;
  border-radius: 0;
  overflow: visible;
}

.case-hero.pd-dark {
  color: var(--pd-ink);
  background: var(--pd-paper);
}

.case-hero .case-label {
  grid-column: 1 / -1;
  color: rgba(10, 10, 10, .48);
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
}

.case-hero > div:nth-child(2) {
  display: contents;
}

.case-hero h1 {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
  max-width: none;
  margin: 0;
  color: var(--pd-ink);
  font-size: clamp(76px, 9.2vw, 148px);
  font-weight: 600;
  letter-spacing: -.085em;
  line-height: .88;
  white-space: nowrap;
}

.case-hero h1 br {
  display: none;
}

.case-hero h1 span {
  display: inline;
  padding: 0;
  color: inherit;
}

.case-hero .hero-deck {
  grid-column: 7 / -1;
  grid-row: 3;
  width: auto;
  max-width: 690px;
  margin: 62px 0 0;
  color: var(--pd-ink);
  font-size: clamp(26px, 2.5vw, 40px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1.05;
}

.hero-meta {
  display: grid;
  grid-column: 7 / -1;
  grid-row: 4;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 58px;
  padding: 0;
  border: 0;
  color: var(--pd-ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.035em;
  text-transform: none;
}

.hero-meta span {
  padding: 18px 0;
  border-top: 1px solid var(--pd-line);
  text-align: right;
}

.hero-meta span:last-child {
  border-bottom: 1px solid var(--pd-line);
}

.case-section {
  padding: clamp(100px, 10vw, 160px) 36px;
}

.case-kicker {
  gap: 9px;
  margin: 0;
  color: rgba(10, 10, 10, .5);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.035em;
  text-transform: none;
}

.case-kicker::before {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: var(--pd-paper);
  background: var(--pd-ink);
  content: "+";
  font-size: 15px;
  line-height: 1;
}

.case-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.case-intro figure {
  grid-column: 1 / span 5;
  border-radius: 16px;
}

.case-intro figure img {
  aspect-ratio: 4 / 5;
  filter: grayscale(1);
}

.case-copy {
  grid-column: 7 / -1;
  padding: 0;
}

.case-copy .case-kicker {
  margin-bottom: 68px;
}

.case-copy .lead {
  max-width: 700px;
  margin-bottom: 34px;
  font-size: clamp(32px, 3.4vw, 54px);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: 1.02;
}

.case-copy p {
  max-width: 690px;
  color: var(--pd-ink);
  font-size: clamp(18px, 1.55vw, 24px);
  letter-spacing: -.045em;
  line-height: 1.28;
}

.case-copy h3 {
  margin: 72px 0 18px;
  font-size: 17px;
  font-weight: 500;
}

.broken-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  padding: 20px 0;
  color: var(--pd-ink);
  font-size: 16px;
  line-height: 1.3;
}

.case-diagnosis {
  display: grid;
  margin: 6px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(110px, 10vw, 160px) 5vw;
  border-radius: 28px;
}

.case-diagnosis .case-kicker {
  grid-column: 1 / span 4;
  align-self: start;
}

.case-diagnosis h2,
.case-diagnosis p {
  grid-column: 6 / -1;
}

.case-diagnosis h2 {
  max-width: 980px;
  font-size: clamp(58px, 6.5vw, 104px);
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: .92;
}

.case-diagnosis p {
  max-width: 700px;
  margin: 80px 0 0;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.08;
}

.case-section h2 {
  font-weight: 500;
}

.case-section h2 .soft {
  color: inherit;
}

.build-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin-bottom: 96px;
}

.build-head > div {
  display: contents;
}

.build-head .case-kicker {
  grid-column: 1 / span 4;
}

.build-head h2 {
  grid-column: 6 / -1;
  font-size: clamp(70px, 8vw, 128px);
  letter-spacing: -.085em;
  line-height: .86;
}

.build-head .count {
  display: none;
}

.build-grid {
  display: block;
  border-top: 1px solid var(--pd-line);
}

.build-step,
.build-step:nth-child(odd),
.build-step:nth-child(even) {
  display: grid;
  min-height: 250px;
  grid-template-columns: 80px minmax(260px, 1fr) minmax(320px, 1.25fr) 180px;
  gap: 28px;
  align-items: start;
  padding: 36px 0 46px;
  border-right: 0;
  border-bottom: 1px solid var(--pd-line);
}

.step-num {
  padding-top: 6px;
  color: rgba(10, 10, 10, .5);
  font-size: 14px;
  font-weight: 500;
}

.build-step h3 {
  max-width: 450px;
  margin: 0;
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: .98;
}

.build-step p {
  max-width: 540px;
  margin: 0;
  color: var(--pd-ink);
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.25;
}

.build-step .proof {
  display: block;
  margin: 4px 0 0;
  padding: 0;
  border-radius: 0;
  color: rgba(10, 10, 10, .48);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.03em;
  text-align: right;
}

.receipts {
  margin: 6px;
  padding: clamp(110px, 10vw, 160px) 5vw 0;
  border-radius: 28px;
}

.receipts .case-kicker {
  margin-bottom: 76px;
}

.receipts h2 {
  max-width: 1120px;
  font-size: clamp(64px, 7.4vw, 118px);
  font-weight: 500;
  letter-spacing: -.085em;
  line-height: .88;
}

.receipt-grid {
  margin-top: 110px;
}

.receipt {
  min-height: 260px;
  padding-top: 28px;
}

.receipt strong {
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 500;
}

.receipt span {
  max-width: 235px;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
}

.quote-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.quote-section blockquote {
  grid-column: 1 / span 6;
  align-self: center;
}

.quote-section blockquote p {
  font-size: clamp(48px, 5.2vw, 82px);
  font-weight: 500;
  line-height: .94;
}

.quote-section figure {
  grid-column: 8 / -1;
  border-radius: 16px;
}

.pattern {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  border-top: 0;
}

.pattern .case-kicker {
  grid-column: 1 / span 4;
}

.pattern h2,
.pattern > p,
.pattern .case-cta {
  grid-column: 6 / -1;
}

.pattern h2 {
  max-width: 980px;
  font-size: clamp(58px, 6.5vw, 104px);
  letter-spacing: -.08em;
  line-height: .9;
}

.pattern > p {
  max-width: 770px;
  margin: 70px 0 0;
  color: var(--pd-ink);
  font-size: clamp(22px, 2.15vw, 34px);
  line-height: 1.12;
}

.case-cta {
  margin-top: 86px;
}

.case-cta span {
  color: var(--pd-ink);
}

.pd-pill {
  transition: opacity 160ms ease;
}

.pd-pill:hover {
  background: var(--pd-ink);
  opacity: .66;
  transform: none;
}

.pd-case-footer {
  display: grid;
  min-height: 720px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  margin-top: 0;
  padding: 64px 5vw 0;
  color: var(--pd-ink);
  background: var(--pd-paper);
}

.pd-case-footer .footer-brand {
  grid-column: 7 / -1;
  grid-row: 2;
  align-self: end;
  padding-bottom: 62px;
  font-size: clamp(70px, 6.8vw, 118px);
  font-weight: 500;
  letter-spacing: -.085em;
  line-height: .72;
}

.pd-case-footer > div:nth-child(2) {
  grid-column: 1 / span 5;
  grid-row: 1;
}

.pd-case-footer > div:nth-child(3) {
  grid-column: 7 / span 3;
  grid-row: 1;
}

.pd-case-footer h3 {
  margin-bottom: 16px;
  color: rgba(10, 10, 10, .5);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.pd-case-footer li {
  margin-bottom: 7px;
  font-size: clamp(20px, 1.65vw, 28px);
  font-weight: 500;
}

.pd-case-footer > div:nth-child(2) li:first-child a {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 2px solid currentColor;
  font-size: clamp(24px, 2.15vw, 36px);
}

.pd-footer-bottom {
  display: flex;
  min-height: 112px;
  grid-column: 1 / -1;
  grid-row: 3;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 -5vw;
  padding: 24px 5vw;
  border: 0;
  color: var(--pd-paper);
  background: var(--pd-ink);
  font-size: 13px;
}

.reveal {
  transform: translateY(18px);
  transition-duration: 620ms;
}

@media (max-width: 1023.98px) {
  .pd-case-nav nav {
    gap: 52px;
  }

  .case-hero h1 {
    font-size: clamp(70px, 8.9vw, 105px);
  }

  .build-step,
  .build-step:nth-child(odd),
  .build-step:nth-child(even) {
    grid-template-columns: 64px minmax(220px, .9fr) minmax(280px, 1.1fr);
  }

  .build-step .proof {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 809px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  /* On iOS the observer can resolve after Safari changes its visual viewport.
     Mobile content must remain readable even when that animation is skipped. */
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pd-case-nav {
    min-height: 60px;
    padding: 0 20px;
  }

  .pd-case-nav .pd-logo {
    font-size: 16px;
  }

  .pd-mobile-nav {
    inset: 60px 0 auto;
    padding: 12px 20px 24px;
    background: rgba(245, 245, 245, .98);
  }

  .pd-wrap {
    width: 100%;
    margin: 0;
  }

  .case-hero {
    display: grid;
    min-height: calc(100svh - 60px);
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(210px, 1fr) auto auto;
    padding: 74px 20px 52px;
    border-radius: 0;
  }

  .case-hero .case-label,
  .case-hero h1,
  .case-hero .hero-deck,
  .hero-meta {
    grid-column: 1;
  }

  .case-hero .case-label span:last-child {
    display: none;
  }

  .case-hero h1 {
    margin: 0;
    font-size: clamp(50px, 13.5vw, 66px);
    line-height: .9;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .case-hero h1 br {
    display: block;
  }

  .case-hero h1 span {
    display: block;
  }

  .case-hero .hero-deck {
    margin-top: 44px;
    font-size: clamp(26px, 7.3vw, 32px);
  }

  .hero-meta {
    margin-top: 44px;
  }

  .hero-meta span {
    padding: 16px 0;
    text-align: left;
  }

  .case-section {
    padding: 96px 20px;
  }

  .case-intro,
  .quote-section,
  .pattern,
  .case-diagnosis,
  .build-head {
    display: block;
  }

  .case-copy .case-kicker {
    margin-bottom: 48px;
  }

  .case-copy .lead {
    font-size: 36px;
  }

  .case-copy p {
    font-size: 18px;
  }

  .case-intro figure {
    margin-top: 64px;
    border-radius: 14px;
  }

  .case-diagnosis,
  .receipts {
    margin: 4px;
    padding: 94px 20px;
    border-radius: 20px;
  }

  .case-diagnosis .case-kicker,
  .receipts .case-kicker {
    margin-bottom: 56px;
  }

  .case-diagnosis h2,
  .receipts h2,
  .pattern h2,
  .build-head h2 {
    font-size: clamp(46px, 12vw, 58px);
  }

  .case-diagnosis p,
  .pattern > p {
    margin: 58px 0 0;
    font-size: 24px;
  }

  .build-head .case-kicker {
    margin-bottom: 52px;
  }

  .build-grid {
    margin-top: 64px;
  }

  .build-step,
  .build-step:nth-child(odd),
  .build-step:nth-child(even) {
    display: block;
    padding: 30px 0 38px;
  }

  .build-step h3 {
    margin-top: 34px;
    font-size: 34px;
  }

  .build-step p {
    margin-top: 22px;
    font-size: 18px;
  }

  .build-step .proof {
    margin-top: 30px;
  }

  .receipts {
    padding-bottom: 0;
  }

  .receipts h2 {
    line-height: .92;
  }

  .receipt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 72px;
  }

  .receipt,
  .receipt + .receipt {
    min-height: 210px;
    padding: 24px 12px 34px 0;
  }

  .receipt:nth-child(2n) {
    padding-left: 12px;
  }

  .receipt strong {
    font-size: 48px;
  }

  .quote-section figure {
    margin-top: 64px;
  }

  .quote-section blockquote p {
    font-size: 46px;
  }

  .pattern .case-kicker {
    margin-bottom: 54px;
  }

  .case-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .pd-case-footer {
    display: flex;
    min-height: 720px;
    flex-direction: column;
    gap: 0;
    padding: 54px 20px 0;
  }

  .pd-case-footer .footer-brand {
    order: 3;
    margin-top: auto;
    padding-bottom: 42px;
    font-size: clamp(52px, 15.8vw, 66px);
    overflow-wrap: normal;
    word-break: normal;
  }

  .pd-case-footer > div:nth-child(2) {
    order: 1;
  }

  .pd-case-footer > div:nth-child(3) {
    order: 2;
    margin-top: 68px;
  }

  .pd-case-footer h3 {
    font-size: 14px;
  }

  .pd-case-footer li {
    font-size: 22px;
  }

  .pd-case-footer > div:nth-child(2) li:first-child a {
    font-size: 17px;
  }

  .pd-footer-bottom {
    order: 4;
    min-height: 138px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    margin: 0 -20px;
    padding: 28px 20px;
  }
}
