:root {
  color-scheme: dark;
  --bg: #0d1117;
  --surface: #151b23;
  --surface-strong: #1f2937;
  --text: #edf2f7;
  --muted: #9aa7b5;
  --line: #303a49;
  --accent: #56b6c2;
  --accent-strong: #8bd450;
  --warm: #f4b860;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(86, 182, 194, 0.12), transparent 34%),
    linear-gradient(240deg, rgba(244, 184, 96, 0.10), transparent 38%);
  opacity: 0.8;
}

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

img {
  display: block;
  max-width: 100%;
}

.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,
.actions,
.footer-links,
.resource-links {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 0.8rem;
}

.nav {
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a,
.footer-links a,
.resource-links a {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
}

.nav a:hover,
.footer-links a:hover,
.resource-links a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 74px);
  padding: 64px 0 88px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 800px;
  font-size: clamp(3rem, 8vw, 5.9rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.25rem;
}

.hero-text,
.section p,
.project-card p,
.focus-panel p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
}

.button.primary {
  background: var(--text);
  color: #0b0f14;
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 390px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--surface), var(--surface-strong));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
}

.profile-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  background: rgba(13, 17, 23, 0.88);
}

.status-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 18px rgba(139, 212, 80, 0.65);
}

.section {
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.narrow {
  max-width: 880px;
}

.section-heading {
  margin-bottom: 28px;
}

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

.project-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(21, 27, 35, 0.82);
}

.project-tag {
  width: fit-content;
  border: 1px solid rgba(86, 182, 194, 0.35);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-card p {
  margin: 0;
}

.project-card a {
  margin-top: auto;
  color: var(--accent-strong);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 40px;
  align-items: start;
}

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

.skill-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
}

.focus-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  background: linear-gradient(140deg, rgba(21, 27, 35, 0.96), rgba(31, 41, 55, 0.74));
}

.resource-links,
.footer-links {
  flex-wrap: wrap;
  gap: 8px;
}

.resource-links {
  margin-top: 18px;
}

.resource-links a,
.footer-links a {
  border-color: var(--line);
  color: var(--text);
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding: 48px 0 64px;
}

.site-footer h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .hero,
  .split {
    align-items: flex-start;
  }

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

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

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

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

  .hero-visual {
    justify-self: start;
  }

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

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

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.5rem);
  }

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

  .project-card {
    min-height: 230px;
  }

  .focus-panel {
    padding: 24px;
  }
}
