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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #f9f9f9;
  --gray-100: #f0f0f0;
  --gray-300: #d0d0d0;
  --gray-500: #888;
  --gray-700: #444;
  --accent: #1a56db;
  --accent-light: #e8effe;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max: 900px;
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ===== NAV ===== */
nav {
  border-bottom: 1px solid var(--gray-100);
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  z-index: 100;
}

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

.nav-logo {
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
  letter-spacing: -0.3px;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}

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

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

.hero-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 24px;
}

.hero p {
  font-size: 20px;
  color: var(--gray-700);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

@media (max-width: 600px) {
  .hero-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 24px;
  }
  .hero-photo img {
    width: 120px;
    height: 120px;
  }
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover { background: #1447c0; text-decoration: none; color: var(--white); }

.btn-secondary {
  background: var(--gray-100);
  color: var(--black);
}

.btn-secondary:hover { background: var(--gray-300); text-decoration: none; color: var(--black); }

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--gray-100);
}

.stat-item {
  padding: 40px 24px;
  border-right: 1px solid var(--gray-100);
}

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

.stat-number {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--black);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.3;
}

/* ===== SECTION ===== */
section { padding: 80px 0; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--black);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--gray-700);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ===== CASE STUDY CARDS ===== */
.cases-grid {
  display: grid;
  gap: 24px;
}

.case-card {
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.case-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.case-card-visual {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: var(--gray-50);
}

.case-card-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 14px;
}

.case-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.3;
}

.case-card p {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.6;
}

.case-metrics {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--black);
}

.metric-desc {
  font-size: 12px;
  color: var(--gray-500);
}

.case-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.skill-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.skill-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ===== AWARDS ===== */
.awards-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.award-item {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.award-icon {
  font-size: 28px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.award-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.award-item p { font-size: 13px; color: var(--gray-500); }

/* ===== CONTACT ===== */
.contact-section {
  background: var(--black);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.contact-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.contact-section p {
  font-size: 18px;
  color: #aaa;
  margin-bottom: 36px;
}

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

.contact-links a {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s;
}

.contact-links a:hover { background: rgba(255,255,255,0.2); text-decoration: none; }

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

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

footer p { font-size: 13px; color: var(--gray-500); }

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

.breadcrumb {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--black); }

.cs-hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 720px;
}

.cs-hero .lead {
  font-size: 19px;
  color: var(--gray-700);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.cs-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.cs-meta-item { display: flex; flex-direction: column; gap: 2px; }
.cs-meta-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); }
.cs-meta-value { font-size: 14px; font-weight: 600; color: var(--black); }

.cs-impact-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
  margin: 56px 0;
  overflow: hidden;
}

.cs-impact-item {
  padding: 36px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.cs-impact-item:last-child { border-right: none; }

.cs-impact-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}

.cs-impact-label {
  font-size: 13px;
  color: #aaa;
  line-height: 1.4;
}

.cs-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-100);
}

.cs-section:last-of-type { border-bottom: none; }

.cs-section h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.cs-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 32px;
}

.cs-section p {
  color: var(--gray-700);
  margin-bottom: 16px;
  max-width: 720px;
}

.cs-section ul, .cs-section ol {
  color: var(--gray-700);
  padding-left: 22px;
  margin-bottom: 16px;
  max-width: 720px;
}

.cs-section li { margin-bottom: 8px; }

.callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  max-width: 720px;
}

.callout p { margin: 0; color: var(--black); font-weight: 500; }

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.outcome-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 24px;
}

.outcome-card .num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.outcome-card .desc {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.4;
}

/* ===== CASE STUDY IMAGES ===== */
.cs-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.cs-figure {
  margin: 32px 0;
}

.cs-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.cs-figure figcaption {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 10px;
  text-align: center;
}

.cs-figure-wide {
  max-width: 720px;
}

.cs-figure-narrow {
  max-width: 320px;
}

@media (max-width: 600px) {
  .cs-image-row {
    grid-template-columns: 1fr;
  }
  .cs-figure-narrow {
    max-width: 100%;
  }
}

.cs-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
  gap: 16px;
}

.cs-nav a {
  font-size: 14px;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .case-card {
    grid-template-columns: 1fr;
  }

  .case-card-visual { min-height: 180px; }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--gray-100); }

  .nav-links { display: none; }

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

  .cs-impact-item:nth-child(2n) { border-right: none; }
  .cs-impact-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
}
