:root {
  --bg: #08110f;
  --bg-soft: #0e1a17;
  --panel: #13221e;
  --panel-strong: #172b26;
  --text: #f2f7f4;
  --muted: #aebbb6;
  --subtle: #778782;
  --line: rgba(216, 230, 224, 0.16);
  --accent: #56d89f;
  --accent-strong: #26b67c;
  --amber: #e2ac55;
  --cyan: #67ccd1;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(86, 216, 159, 0.08), transparent 34%),
    radial-gradient(circle at 85% 14%, rgba(103, 204, 209, 0.14), transparent 28%),
    linear-gradient(180deg, #08110f 0%, #0b1512 54%, #07100e 100%);
}

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

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

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

.brand {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(19, 34, 30, 0.78);
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
}

.nav-links a {
  transition: color 180ms ease;
}

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

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 44px;
  width: min(1160px, calc(100% - 40px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 44px 0 90px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.eyebrow,
.section-kicker,
.card-label {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin-top: 14px;
  font-size: clamp(4.2rem, 10vw, 9rem);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-text {
  max-width: 600px;
  margin-top: 28px;
  color: #d6e1dd;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.contact-links a,
.card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.contact-links a:hover,
.card a:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--accent);
  color: #04100c;
}

.secondary,
.contact-links a,
.card a {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(242, 247, 244, 0.04);
}

.secondary:hover,
.contact-links a:hover,
.card a:hover {
  border-color: rgba(86, 216, 159, 0.52);
}

.hero-visual {
  min-height: 590px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(8, 17, 15, 0.9), rgba(8, 17, 15, 0.2) 34%, rgba(8, 17, 15, 0.05)),
    url("assets/kernel-research-hero.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1160px, calc(100% - 40px));
  margin: -44px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.signal-strip div {
  min-height: 116px;
  padding: 22px;
  background: rgba(19, 34, 30, 0.94);
}

.signal-strip span {
  display: block;
  color: var(--subtle);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.signal-strip strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.35;
}

.section,
.contact-section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.intro-section,
.two-column {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 64px;
  border-bottom: 1px solid var(--line);
}

.intro-section h2,
.two-column h2,
.section-heading h2,
.contact-section h2 {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.intro-section p {
  max-width: 780px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.05rem;
}

.timeline,
.project-list {
  display: grid;
  gap: 20px;
}

.timeline-item,
.project,
.education-card,
.skills-grid article,
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(19, 34, 30, 0.74);
}

.timeline-item,
.project,
.education-card {
  padding: 30px;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 14px;
  color: var(--amber);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

h3 {
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.3;
}

.timeline-item p,
.project p,
.education-card p,
.skills-grid p,
.card p {
  margin-top: 12px;
  color: var(--muted);
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.clean-list li::marker {
  color: var(--accent);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading .section-kicker,
.contact-section .section-kicker {
  margin-bottom: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.card h3 {
  margin-top: 16px;
}

.card a {
  margin-top: auto;
}

.skills-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.skills-grid article {
  padding: 24px;
}

.education-card span {
  display: inline-block;
  margin-top: 16px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
  font-weight: 600;
}

.contact-section {
  min-height: 460px;
  border-bottom: 0;
}

.contact-section h2 {
  max-width: 780px;
}

.contact-links a {
  min-width: 130px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 32px;
  }

  .hero-visual {
    min-height: 420px;
    order: -1;
  }

  .signal-strip,
  .card-grid,
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-section,
  .two-column {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: min(100% - 28px, 1160px);
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
    font-size: 0.86rem;
  }

  .hero,
  .section,
  .contact-section,
  .signal-strip {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    gap: 28px;
    padding-bottom: 70px;
  }

  .hero-visual {
    min-height: 320px;
  }

  .signal-strip,
  .card-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip {
    margin-top: -28px;
  }

  .section,
  .contact-section {
    padding: 70px 0;
  }

  .timeline-item,
  .project,
  .education-card,
  .skills-grid article,
  .card {
    padding: 22px;
  }

  .card {
    min-height: 230px;
  }

  .button,
  .contact-links a {
    width: 100%;
  }
}
