:root {
  --bg: #05070a;
  --bg-elev: #0b1016;
  --line: #1c2733;
  --text: #e8eef4;
  --muted: #8b9aab;
  --cyan: #00e5ff;
  --blue: #3b82f6;
  --font-display: "Syne", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.noise,
.spotlight,
.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.grid-bg {
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: 0;
}

.spotlight {
  z-index: 1;
  background: radial-gradient(520px circle at var(--x, 50%) var(--y, 20%), rgba(0, 229, 255, 0.08), transparent 45%);
}

.noise {
  z-index: 2;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav,
main,
.footer {
  position: relative;
  z-index: 3;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 7vw;
  position: sticky;
  top: 0;
  background: linear-gradient(to bottom, rgba(5, 7, 10, 0.92), rgba(5, 7, 10, 0.4) 70%, transparent);
  backdrop-filter: blur(10px);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 14px;
}

.logo span {
  color: var(--cyan);
}

.nav nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.nav-cta {
  color: var(--cyan);
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 8vh 7vw 10vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(0, 229, 255, 0);
  }
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 12vw, 148px);
  line-height: 0.88;
  letter-spacing: -0.04em;
}

h1 .line {
  display: block;
}

h1 .accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan);
}

.lead {
  max-width: 640px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  transition: 0.2s ease;
}

.btn.primary {
  background: var(--cyan);
  color: #041016;
  border-color: var(--cyan);
  font-weight: 500;
}

.btn.primary:hover {
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.35);
}

.btn.ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.hero-meta {
  display: flex;
  gap: 36px;
  list-style: none;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta span {
  color: var(--cyan);
  margin-right: 10px;
}

.section {
  padding: 100px 7vw;
  border-top: 1px solid var(--line);
}

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

.kicker {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.03em;
}

.project {
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.project.featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  margin-bottom: 24px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-visual {
  min-height: 240px;
  background: #070b10;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.featured .project-visual {
  min-height: 360px;
  border-bottom: none;
  border-right: 1px solid var(--line);
}

.project-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.v2 {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 229, 255, 0.12), transparent 40%),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(0, 229, 255, 0.06) 28px);
}

.code-ghost {
  color: var(--cyan);
  opacity: 0.55;
  font-size: 14px;
}

.v3 {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px 32px 28px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 160px;
  width: 70%;
}

.bars i {
  flex: 1;
  background: linear-gradient(to top, var(--blue), var(--cyan));
  opacity: 0.85;
  animation: rise 2.4s ease-in-out infinite alternate;
}

.bars i:nth-child(1) { height: 35%; animation-delay: 0s; }
.bars i:nth-child(2) { height: 62%; animation-delay: 0.15s; }
.bars i:nth-child(3) { height: 48%; animation-delay: 0.3s; }
.bars i:nth-child(4) { height: 88%; animation-delay: 0.1s; }
.bars i:nth-child(5) { height: 55%; animation-delay: 0.25s; }
.bars i:nth-child(6) { height: 72%; animation-delay: 0.05s; }
.bars i:nth-child(7) { height: 40%; animation-delay: 0.2s; }

@keyframes rise {
  to { filter: brightness(1.3); transform: scaleY(1.06); transform-origin: bottom; }
}

.project-body {
  padding: 32px;
}

.year {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.project h3,
.skills h3,
.timeline h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 12px;
}

.project-body p,
.timeline p,
.about-copy p {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 20px 0 8px;
}

.tags li {
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project:hover {
  border-color: rgba(0, 229, 255, 0.35);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.about-copy p + p {
  margin-top: 18px;
}

.skills {
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--bg-elev);
}

.skills dl div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.skills dl div:last-child {
  border-bottom: none;
}

.skills dt {
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

.timeline {
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.when {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.contact {
  text-align: left;
}

.email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  color: var(--cyan);
  margin: 28px 0 24px;
  border-bottom: 1px solid transparent;
}

.email:hover {
  border-bottom-color: var(--cyan);
}

.social {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.social a:hover {
  color: var(--cyan);
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 7vw 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 860px) {
  .nav nav {
    gap: 16px;
  }

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

  .featured .project-visual {
    border-right: none;
    border-bottom: 1px solid var(--line);
    min-height: 220px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 12px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
  }
}
