:root {
  color-scheme: dark;
  color: #111;
  background: #f9f9f8;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f9f9f8;
  color: #111;
}

img {
  max-width: 100%;
}

a {
  color: #1d4ed8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
.button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: white;
  cursor: pointer;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #111827;
  font-size: 0.95rem;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section-light {
  background: #ffffff;
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-copy {
  max-width: 720px;
  flex: 1 1 480px;
}

.hero-photo {
  position: relative;
  flex-shrink: 0;
  width: 160px;
  height: 160px;
}

.avatar-placeholder,
.avatar-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.avatar-photo {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: 25% 30%;
  border: 4px solid white;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.1rem, 2.5vw, 3.4rem);
  max-width: 13ch;
}

.hero-description,
.section p {
  color: #475569;
  margin-top: 1.5rem;
  max-width: 72ch;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: #1d4ed8;
  color: white;
}

.button.secondary {
  background: white;
  color: #1d4ed8;
  border-color: #dbeafe;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.metric-card {
  padding: 1.3rem 1.25rem;
  border-radius: 20px;
  background: #eef2ff;
  border: 1px solid rgba(79,70,229,0.12);
}

.metric-value {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1d4ed8;
}

.metric-label {
  margin: 0;
  color: #475569;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-grid,
.skill-grid,
.awards-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.case-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.case-card,
.skill-card,
.award-card {
  padding: 1.7rem;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.08);
}

.case-card h3,
.skill-card h3,
.award-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.25rem;
}

.case-category {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.case-context {
  margin-bottom: 1rem;
  color: #334155;
  font-weight: 600;
}

.case-reflection {
  margin-top: 1rem;
  color: #475569;
  font-style: italic;
}

.skill-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.skill-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #475569;
}

.skill-card li {
  margin-bottom: 0.4rem;
}

.skill-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  vertical-align: middle;
}

.skill-badge.deep {
  background: #dbeafe;
  color: #1d4ed8;
}

.skill-badge.working {
  background: #f1f5f9;
  color: #64748b;
}

.skill-card.full-width {
  grid-column: 1 / -1;
}

.awards-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.award-card p {
  margin: 0;
  color: #475569;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
}

.contact-grid p {
  margin: 0.9rem 0;
}

.site-footer {
  background: #111827;
  color: #e2e8f0;
  padding: 1.5rem 0;
}

.site-footer p {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .grid-2,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-top {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}
