/* Portfolio case studies: built by scripts/build_cases.py, in the same look as the main pages. */
@font-face { font-family: "Host Grotesk"; font-weight: 400; font-display: swap; src: url(/assets/fonts/font-6be6f339.woff2) format("woff2"); }
@font-face { font-family: "Host Grotesk"; font-weight: 500; font-display: swap; src: url(/assets/fonts/font-c67a7cfb.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-display: swap; src: url(/assets/fonts/font-a003af28.woff2) format("woff2"); }
:root { color-scheme: dark; --bg: #000; --surface: #111; --text: #e6e6e6; --muted: #bdbdbd; --line: rgba(250, 250, 250, .12); --accent: #ee620d; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.6 "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: #fff; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.cs-top, .cs-main, .cs-foot { max-width: 1232px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.cs-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cs-logo img { width: 104px; }
.cs-top ul, .cs-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.cs-top ul { gap: 4px 24px; }
.cs-top a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; }

.cs-hero { padding: 72px 0 40px; }
.cs-main .cs-eyebrow { margin: 0 0 16px; font: italic 18px/1.2 "Instrument Serif", Georgia, serif; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.cs-main h1 { margin: 0; font-weight: 400; font-size: clamp(48px, 10vw, 128px); line-height: 1.05; letter-spacing: -.045em; color: #fff; }
.cs-main .cs-lead { max-width: 34ch; margin: 24px 0 40px; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.35; letter-spacing: -.01em; color: #fff; }
.cs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin: 0 0 40px; border-top: 1px solid var(--line); }
.cs-facts div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.cs-facts dt { font-size: 14px; color: var(--muted); }
.cs-facts dd { margin: 4px 0 0; color: #fff; }

.cs-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid #fff; border-radius: 999px; text-decoration: none; color: #fff; }
.cs-btn:hover { background: #fff; color: #000; }
.cs-btn-solid { background: #fff; color: #000; }
.cs-btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.cs-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.cs-shot { margin: 0 0 72px; }
.cs-shot img { width: 100%; border-radius: 16px; background: var(--surface); }
.cs-main section { max-width: 760px; margin: 0 0 72px; }
.cs-main h2 { margin: 0 0 16px; font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; color: #fff; }
.cs-main p { margin: 0 0 16px; }
.cs-list { margin: 0; padding: 0; list-style: none; }
.cs-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cs-list strong { font-weight: 500; color: #fff; }
.cs-scores { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.cs-scores li { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); line-height: 1.3; }
.cs-num { display: block; margin-bottom: 8px; font-size: 56px; line-height: 1; letter-spacing: -.04em; color: var(--accent); }
.cs-cta { padding-top: 40px; border-top: 1px solid var(--line); }

.cs-foot { padding-top: 32px; padding-bottom: 96px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.cs-foot ul { gap: 4px 20px; margin-bottom: 12px; }
.cs-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.cs-foot a:hover { color: #fff; }

@media (max-width: 640px) {
  .cs-top { flex-direction: column; align-items: flex-start; }
  .cs-hero { padding-top: 48px; }
}
