/* ── Design tokens (mirror index.html) ─────────────────────────────────────── */
[data-theme="dark"] {
  --bg: #080808; --bg-1: #0e0e0e; --bg-2: #141414;
  --bg-nav: rgba(8,8,8,0.92);
  --tx: #e8e4dd; --tx-2: #9e9890; --tx-3: #5c5752;
  --ac: #d4a84b; --ac-dim: rgba(212,168,75,0.12);
  --bd: rgba(255,255,255,0.07); --bd-2: rgba(255,255,255,0.14);
  --grid: rgba(255,255,255,0.045);
}
[data-theme="light"] {
  --bg: #f7f4ef; --bg-1: #eeebe4; --bg-2: #e5e1d8;
  --bg-nav: rgba(247,244,239,0.92);
  --tx: #1a1814; --tx-2: #6b655e; --tx-3: #a09890;
  --ac: #b8862d; --ac-dim: rgba(184,134,45,0.12);
  --bd: rgba(0,0,0,0.07); --bd-2: rgba(0,0,0,0.14);
  --grid: rgba(0,0,0,0.04);
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); color: var(--tx); scroll-behavior: smooth; }
body { font-family: 'IBM Plex Mono', monospace; font-size: 15px; line-height: 1.7;
       min-height: 100vh; }
a { color: var(--ac); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* ── Nav ────────────────────────────────────────────────────────────────────── */
.case-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-nav); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bd);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 52px; font-size: 12px; letter-spacing: .04em;
}
.case-nav-back {
  color: var(--tx-2); transition: color .2s; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase;
}
.case-nav-back:hover { color: var(--ac); text-decoration: none; }
.case-nav-brand { color: var(--tx-3); font-size: 11px; letter-spacing: .08em;
                  text-transform: uppercase; }

/* ── Width container ────────────────────────────────────────────────────────── */
.w { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ── Hero image area ────────────────────────────────────────────────────────── */
.case-hero {
  height: 420px; position: relative; overflow: hidden;
  background: var(--bg-2);
}
.case-hero picture { display: block; width: 100%; height: 100%; }
.case-hero img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: saturate(0.7) contrast(1.05) brightness(1.05);
}
[data-theme="light"] .case-hero img {
  filter: saturate(0.55) contrast(1.1) brightness(0.95);
}
.case-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--bg) 100%);
}

/* NDA hero variant */
.case-hero-nda {
  height: 420px; position: relative; overflow: hidden;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  display: flex; align-items: center; justify-content: center;
}
.case-hero-nda::after {
  content: 'CONFIDENTIAL';
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--tx-3); border: 1px solid var(--bd-2); padding: 6px 14px;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.case-header { padding: 48px 0 36px; border-bottom: 1px solid var(--bd); }
.case-meta-row {
  display: flex; gap: 0; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tx-3); margin-bottom: 20px;
}
.case-meta-row span + span::before {
  content: ' · '; margin: 0 6px; color: var(--tx-3);
}
.case-header h1 {
  font-size: clamp(22px, 4vw, 38px); line-height: 1.15; font-weight: 700;
  color: var(--tx); max-width: 700px;
}
.case-header .dlc {
  color: var(--tx-2); font-weight: 400;
}

/* ── Content sections ───────────────────────────────────────────────────────── */
.case-section { padding: 48px 0; border-bottom: 1px solid var(--bd); }
.case-section:last-child { border-bottom: none; padding-bottom: 80px; }
.case-section-label {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tx-3); margin-bottom: 20px; font-weight: 600;
}
.case-section p {
  font-size: 15px; line-height: 1.75; color: var(--tx); max-width: 680px;
}
.case-section p + p { margin-top: 16px; }
.case-decisions {
  list-style: none; display: flex; flex-direction: column; gap: 20px;
  max-width: 700px;
}
.case-decisions li {
  padding-left: 20px; position: relative;
  font-size: 14px; line-height: 1.7; color: var(--tx);
}
.case-decisions li::before {
  content: '—'; position: absolute; left: 0; color: var(--ac); font-weight: 700;
}
.case-decisions li strong { color: var(--tx); font-weight: 600; }

/* NDA notice */
.nda-notice {
  display: inline-block; border: 1px solid var(--bd-2);
  padding: 16px 20px; margin-top: 8px; max-width: 560px;
  font-size: 13px; line-height: 1.65; color: var(--tx-2);
}
.nda-notice strong { color: var(--ac); font-size: 10px; letter-spacing: .12em;
                     text-transform: uppercase; display: block; margin-bottom: 8px; }

/* ── Outcome tag ────────────────────────────────────────────────────────────── */
.case-outcome-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ac); border: 1px solid var(--ac-dim);
  background: var(--ac-dim); padding: 4px 10px; margin-bottom: 16px;
}

/* ── Tags ───────────────────────────────────────────────────────────────────── */
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.case-tag {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--bd-2); color: var(--tx-2); padding: 3px 8px;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.case-footer {
  border-top: 1px solid var(--bd); padding: 32px 0 40px;
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--tx-3); letter-spacing: .04em;
}
.case-footer a { color: var(--tx-2); }
.case-footer a:hover { color: var(--ac); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .case-hero, .case-hero-nda { height: 260px; }
  .case-header { padding: 32px 0 24px; }
  .case-section { padding: 32px 0; }
}
