:root {
  --bg: #111113;
  --panel: #161617;
  --panel-soft: #1d1d1f;
  --black: #000000;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --muted-2: #86868b;
  --blue: #2997ff;
  --line: rgba(255, 255, 255, 0.1);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: min(100%, var(--max));
  height: 44px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(245, 245, 247, 0.82);
  font-size: 12px;
}

.brand-link {
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
}

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

.nav-cta,
.link-row a,
.footer-links a {
  color: var(--blue);
  font-weight: 500;
}

.hero {
  background: var(--bg);
}

.hero-inner {
  width: min(100%, var(--max));
  min-height: calc(100vh - 44px);
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow,
.section-kicker {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.hero h1 {
  margin-top: 14px;
  color: var(--text);
  font-size: clamp(52px, 10vw, 104px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hero-lede {
  max-width: 820px;
  margin-top: 22px;
  color: var(--text);
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero-copy {
  max-width: 680px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.link-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
  color: var(--blue);
  font-size: 19px;
}

.achievement-strip {
  background: var(--panel-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.achievement-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.achievement-grid div {
  padding: 28px 8px;
}

.achievement-grid p {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.achievement-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.split-section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 96px 24px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.split-section h2,
.section-heading h2 {
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.body-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.body-copy p + p {
  margin-top: 24px;
}

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

.skill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.experience-section {
  padding: 96px 24px;
  background: var(--panel);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.experience-grid {
  width: min(100%, var(--max));
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.experience-card {
  min-height: 220px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel-soft);
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.experience-card h3 {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.card-title-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.card-role {
  margin-top: 4px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
}

.experience-card p:last-child {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.projects-section {
  padding: 12px 0;
  background: var(--bg);
}

.project-showcase {
  margin-bottom: 12px;
  padding: 96px 24px;
  text-align: center;
}

.project-black {
  background: var(--black);
}

.project-graphite,
.mini-project {
  background: var(--panel-soft);
}

.project-inner {
  max-width: 860px;
  margin: 0 auto;
}

.project-inner.wide {
  max-width: 1000px;
}

.project-showcase h2 {
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(48px, 8vw, 76px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.project-showcase p:not(.eyebrow) {
  max-width: 860px;
  margin: 22px auto 0;
  color: var(--text);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

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

.mini-project {
  min-height: 520px;
  padding: 80px 32px;
  text-align: center;
}

.mini-project h2 {
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.mini-project p:not(.eyebrow) {
  max-width: 520px;
  margin: 18px auto 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.small-links {
  font-size: 16px;
  gap: 12px 24px;
}

.site-footer {
  padding: 56px 24px;
  background: var(--bg);
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.site-footer h2 {
  color: var(--text);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.site-footer p {
  max-width: 640px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px 24px;
  font-size: 14px;
  white-space: nowrap;
}

.copyright {
  width: min(100%, var(--max));
  margin: 40px auto 0;
  color: var(--muted-2);
  font-size: 12px;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .hero-inner {
    min-height: 720px;
  }

  .achievement-grid,
  .experience-grid,
  .project-mini-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section,
  .experience-section,
  .project-showcase {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .experience-card {
    min-height: 0;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav-inner {
    padding: 0 16px;
  }

  .hero-inner,
  .split-section,
  .experience-section,
  .project-showcase,
  .mini-project,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-inner {
    min-height: 640px;
  }

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

  .card-title-row {
    display: block;
  }

  .card-title-row span {
    display: block;
    margin-top: 6px;
  }

  .link-row {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
