:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #000000;
  --muted: #3f3f3f;
  --quiet: #767676;
  --line: rgba(0, 0, 0, 0.14);
  --accent: #000000;
  --accent-soft: #eeeeee;
  --measure: 500px;
  --wide-media: 50vw;
  --radius: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.62;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  padding: 28px 20px 72px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--measure), calc(100vw - 40px));
  margin: 0 auto 84px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav a {
  text-decoration: none;
}

.mark {
  color: var(--ink);
  font-weight: 560;
}

.container {
  width: min(var(--measure), calc(100vw - 40px));
  margin: 0 auto;
}

.case-header,
.home-header {
  margin-bottom: 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--quiet);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.08;
  font-weight: 620;
}

h2 {
  margin: 58px 0 14px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 650;
}

h3 {
  margin: 28px 0 8px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 650;
}

p {
  margin-bottom: 16px;
}

.lede {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.project-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.project-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 220ms var(--ease), transform 220ms var(--ease);
}

.project-card:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.project-title {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 620;
}

.project-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.project-number {
  color: var(--quiet);
  font-size: 12px;
}

.case-body {
  padding-bottom: 44px;
}

.section {
  margin-bottom: 8px;
}

.stats {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.stat {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.stat-value {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  font-weight: 660;
}

.stat-label {
  color: var(--muted);
}

.media-block {
  margin: 34px auto;
}

.media {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.media--s {
  width: min(var(--measure), calc(100vw - 40px));
}

.media--l {
  width: min(var(--wide-media), calc(100vw - 40px));
  min-width: min(var(--measure), calc(100vw - 40px));
}

.media-caption {
  width: min(var(--measure), calc(100vw - 40px));
  margin: 12px auto 38px;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.45;
}

.diagram {
  min-height: 100%;
  padding: 22px;
}

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.diagram-panel {
  min-height: 150px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.diagram-label {
  margin-bottom: 16px;
  color: var(--quiet);
  font-size: 10px;
  text-transform: uppercase;
}

.diagram-line {
  height: 8px;
  margin-bottom: 8px;
  border-radius: 99px;
  background: var(--accent-soft);
}

.diagram-line:nth-child(3) {
  width: 72%;
}

.diagram-line:nth-child(4) {
  width: 54%;
}

.diagram-node {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.diagram-node::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.quote {
  margin: 34px 0;
  padding: 0 0 0 18px;
  border-left: 1px solid var(--accent);
  color: var(--muted);
}

.case-footer {
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .site-shell {
    padding-top: 22px;
  }

  .site-nav {
    margin-bottom: 58px;
  }

  h1 {
    font-size: 32px;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .diagram-grid {
    grid-template-columns: 1fr;
  }

  .media--l {
    min-width: 0;
  }
}
