/* Case study pages. Self-contained like legal.css: these pages don't load the
   film, so they don't need styles.css or its canvas rules. */
:root {
  --bg: #FFFFFF;
  --bg-soft: #FFF9F4;
  --text: #3B2517;
  --text-muted: #57534E;
  --border: #EDE8E0;
  --accent: #8D57FB;
  --accent-hover: #7A3FE8;
  --warm-1: #FC7824;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* height:auto is load-bearing. The width/height attributes on these images are
   there so the browser can reserve the right box before the file arrives; without
   height:auto it treats the height attribute as a fixed height and leaves a gap
   the size of the difference. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 48px) 100px; }

header.case-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { color: var(--accent); }
header.case-head nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-decoration: none;
}
header.case-head nav a:hover { color: var(--accent); }

.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}
.tag.pattern { border-color: var(--warm-1); color: var(--warm-1); }

h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 750;
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.client {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.lede { font-size: 19px; color: var(--text-muted); margin-bottom: 32px; }

.stat {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 36px;
}
.stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 6px;
}
.stat .lbl { font-size: 14.5px; color: var(--text-muted); line-height: 1.5; }

figure { margin-bottom: 40px; }
figure img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); }
figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 10px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 44px 0 14px;
}
p { margin-bottom: 18px; }

.links { display: flex; gap: 18px; flex-wrap: wrap; margin: 28px 0 0; }
.links a { font-size: 15px; font-weight: 600; text-decoration: none; }

.cta {
  margin-top: 64px;
  padding: 34px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.cta h2 { margin-top: 0; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 24px;
  border-radius: 999px;
  margin-top: 6px;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.cta .micro {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-muted);
  margin: 14px 0 0;
}

footer.case-foot {
  margin-top: 72px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
footer.case-foot a { text-decoration: none; }

.more-work { margin-top: 48px; font-size: 15px; }
.more-work a { text-decoration: none; font-weight: 600; }

/* Client quote. On the homepage these are injected by testimonials.js, so a
   crawler that doesn't run JS never sees them. Here they are in the markup. */
blockquote.client-quote {
  margin: 44px 0 0;
  padding: 26px 28px;
  background: var(--bg-soft);
  border-left: 3px solid var(--warm-1);
  border-radius: 0 14px 14px 0;
}
blockquote.client-quote p {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 23px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
blockquote.client-quote cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-muted);
}
