:root {
  --ink: #151612;
  --paper: #f5f4ef;
  --line: #dcdcd5;
  --muted: #777970;
  --acid: #d8ff43;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, "Helvetica Neue", sans-serif; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.case-topbar { position: sticky; z-index: 20; top: 0; height: 76px; padding: 0 5vw; border-bottom: 1px solid var(--line); background: rgba(245,244,239,.95); backdrop-filter: blur(12px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.case-brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 19px; font-weight: 900; }
.case-brand-mark { width: 29px; height: 27px; display: flex; align-items: end; gap: 2px; transform: skew(-8deg); }
.case-brand-mark i { width: 8px; display: block; border-radius: 1px; background: currentColor; }
.case-brand-mark i:nth-child(1) { height: 18px; }
.case-brand-mark i:nth-child(2) { height: 27px; }
.case-brand-mark i:nth-child(3) { height: 22px; }
.case-topbar nav { display: flex; gap: 38px; font-size: 11px; font-weight: 700; }
.case-topbar nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.case-cta-small { justify-self: end; min-width: 136px; height: 48px; padding: 0 17px; border-radius: 3px; background: var(--ink); color: white; display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 700; }
.case-cta-small span { color: var(--acid); font-size: 16px; }

.case-hero { min-height: 530px; padding: 105px max(5vw,calc((100vw - 1150px)/2)) 65px; display: flex; flex-direction: column; }
.case-kicker { color: #777970; font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.case-hero h1 { max-width: 900px; margin: 28px 0 25px; font-size: clamp(55px,7vw,104px); line-height: .94; letter-spacing: -.075em; }
.case-hero h1 em { position: relative; z-index: 0; font-style: normal; }
.case-hero h1 em::after { content: ""; position: absolute; z-index: -1; left: -4px; right: -7px; bottom: 9px; height: 21px; background: var(--acid); }
.case-hero > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.case-hero-rule { margin-top: auto; display: flex; align-items: center; gap: 18px; color: #85877f; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.case-hero-rule i { flex: 1; height: 1px; background: var(--line); }

.case-results { padding: 90px max(5vw,calc((100vw - 1150px)/2)) 125px; border-top: 1px solid var(--line); background: #ebeae4; }
.case-results-head { margin-bottom: 38px; display: flex; align-items: end; justify-content: space-between; }
.case-results-head span { color: #7c7e76; font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.case-results-head h2 { margin: 8px 0 0; font-size: 42px; letter-spacing: -.06em; }
.case-results-head > b { padding-bottom: 7px; color: #75776f; font-size: 9px; letter-spacing: .15em; }
.public-case-grid { display: grid; gap: 24px; }
.public-case-card { overflow: hidden; border: 1px solid #d6d7d0; background: var(--paper); }
.public-case-images { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.public-case-images::after { content: "→"; position: absolute; z-index: 2; left: 50%; top: 50%; width: 48px; height: 48px; transform: translate(-50%,-50%); border: 5px solid var(--paper); border-radius: 50%; background: var(--acid); display: grid; place-items: center; font-size: 17px; font-weight: 900; }
.public-case-images figure { position: relative; min-width: 0; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; background: #deded8; }
.public-case-images figure:first-child { border-right: 1px solid white; }
.public-case-images img { width: 100%; height: 100%; display: block; object-fit: contain; }
.public-case-images figcaption { position: absolute; left: 17px; top: 17px; padding: 7px 9px; background: rgba(21,22,18,.88); color: white; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.public-case-images figure:last-child figcaption { background: var(--acid); color: var(--ink); }
.public-case-copy { padding: 28px 31px 31px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px 45px; align-items: start; }
.public-case-copy > span { color: #85877f; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.public-case-copy h2 { grid-column: 1; margin: 0; font-size: 26px; letter-spacing: -.045em; }
.public-case-copy p { grid-column: 1; max-width: 650px; margin: -8px 0 0; color: #6e7068; font-size: 11px; line-height: 1.8; }
.public-case-settings { grid-column: 2; grid-row: 1 / span 3; max-width: 390px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.public-case-settings span { padding: 7px 9px; border: 1px solid #d4d5ce; background: white; color: #60625a; font-size: 8px; font-weight: 700; }
.public-case-settings span:first-child { border-color: var(--ink); background: var(--ink); color: var(--acid); }
.case-empty { padding: 100px 30px; border: 1px solid #d5d6cf; background: var(--paper); text-align: center; }
.case-empty > span { color: #8a8c84; font-size: 8px; font-weight: 800; letter-spacing: .2em; }
.case-empty h2 { margin: 14px 0 9px; font-size: 30px; letter-spacing: -.05em; }
.case-empty p { margin: 0; color: var(--muted); font-size: 10px; }

.case-bottom-cta { min-height: 470px; padding: 100px max(5vw,calc((100vw - 1150px)/2)); background: var(--acid); display: flex; flex-direction: column; align-items: flex-start; }
.case-bottom-cta > span { font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.case-bottom-cta h2 { margin: 26px 0 38px; font-size: clamp(48px,6vw,83px); line-height: .96; letter-spacing: -.07em; }
.case-bottom-cta a { min-width: 230px; height: 58px; padding: 0 20px; border-radius: 3px; background: var(--ink); color: white; display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 800; }
.case-bottom-cta a span { color: var(--acid); font-size: 20px; }

footer { padding: 50px 5vw; background: var(--ink); color: white; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; }
.case-brand.inverted { color: white; }
footer p { justify-self: center; margin: 0; color: #85877f; font-size: 9px; line-height: 1.7; letter-spacing: .12em; }
footer > span { justify-self: end; color: #6f7169; font-size: 8px; }

@media (max-width: 760px) {
  .case-topbar { height: 64px; padding: 0 20px; grid-template-columns: 1fr auto; }
  .case-topbar nav { display: none; }
  .case-brand { font-size: 17px; }
  .case-cta-small { min-width: 128px; height: 44px; }
  .case-hero { min-height: 470px; padding: 80px 20px 45px; }
  .case-hero h1 { font-size: 51px; }
  .case-hero h1 em::after { bottom: 4px; height: 13px; }
  .case-results { padding: 70px 20px 85px; }
  .public-case-images { grid-template-columns: 1fr; }
  .public-case-images::after { top: 50%; transform: translate(-50%,-50%) rotate(90deg); }
  .public-case-images figure { aspect-ratio: 3 / 4; }
  .public-case-images figure:first-child { border-right: 0; border-bottom: 1px solid white; }
  .public-case-copy { grid-template-columns: 1fr; padding: 23px 20px 25px; }
  .public-case-copy h2, .public-case-copy p, .public-case-settings { grid-column: 1; grid-row: auto; }
  .public-case-settings { justify-content: flex-start; }
  .case-bottom-cta { min-height: 400px; padding: 75px 20px; }
  .case-bottom-cta h2 { font-size: 49px; }
  footer { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  footer p, footer > span { justify-self: start; }
}
