/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --text: #111111;
  --text-muted: #888888;
  --border: #E5E5E5;
  --accent: #111111;
  --max: 1200px;
  --gap: 32px;
}

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

body {
  font-family: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

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

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

/* ===== HERO ===== */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 32px;
}

.hero-title em {
  font-style: italic;
  color: var(--text-muted);
}

.hero-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-meta span {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

/* ===== PROJECT GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid var(--border);
}

.project-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: block;
  transition: background 0.2s;
}

.project-card:hover { background: #EFEFEC; }

.project-card.featured {
  grid-column: 1 / -1;
}

.project-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.project-card.featured .project-thumb {
  aspect-ratio: 21 / 9;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb img { transform: scale(1.02); }

.project-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-info {
  padding: 24px 28px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.project-info-left {}

.project-company {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.project-name {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.5;
}

.project-meta {
  text-align: right;
  flex-shrink: 0;
}

.project-year {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.project-role {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.project-arrow {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.2s;
  align-self: flex-end;
}

.project-card:hover .project-arrow { transform: translate(3px, -3px); }

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.stat {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-number {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

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

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.footer-links a::after {
  content: '↗';
  font-size: 11px;
}

/* ===== CASE STUDY PAGES ===== */
.case-hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
}

.case-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-breadcrumb a:hover { color: var(--text); }

.case-title {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 800px;
  margin-bottom: 32px;
}

.case-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.case-meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.case-meta-item {
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}

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

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

.case-meta-value {
  font-size: 15px;
  font-weight: 400;
}

/* ===== CONTENT BLOCKS ===== */
.case-body {
  max-width: 760px;
  margin: 0 auto;
}

.case-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

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

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

.case-section h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 24px;
}

.case-section p {
  font-size: 16px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 16px;
}

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

.case-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.case-section ul li {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.case-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Full-width image block */
.case-image-full {
  margin: 56px 0;
}

.case-image-full img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.case-image-caption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  letter-spacing: 0.02em;
}

/* Two column images */
.case-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 56px 0;
}

.case-image-grid img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Highlight quote */
.case-quote {
  border-left: 2px solid var(--text);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
}

.case-quote p {
  font-size: 20px !important;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5 !important;
  color: var(--text) !important;
}

/* Steps/numbered items */
.steps {
  display: grid;
  gap: 0;
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-number {
  padding: 24px 20px;
  font-size: 13px;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  font-weight: 500;
}

.step-content {
  padding: 24px 28px;
}

.step-content h4 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px !important;
  margin-bottom: 0 !important;
  color: var(--text-muted) !important;
  line-height: 1.6 !important;
}

/* Next project */
.next-project {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.next-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.next-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: gap 0.2s;
}

.next-title:hover { gap: 20px; }

/* ===== ABOUT PAGE ===== */
.about-hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
}

.about-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 800px;
  margin-bottom: 40px;
}

.about-intro {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
  max-width: 680px;
}

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

.about-section {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.about-section h3 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.about-section p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Experience list */
.exp-list { list-style: none; }

.exp-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.exp-item:first-child { padding-top: 0; }
.exp-item:last-child { border-bottom: none; }

.exp-role {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.exp-company {
  font-size: 13px;
  color: var(--text-muted);
}

.exp-period {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  align-self: start;
  padding-top: 3px;
}

/* Skills tags */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.skills-list li {
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: #444;
}

/* Contact section */
.contact-section {
  padding: 96px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.contact-title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.1;
}

.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--text);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.contact-btn:hover {
  background: var(--text);
  color: var(--bg);
}

.contact-btn.primary {
  background: var(--text);
  color: var(--bg);
}

.contact-btn.primary:hover {
  background: #333;
  border-color: #333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .case-image-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .case-meta-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .hero { padding: 60px 0 48px; }
  .stats { grid-template-columns: 1fr; }
  .case-meta-row { grid-template-columns: 1fr; }
  .project-info { flex-direction: column; gap: 12px; }
  .project-meta { text-align: left; }
  .hero-meta { gap: 16px; }
}
