@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        oklch(98% 0.005 80);
  --bg-soft:   oklch(95.5% 0.008 80);
  --ink:        oklch(14% 0.01 280);
  --ink-mid:    oklch(45% 0.01 280);
  --ink-muted:  oklch(62% 0.008 280);
  --accent:     oklch(42% 0.12 25);
  --accent-light: oklch(94% 0.035 25);
  --border:     oklch(88% 0.006 80);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  --max: 1200px;
  --gutter: clamp(24px, 5vw, 80px);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; text-wrap: balance; }

.label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ── Layout ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: oklch(98% 0.005 80 / 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mid);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

/* ── Page offset ── */
.page-body { padding-top: 60px; }

/* ── Divider ── */
hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 12px;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn--outline:hover { border-color: var(--ink); }

/* ── Section spacing ── */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section--sm { padding: clamp(40px, 6vw, 80px) 0; }

/* ── Work grid ── */
.work-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
}

.work-grid--2 { grid-template-columns: 1fr 1fr; }
.work-grid--3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── Featured item ── */
.featured-item {
  background: var(--bg);
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: background 0.2s;
  border: 1px solid var(--border);
}
.featured-item:hover { background: var(--bg-soft); }

.featured-item__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.featured-item__body {
  padding: 32px 40px 36px;
}

.featured-item__kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
  display: block;
}

.featured-item__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.2;
  margin-bottom: 12px;
}

.featured-item__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: 480px;
}

.featured-item__meta {
  margin-top: 20px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.featured-item__stat {
  font-size: 12px;
  color: var(--ink-muted);
}

.featured-item__stat strong {
  display: block;
  font-size: 18px;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
}

/* ── Selected work (dense grid) ── */
.selected-item {
  background: var(--bg);
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 32px 36px;
  transition: background 0.2s;
}
.selected-item:hover { background: var(--bg-soft); }

.selected-item__image {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.selected-item__kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
  display: block;
}

.selected-item__title {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 8px;
}

.selected-item__desc {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.55;
}

/* ── Case study ── */
.cs-summary {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.cs-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
}

.cs-meta-item {}
.cs-meta-item .label { margin-bottom: 6px; display: block; }
.cs-meta-item p { font-size: 14px; line-height: 1.5; }

.cs-outcome-banner {
  background: var(--ink);
  color: var(--bg);
  padding: 48px 0;
}

.cs-outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}

.cs-stat {}
.cs-stat__num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  margin-bottom: 8px;
}
.cs-stat__label {
  font-size: 13px;
  opacity: 0.65;
  line-height: 1.4;
}

/* ── Prose ── */
.prose {
  max-width: 680px;
}

.prose h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 20px;
  margin-top: 56px;
}
.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
  margin-top: 48px;
}

.prose p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-mid);
  margin-bottom: 20px;
}

.prose p strong { color: var(--ink); font-weight: 500; }

/* ── Expandable section ── */
.expandable {
  border-top: 1px solid var(--border);
}

.expandable:last-child { border-bottom: 1px solid var(--border); }

.expandable__trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  gap: 20px;
}

.expandable__trigger h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

.expandable__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, background 0.15s;
}

.expandable.is-open .expandable__icon {
  transform: rotate(45deg);
  background: var(--ink);
  border-color: var(--ink);
}

.expandable.is-open .expandable__icon svg { stroke: var(--bg); }

.expandable__content {
  display: none;
  padding-bottom: 40px;
}

.expandable.is-open .expandable__content { display: block; }

/* ── Image layouts ── */
.img-full {
  width: 100%;
  display: block;
}

.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 32px 0;
}

.img-pair img { width: 100%; display: block; }

/* ── About timeline ── */
.timeline {
  list-style: none;
  border-left: 1px solid var(--border);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.timeline-item__date {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.timeline-item__role {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 4px;
}

.timeline-item__co {
  font-size: 14px;
  color: var(--ink-mid);
}

/* ── Hero ── */
.hero {
  padding: clamp(80px, 14vw, 160px) 0 clamp(64px, 10vw, 120px);
}

.hero__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 28px;
  display: block;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  max-width: 900px;
}

.hero__headline em {
  font-style: italic;
  color: var(--accent);
}

.hero__stat-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
  padding: 28px 32px;
  background: var(--ink);
  color: var(--bg);
  max-width: 520px;
  border-radius: 12px;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1;
  white-space: nowrap;
}

.hero__stat-desc {
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.8;
  padding-top: 6px;
}

.hero__bio {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: var(--ink-mid);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Section header ── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1px;
  gap: 16px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-inner p { font-size: 13px; color: var(--ink-muted); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ── Mobile nav ── */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root { --gutter: 20px; }

  .work-grid--2,
  .work-grid--3 { grid-template-columns: 1fr; }

  .img-pair { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px var(--gutter) 28px;
    gap: 20px;
  }
  .nav-links.is-open a { font-size: 16px; }

  .hero__stat-block { flex-direction: column; gap: 8px; }

  .cs-outcome-grid { grid-template-columns: 1fr 1fr; }

  .section-header { flex-direction: column; align-items: flex-start; }

  .footer-inner { flex-direction: column; gap: 16px; }

  .featured-item__body { padding: 24px 20px 28px; }
  .selected-item { padding: 24px 20px; }
}
