:root {
  color-scheme: dark;
  --ink: #060809;
  --panel: #0d1115;
  --paper: #f4f3ef;
  --muted: #aab0b8;
  --line: #343a42;
  --accent: #c6ff2e;
  font-family: "Be Vietnam Pro", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px 16px; color: var(--ink); background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.case-nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.brand, .back-link { min-height: 44px; display: inline-flex; align-items: center; font: 800 12px/1.2 ui-monospace, monospace; letter-spacing: .08em; text-decoration: none; }
.brand { color: var(--accent); }
.back-link { gap: 10px; color: var(--muted); }
.back-link:hover { color: var(--paper); }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.case-hero { min-height: 70svh; display: grid; align-content: center; padding: clamp(90px, 13vw, 180px) 0 clamp(64px, 9vw, 120px); }
.eyebrow, .section-label { margin: 0 0 22px; color: var(--accent); font: 800 11px/1.4 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 980px; margin: 0; font-size: clamp(52px, 9vw, 128px); line-height: .94; letter-spacing: -.065em; }
.lead { max-width: 760px; margin: 38px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 24px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 38px; }
.live-link, .text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; font: 800 11px/1.2 ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.live-link { padding: 14px 18px; color: var(--ink); background: var(--accent); text-decoration: none; }
.text-link { padding: 10px 0; text-underline-offset: 7px; }

.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.proof-grid article { min-height: 150px; padding: 26px; border-right: 1px solid var(--line); }
.proof-grid article:last-child { border-right: 0; }
.proof-grid h2 { margin: 0 0 18px; color: var(--muted); font: 800 10px/1.3 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.proof-grid p { margin: 0; font-size: 18px; line-height: 1.45; }

.case-body { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(42px, 8vw, 120px); padding: clamp(90px, 13vw, 170px) 0; }
.case-body-content { display: grid; gap: 70px; }
.case-body h2 { margin: 0 0 20px; font-size: clamp(30px, 4vw, 54px); line-height: 1.08; letter-spacing: -.04em; }
.case-body p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.evidence { padding: 32px; background: var(--panel); border: 1px solid var(--line); }
.evidence ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.9; }
.evidence a { color: var(--paper); text-underline-offset: 5px; overflow-wrap: anywhere; }

.more-work { padding: 80px 0; border-top: 1px solid var(--line); }
.more-links { display: flex; flex-wrap: wrap; gap: 12px; }
.more-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 14px; border: 1px solid var(--line); text-underline-offset: 5px; }
.more-links a:hover { border-color: var(--accent); }
.case-footer { display: grid; grid-template-columns: auto minmax(0, 720px) auto; justify-content: space-between; gap: 28px; padding: 28px clamp(20px, 5vw, 72px); color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; }
.case-footer p { margin: 0; }
.privacy-note { text-align: center; }
.analytics-consent { position: fixed; z-index: 100; right: 20px; bottom: 20px; width: min(520px, calc(100% - 40px)); padding: 22px; color: var(--paper); background: #11151a; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.analytics-consent p { margin: 0; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.analytics-consent button { min-height: 44px; padding: 10px 14px; border: 1px solid currentColor; color: inherit; background: transparent; font: 700 11px/1.2 var(--mono); cursor: pointer; }
.analytics-consent-accept { color: var(--ink) !important; background: var(--paper) !important; }

@media (max-width: 760px) {
  .back-link { font-size: 10px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid article:nth-child(2) { border-right: 0; }
  .proof-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .case-body { grid-template-columns: 1fr; }
  .case-footer { grid-template-columns: 1fr; }
  .privacy-note { text-align: left; }
  .analytics-consent { right: 12px; bottom: 12px; width: calc(100% - 24px); }
}

@media (max-width: 460px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-grid article:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
