:root {
  color-scheme: dark;
  --bg: #07090f;
  --bg-soft: #0d111b;
  --panel: rgba(13, 18, 29, 0.78);
  --line: rgba(138, 156, 190, 0.22);
  --text: #eef4ff;
  --muted: #aab6cc;
  --cyan: #35e6ff;
  --green: #7cff9b;
  --pink: #ff5fb9;
  --amber: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(53, 230, 255, 0.12), transparent 30rem),
    radial-gradient(circle at 85% 20%, rgba(255, 95, 185, 0.1), transparent 28rem),
    linear-gradient(180deg, #07090f 0%, #0b0f18 52%, #07090f 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

#network {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(53, 230, 255, 0.45);
  background: rgba(53, 230, 255, 0.1);
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.nav {
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  background: rgba(7, 9, 15, 0.68);
}

.nav a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 160ms ease, background 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(53, 230, 255, 0.1);
  color: var(--text);
  outline: none;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  min-height: calc(92vh - 72px);
  gap: clamp(32px, 5vw, 64px);
  padding-top: 40px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 5.6vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.hero-text,
.text-block p,
.timeline-item p,
.project-card p,
.contact-section p {
  color: var(--muted);
}

.hero-text {
  max-width: 640px;
  margin-bottom: 32px;
  font-size: 1.12rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.contact-link:hover,
.project-card:hover {
  transform: translateY(-4px);
}

.button.primary {
  border-color: rgba(53, 230, 255, 0.65);
  background: var(--cyan);
  color: #031014;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.code-panel {
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  justify-self: end;
  border: 1px solid rgba(53, 230, 255, 0.3);
  background: linear-gradient(145deg, rgba(13, 18, 29, 0.92), rgba(7, 9, 15, 0.72));
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--pink);
}

.window-bar span:nth-child(2) {
  background: var(--amber);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #d8e4ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.78rem, 1.15vw, 0.95rem);
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  border-top: 1px solid var(--line);
}

.text-block {
  max-width: 680px;
  font-size: 1.05rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item,
.project-card,
.contact-section {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 0.6fr 1fr;
  gap: 24px;
  padding: 24px;
}

.timeline-year,
.project-tag,
.project-index {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

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

.project-card {
  min-height: 310px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  border-color: rgba(53, 230, 255, 0.45);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 52px;
}

.project-card a {
  display: inline-flex;
  margin-top: 24px;
  color: var(--green);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  padding: 36px;
}

.contact-link {
  flex: 1 1 220px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 160ms ease, border-color 160ms ease;
}

.contact-link:hover {
  border-color: rgba(124, 255, 155, 0.45);
}

.contact-link span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-link strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer a {
  color: var(--cyan);
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header,
  .nav,
  .hero-actions,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: static;
    gap: 14px;
    padding: 14px 0 8px;
  }

  .nav {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }

  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    min-height: auto;
    padding-top: 42px;
  }

  .code-panel {
    max-width: none;
    justify-self: stretch;
  }

  .section {
    padding: 64px 0;
  }

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

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

  .contact-section {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .section,
  .site-header,
  .footer {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  pre {
    padding: 20px;
  }
}
