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

:root {
  --bg:        #F5F2ED;
  --bg-alt:    #EDEAE4;
  --bg-dark:   #E4E0D9;
  --border:    #D0CCC4;
  --text:      #1C1B19;
  --text-mid:  #5A5754;
  --text-muted:#8A8782;
  --blue:      #3A577F;
  --blue-light:#DDE6F0;
  --blue-tag:  #C8D8EE;
  --font:      'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Nav ---- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-mid);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-resume {
  font-size: 12px;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.nav-resume:hover {
  border-color: var(--text-mid);
}

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
  min-height: 380px;
}

.hero-left {
  padding: 64px 56px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-name {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-bio {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: 32px;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #2e2d2b;
}

.btn-ghost {
  font-size: 13px;
  color: var(--text-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: var(--text);
}

.hero-right {
  padding: 64px 56px;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.stat-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.stat-row:first-child {
  padding-top: 0;
}

.stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---- Work Section ---- */
.work {
  padding: 48px 56px;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.case-list {
  display: flex;
  flex-direction: column;
}

.case-item {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  gap: 20px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 4px;
}

.case-item:last-child {
  border-bottom: none;
}

.case-item:hover .case-title {
  color: var(--blue);
}

.case-item:hover .case-arrow {
  color: var(--blue);
  transform: translateX(4px);
}

.case-num {
  font-size: 12px;
  font-weight: 500;
  color: var(--border);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 2px;
  background: var(--bg-dark);
  color: var(--text-mid);
  font-weight: 400;
}

.tag-blue {
  background: var(--blue-light);
  color: var(--blue);
}

.case-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.case-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
  max-width: 580px;
}

.case-arrow {
  font-size: 18px;
  color: var(--border);
  padding-top: 2px;
  transition: color 0.2s, transform 0.2s;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 18px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-right a:hover {
  color: var(--text);
}

/* ---- About Page ---- */
.page-hero {
  padding: 72px 56px 56px;
  border-bottom: 1px solid var(--border);
  max-width: 680px;
}

.page-eyebrow {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.page-bio {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.85;
  font-weight: 300;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}

.about-col {
  padding: 48px 56px;
  border-right: 1px solid var(--border);
}

.about-col:last-child {
  border-right: none;
}

.about-col-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-item {
  font-size: 14px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ---- Case Study Pages ---- */
.case-hero {
  padding: 72px 56px 56px;
  border-bottom: 1px solid var(--border);
}

.case-hero-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.case-hero-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 700px;
}

.case-hero-summary {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.85;
  font-weight: 300;
  max-width: 620px;
}

.case-content {
  max-width: 720px;
  padding: 56px 56px;
}

.case-section {
  margin-bottom: 52px;
}

.case-section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.case-section p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 14px;
}

.case-section p:last-child {
  margin-bottom: 0;
}

.case-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  margin-top: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 20px 56px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text);
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .nav { padding: 16px 24px; }
  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 48px 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-right { padding: 40px 24px; }
  .hero-name { font-size: 30px; }
  .work { padding: 36px 24px; }
  .footer { padding: 16px 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-col { padding: 36px 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .case-hero { padding: 48px 24px 40px; }
  .case-content { padding: 40px 24px; }
  .back-link { padding: 16px 24px; }
  .case-item { grid-template-columns: 32px 1fr 20px; gap: 12px; }
}
