:root {
  color-scheme: dark;
  --bg: #0a0d11;
  --bg-soft: #11161c;
  --panel: rgba(18, 23, 31, 0.86);
  --line: rgba(221, 230, 239, 0.12);
  --text: #eef3f7;
  --muted: #a5b0bb;
  --accent: #d4e86d;
  --accent-soft: rgba(212, 232, 109, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(212, 232, 109, 0.08), transparent 22%),
    radial-gradient(circle at top left, rgba(132, 152, 173, 0.12), transparent 28%),
    linear-gradient(180deg, #080b0f 0%, var(--bg) 52%, #07090d 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand,
.eyebrow,
.section-label,
.aside-label,
.chip {
  font-family: "IBM Plex Mono", monospace;
}

.brand {
  text-decoration: none;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
}

.topnav,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topnav a,
.toplink {
  text-decoration: none;
  color: var(--muted);
}

.topnav a:hover,
.toplink:hover {
  color: var(--text);
}

.lang-toggle {
  display: inline-flex;
  gap: 8px;
}

.lang-button {
  min-width: 46px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  cursor: pointer;
}

.lang-button.is-active {
  border-color: rgba(212, 232, 109, 0.3);
  background: var(--accent-soft);
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: end;
  padding: 56px 0 38px;
  min-height: calc(100svh - 110px);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.02), transparent 42%),
    radial-gradient(circle at 78% 18%, rgba(212, 232, 109, 0.12), transparent 26%);
  pointer-events: none;
}

.eyebrow,
.section-label,
.aside-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.05;
}

.hero-text,
.stack-copy,
.repo-row span,
.work-item p,
.contact-copy,
.signal-list {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 760px;
  margin-top: 20px;
  font-size: 1.05rem;
}

.hero-copy,
.hero-aside {
  position: relative;
  z-index: 1;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .hero-text,
.hero-copy .hero-actions,
.hero-aside {
  animation: rise-in 700ms ease both;
}

.hero-copy h1 {
  animation-delay: 80ms;
}

.hero-copy .hero-text {
  animation-delay: 150ms;
}

.hero-copy .hero-actions {
  animation-delay: 220ms;
}

.hero-aside {
  animation-delay: 280ms;
}

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

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

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

.button.primary {
  background: var(--accent);
  color: #121212;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.hero-aside {
  padding: 0 0 0 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
}

.section {
  margin-top: 34px;
}

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

.work-list,
.repo-list {
  display: grid;
  gap: 0;
}

.work-item {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.work-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.work-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.76rem;
}

.chip.muted {
  color: var(--muted);
}

.repo-row {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.repo-row:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.repo-row strong {
  font-size: 1rem;
}

.repo-row:hover strong {
  color: var(--accent);
}

.repo-row:hover span {
  color: var(--text);
}

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

.stack-panel,
.contact-section {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.contact-section {
  margin-top: 40px;
}

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

  .hero {
    min-height: auto;
  }

  .hero-aside {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
  }

  .page-shell {
    width: min(100% - 28px, 1120px);
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4.2rem);
  }

  .hero {
    padding-top: 40px;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
