:root {
  --bg: #0b0d10;
  --surface: #11151a;
  --surface-2: #161b21;
  --text: #f2f4f6;
  --muted: #9aa4ae;
  --line: #252b32;
  --accent: #d7ff5f;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  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; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.wordmark {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 10px; font-weight: 800; letter-spacing: -.04em;
}
.nav-projects { color: var(--muted); font-weight: 650; }
.nav-projects:hover, .text-link:hover, .footer a:hover, .card-links a:hover { color: var(--accent); }
.nav-projects span { margin-left: 5px; }
.hero { min-height: auto; display: grid; grid-template-columns: 1.5fr .75fr; gap: 80px; align-items: center; padding: 80px 0 30px; }
.kicker { margin: 0 0 18px; color: var(--accent); font-size: .74rem; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: .9; letter-spacing: -.075em; margin-bottom: 24px; }
.headline { font-size: clamp(1.5rem, 3vw, 2.35rem); line-height: 1.2; letter-spacing: -.035em; max-width: 720px; }
.intro { max-width: 680px; color: var(--muted); font-size: 1.06rem; }
.socials { display: flex; gap: 10px; margin-top: 30px; }
.icon-link { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); transition: .18s ease; }
.icon-link:hover { color: var(--text); border-color: #48505a; transform: translateY(-2px); }
.icon-link svg { width: 20px; height: 20px; fill: currentColor; }
.hero-side { align-self: end; padding-bottom: 10px; }
.hero-line { width: 64px; height: 2px; background: var(--accent); margin-bottom: 24px; }
.hero-side p { color: var(--muted); margin-bottom: 14px; font-size: .85rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 750; }
.hero-side ul { list-style: none; margin: 0; padding: 0; color: var(--text); }
.hero-side li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.projects-preview { padding: 0px 0 80px; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.section-top h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: -.055em; margin: 0; }
.text-link { color: var(--muted); font-weight: 700; }
.preview-grid, .cards-grid { display: grid; gap: 18px; }
.preview-grid { grid-template-columns: 1.2fr .8fr; }
.cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 120px; }
.preview-card, .project-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; min-height: 310px; display: flex; flex-direction: column; }
.preview-card.featured { background: linear-gradient(135deg, #11151a 0%, #151b1f 100%); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.card-number { color: #56616c; font-size: .82rem; font-weight: 800; letter-spacing: .1em; }
.status { color: var(--accent); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.card-category { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 800; margin: 35px 0 8px; }
.preview-card h3, .project-card h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; letter-spacing: -.04em; margin-bottom: 14px; }
.card-description { color: var(--muted); max-width: 720px; }
.tech-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.tech-row span { border: 1px solid var(--line); color: #cbd1d7; border-radius: 999px; padding: 6px 10px; font-size: .74rem; }
.card-links { display: flex; gap: 20px; padding-top: 24px; margin-top: 22px; border-top: 1px solid var(--line); font-weight: 750; font-size: .86rem; }
.projects-page { padding-top: 90px; }
.projects-hero { padding-bottom: 52px; max-width: 850px; }
.projects-hero h1 { font-size: clamp(3.2rem, 7vw, 6rem); letter-spacing: -.07em; line-height: .95; margin-bottom: 18px; }
.projects-hero p:last-child { color: var(--muted); font-size: 1.12rem; max-width: 660px; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; display: flex; justify-content: space-between; color: var(--muted); font-size: .84rem; }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 55px; min-height: auto; padding: 80px 0 70px; }
  .hero-side { max-width: 600px; }
  .preview-grid, .cards-grid { grid-template-columns: 1fr; }
  .section-top { align-items: start; flex-direction: column; }
  .projects-page { padding-top: 70px; }
}
@media (max-width: 520px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .topbar-inner { height: 68px; }
  .hero h1 { font-size: 3.7rem; }
  .preview-card, .project-card { padding: 22px; }
}
