:root {
  --bg: #0e0e0e;
  --surface: #141414;
  --surface-raised: #181818;
  --rule: #232323;
  --rule-light: #2e2e2e;
  --ink: #eae6de;
  --muted: #72706b;
  --text-dim: #a6a39b;
  --accent: #c8a96e;
  --project: #c8a96e;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  padding-bottom: 2rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(234, 230, 222, 0.075) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.case-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.8rem 1.6rem 5.5rem;
}

.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  font: 500 0.64rem 'DM Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.case-nav a:hover {
  color: var(--ink);
}

.hero {
  padding: 4rem 0 2.2rem;
}

.eyebrow {
  font: 500 0.62rem 'DM Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--project);
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.045em;
  max-width: 820px;
  margin: 0 0 1rem;
  color: var(--ink);
}

.hero .lede {
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 710px;
  margin: 1.1rem 0 0;
  font-weight: 300;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.75rem;
}

.meta {
  padding: 0.95rem 1rem 0.95rem 0;
}

.meta-label {
  font: 500 0.56rem 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.meta-value {
  font-size: 0.86rem;
  margin-top: 0.22rem;
  color: var(--ink);
  font-weight: 400;
}

.cover {
  aspect-ratio: 16 / 8.5;
  background: linear-gradient(135deg, color-mix(in srgb, var(--project) 20%, #111), #111 75%);
  border: 1px solid var(--rule);
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.cover img {
  width: 26%;
  max-width: 170px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 16px;
}

.story {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2.5rem;
  padding: 2.75rem 0;
  border-top: 1px solid var(--rule);
}

.story-label {
  font: 500 0.6rem 'DM Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--project);
  position: sticky;
  top: 2rem;
  align-self: start;
}

.story h2 {
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.story p {
  font-size: 0.94rem;
  line-height: 1.72;
  color: #b5b2aa;
  margin: 0 0 1rem;
}

.story ul {
  padding-left: 1.15rem;
  color: #b5b2aa;
  margin: 0.75rem 0 1.25rem;
}

.story li {
  margin: 0.55rem 0;
  line-height: 1.62;
  font-size: 0.94rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.15rem 1.2rem;
}

.metric strong {
  display: block;
  font: 400 1.65rem 'DM Mono', monospace;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.metric span {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
  display: block;
  margin-top: 0.25rem;
}

.nda {
  border-left: 2px solid var(--project);
  padding: 0.9rem 1.15rem;
  background: var(--surface);
  color: #a8a49c;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 1.25rem;
  border-radius: 0 6px 6px 0;
}

.case-footer {
  padding-top: 3.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.case-footer a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.case-footer a:hover {
  color: var(--project);
}

.case-footer small {
  display: block;
  font: 500 0.56rem 'DM Mono', monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.source {
  margin-top: 2.75rem;
  font: 400 0.6rem 'DM Mono', monospace;
  color: #666;
}

.source a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.source a:hover {
  color: var(--ink);
}

.statusbar {
  z-index: 20;
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0 1.8rem;
  }
  .meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .story {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 2rem 0;
  }
  .story-label {
    position: static;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .cover {
    margin-bottom: 2.5rem;
  }
  .case-footer {
    flex-direction: column;
    gap: 1.5rem;
  }
}
