:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9dee7;
  --teal: #0f766e;
  --coral: #ef4444;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 6vw;
  background: rgba(246, 247, 251, 0.92);
  border-bottom: 1px solid rgba(217, 222, 231, 0.8);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
}

nav a:hover,
.card-actions a:hover {
  color: var(--teal);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: end;
  padding: 120px 6vw 76px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #111827;
}


.hero-portrait {
  position: absolute;
  right: 7vw;
  bottom: 0;
  z-index: 0;
  width: min(430px, 36vw);
  max-height: 76%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 1) 0%, rgba(17, 24, 39, 0.88) 48%, rgba(17, 24, 39, 0.18) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 850px;
  font-size: 4.25rem;
}

.hero-copy,
.lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.hero-actions,
.contact-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 800;
}

.button.primary {
  background: var(--teal);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-band div {
  padding: 24px 6vw;
  background: var(--surface);
}

.stats-band strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.stats-band span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  width: min(1120px, 88vw);
  margin: 0 auto;
  padding: 84px 0;
}

.section-text {
  max-width: 620px;
  margin-bottom: 24px;
}

.section h2 {
  font-size: 2.35rem;
}

.intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  align-items: start;
}

.lead {
  margin: 0;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.project-meta span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.project-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.card-actions a {
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

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

.skill-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  font-weight: 800;
}

.contact {
  border-top: 1px solid var(--line);
}

.contact .button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

footer {
  padding: 28px 6vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 880px) {
  .hero-portrait {
    right: -22vw;
    width: 92vw;
    max-height: 68%;
    opacity: 0.24;
  }

  .hero-overlay {
    background: rgba(17, 24, 39, 0.76);
  }

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

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 72vh;
    padding-top: 96px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .stats-band,
  .intro,
  .project-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 560px) {
  nav {
    gap: 12px;
    font-size: 0.92rem;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .section h2 {
    font-size: 1.85rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
