* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0b0b0c;
  --surface: #151517;
  --surface-2: #1c1c20;
  --text: #f5f5f5;
  --muted: #a5a5ad;
  --line: #29292e;
  --accent: #b8ff55;
  --max-width: 1120px;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  padding: 90px 0;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.hero h2 {
  color: var(--muted);
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  font-weight: 450;
  margin-top: 24px;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 650;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.primary {
  background: var(--accent);
  color: #0b0b0c;
}

.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
}

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

.section-heading {
  margin-bottom: 48px;
}

.section-heading h2,
.contact h2 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-grid > p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 680px;
}

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

.skills span {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
}

.project-image {
  aspect-ratio: 4 / 3;
  width: 100%;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.placeholder {
  display: grid;
  place-items: center;
  color: #71717a;
  font-size: 0.9rem;
}

.project-content {
  padding: 24px;
}

.project-number {
  color: var(--accent);
  font-size: 0.75rem;
  margin-bottom: 18px;
}

.project-content h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.project-content > p:not(.project-number) {
  color: var(--muted);
  min-height: 52px;
}

.project-content a {
  display: inline-block;
  margin-top: 22px;
  font-weight: 650;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-date,
.timeline-item p {
  color: var(--muted);
}

.timeline-item h3 {
  margin-bottom: 3px;
}

.contact {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact > p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 22px;
}

.contact-link {
  display: inline-block;
  width: fit-content;
  margin-top: 22px;
  font-size: clamp(1.35rem, 4vw, 2.4rem);
  border-bottom: 1px solid var(--text);
}

footer {
  min-height: 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

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

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    z-index: 10;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px;
  }

  .about-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section {
    padding: 80px 0;
  }

  footer {
    padding: 28px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
