:root {
  color-scheme: dark;
  --bg: #070b14;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --border: rgba(148, 163, 184, 0.2);
  --text: #f8fafc;
  --muted: #9aa8bd;
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --gold: #fbbf24;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(167, 139, 250, 0.2), transparent 30rem),
    linear-gradient(180deg, #020617, var(--bg) 28%, #020617);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(18px);
}

.nav,
.section-shell,
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(167, 139, 250, 0.16));
  color: var(--accent);
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
}

.section-shell {
  padding: 72px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
  min-height: calc(100vh - 72px);
}

.hero-copy,
.hero-card,
.metric-card,
.project-card,
.split-section,
.contact,
.timeline-item {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.66));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 34px;
  padding: clamp(28px, 5vw, 56px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 10px;
}

.lead,
.section-heading > p,
.split-section p,
.contact p,
.project-card p,
.timeline-copy p,
.hero-card p,
.metric-card p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 760px;
  font-size: 1.12rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #020617;
}

.button.secondary {
  border-color: var(--border);
  background: rgba(15, 23, 42, 0.72);
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 34px;
  padding: 28px;
}

.card-kicker {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-card > strong {
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
}

.signal-grid,
.stats,
.project-grid {
  display: grid;
  gap: 16px;
}

.signal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.signal-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  padding: 16px;
  background: rgba(2, 6, 23, 0.42);
}

.signal-card strong,
.signal-card span {
  display: block;
}

.signal-card strong {
  font-size: 1.6rem;
}

.signal-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 0;
}

.metric-card,
.project-card,
.timeline-item {
  border-radius: 24px;
  padding: 22px;
}

.metric-card span {
  color: var(--muted);
  font-weight: 900;
}

.metric-card strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 2.4rem;
  line-height: 1;
}

.section-heading {
  padding-top: 56px;
}

.section-heading > p {
  max-width: 760px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 22px;
}

.filter-button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.filter-button.is-active,
.filter-button:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: var(--text);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.project-category,
.featured-pill,
.skill-pill,
.stack-list span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(2, 6, 23, 0.36);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.featured-pill {
  border-color: rgba(251, 191, 36, 0.32);
  color: var(--gold);
}

.project-impact {
  border-left: 3px solid rgba(56, 189, 248, 0.6);
  padding-left: 12px;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 18px;
  padding-top: 16px;
}

.project-link {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.split-section,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  border-radius: 34px;
  padding: clamp(28px, 5vw, 46px);
}

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

.skill-pill {
  padding: 10px 14px;
  color: var(--text);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.timeline-index {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 900;
}

.contact {
  grid-template-columns: minmax(0, 1fr) auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 28px 0 42px;
  color: var(--muted);
}

.site-footer a {
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero,
  .stats,
  .project-grid,
  .split-section,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .nav,
  .section-shell,
  .site-footer {
    width: min(100% - 20px, 1160px);
  }

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

  .nav-links {
    position: absolute;
    top: 72px;
    right: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    background: var(--panel-strong);
  }

  .nav-links.is-open {
    display: flex;
  }

  .section-shell {
    padding: 42px 0;
  }

  .hero-copy,
  .hero-card,
  .split-section,
  .contact,
  .project-card,
  .metric-card,
  .timeline-item {
    border-radius: 22px;
    padding: 20px;
  }

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

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

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