:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e8e8e6;
  --card: #f5f5f3;
  --max: none;
  --gutter: 50px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #f2f2f0;
    --muted: #9a9a96;
    --line: #2a2a28;
    --card: #1b1b1a;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, b, strong, dt, dd { font-weight: 400; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 400; letter-spacing: -0.01em; }
.nav { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 56px; }
.hero h1 {
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 400;
  max-width: 880px;
}
.section-label { font-size: 14px; font-weight: 400; color: var(--muted); margin: 24px 0 20px; }

/* Project grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 28px; padding-bottom: 96px; }
.card { display: block; }
.card .thumb {
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--card);
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.03); }
.card h3 { margin-top: 14px; font-size: 28px; font-weight: 400; letter-spacing: 0.01em; }

/* About */
.about { padding-top: 96px; padding-bottom: 24px; }
.about h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.03em; line-height: 1.05; }
.about .lead {
  font-size: clamp(20px, 2.6vw, 28px); line-height: 1.35; font-weight: 400;
  letter-spacing: -0.015em; max-width: 860px; margin-top: 28px;
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; padding: 72px 0 96px; }
.pillars h3 { font-size: 17px; margin-bottom: 10px; letter-spacing: -0.01em; }
.pillars p { color: var(--muted); font-size: 15px; }

/* Case study */
.case-head { padding-top: 80px; padding-bottom: 32px; }
.case-head h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.03em; max-width: 860px; }
.case-head .summary { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 760px; }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.meta dd { font-size: 16px; margin-top: 4px; font-weight: 400; }
.meta a { text-decoration: underline; text-underline-offset: 3px; }
.cover { margin: 40px 0 8px; border-radius: 14px; overflow: hidden; background: var(--card); }
.cover img { width: 100%; max-height: 560px; object-fit: cover; }
.phase { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.phase .num { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.phase h2 { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 12px; }
.phase p { max-width: 680px; font-size: 17px; }
.impact { padding: 56px 0 24px; }
.impact h2 { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 12px; }
.impact ul { padding-left: 20px; max-width: 720px; }
.impact li, .impact p { font-size: 17px; margin-bottom: 8px; max-width: 720px; }
.stats { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 32px; }
.stat b { display: block; font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; }
.note { margin-top: 40px; padding: 20px 24px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }

/* Footer */
.site-footer { padding: 56px 0 40px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; }
.site-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; font-weight: 400; }
.site-footer li { list-style: none; margin-bottom: 6px; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.copy { margin-top: 48px; color: var(--muted); }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 36px; }
  .meta { grid-template-columns: repeat(2, 1fr); }
  .phase { grid-template-columns: 1fr; gap: 8px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .hero, .about { padding-top: 56px; }
}

@media (max-width: 600px) {
  :root { --gutter: 24px; }
}
