:root {
  color-scheme: dark;
  --bg: #050608;
  --panel: #111318;
  --panel-strong: #181b22;
  --text: #cdd6f4;
  --muted: #9ca3b7;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #64ffda;
  --accent-2: #b4bef8;
  --warm: #f4c56a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.intro-active {
  overflow: hidden;
}

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

.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(100, 255, 218, 0.5);
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.inline-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050608;
  transition: opacity 900ms ease, transform 900ms ease, visibility 900ms ease;
}

.intro.is-done {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-3rem) scale(1.03);
  pointer-events: none;
}

.intro__grid {
  display: none;
}

.intro__copy {
  position: relative;
  width: min(1040px, calc(100vw - 40px));
  display: grid;
  place-items: center;
  min-height: 42vh;
  text-align: center;
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.intro__line {
  grid-area: 1 / 1;
  min-height: 1.2em;
  margin: 0;
  color: var(--text);
  opacity: 0;
  transform: translateY(18px);
  text-shadow: 0 0 40px rgba(88, 166, 255, 0.18);
  transition: opacity 420ms ease, transform 420ms ease;
}

.intro__line.is-active {
  opacity: 1;
  transform: translateY(0);
}

.intro__line.is-hiding {
  opacity: 0;
  transform: translateY(-18px);
}

.intro__line--profile {
  display: grid;
  justify-items: center;
  gap: 12px;
  font-size: 24px;
}

.intro__avatar {
  width: 104px;
  height: 104px;
  object-fit: contain;
  margin-bottom: 8px;
}

.intro__badge {
  border: 0;
  border-radius: 999px;
  background: #222222;
  color: var(--accent);
  padding: 8px 14px;
  font-size: 13px;
}

.intro__subtext {
  color: var(--muted);
  font-size: 16px;
  margin-top: 8px;
}

.intro__company {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: #4a4a4a;
  text-underline-offset: 4px;
}

.intro__button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: #222222;
  color: var(--text);
  padding: 0 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.intro__button:hover {
  background: #2c2c2c;
  transform: translateY(-2px);
}

.intro__button svg {
  width: 18px;
  height: 18px;
}

.site-shell {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 900ms ease 220ms, transform 900ms ease 220ms;
  background: var(--bg);
}

.site-shell.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 30px 0 20px;
  background: rgba(5, 6, 8, 0.84);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.header__right,
.header__socials,
.hero__actions,
.footer__links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 800;
}

.header__right {
  gap: 26px;
}

.brand__image {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  background: #111111;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transform-origin: center;
  transition: width 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  width: 22px;
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  width: 22px;
  transform: translateY(-7px) rotate(-45deg);
}

.nav a,
.footer__links a {
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header__socials,
.footer__socials {
  gap: 10px;
}

.header__socials a,
.footer__socials a {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: #111111;
  color: var(--muted);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.header__socials a:hover,
.footer__socials a:hover {
  background: #222222;
  color: var(--text);
  transform: translateY(-2px);
}

.header__socials svg,
.footer__socials svg {
  width: 19px;
  height: 19px;
}

.footer__socials {
  display: flex;
  align-items: center;
}

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

.hero,
.section,
.footer {
  width: min(1110px, calc(100vw - 64px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 70px;
  align-items: center;
  min-height: calc(100vh - 156px);
  padding: 46px 0 80px;
}

.hero__content {
  max-width: 840px;
}

.hero__portrait {
  position: relative;
  justify-self: end;
  width: min(340px, 28vw);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 28px;
  background: #111111;
}

.hero__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(5, 6, 8, 0.45));
  z-index: 1;
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow--badge {
  display: inline-flex;
  border-radius: 999px;
  background: #111111;
  padding: 8px 14px;
  text-transform: none;
}

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

h1 {
  max-width: 840px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(2.9rem, 5.2vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.hero__lede {
  max-width: 700px;
  margin: 24px 0 0;
  color: #c9d1e9;
  font-size: clamp(0.96rem, 1.5vw, 1.06rem);
  line-height: 1.8;
}

.hero__actions {
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: #222222;
  padding: 0 22px;
  color: var(--text);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-weight: 500;
  transition: transform 180ms ease, background 180ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
}

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

.button:hover {
  background: #2c2c2c;
}

.section {
  padding: 92px 0;
}

.section--split {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 68px;
  align-items: start;
}

.section-copy,
.timeline__body p,
.education p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.section-copy {
  display: grid;
  gap: 18px;
}

.availability {
  color: var(--accent);
  font-family: "JetBrains Mono", Consolas, monospace;
}

.section__heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-intro {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.25;
}

.section-title span {
  color: var(--accent);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 1rem;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  max-width: 340px;
  background: rgba(156, 163, 183, 0.28);
}

.work-list {
  display: grid;
  gap: 18px;
}

.work-item {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 42px;
  padding: 18px 0 34px;
  border-bottom: 1px solid rgba(156, 163, 183, 0.22);
}

.timeline__meta {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.88rem;
}

.timeline__meta strong {
  color: var(--accent-2);
  font-family: Poppins, system-ui, sans-serif;
  font-size: 1rem;
}

.timeline__meta strong,
.timeline__meta strong .inline-link {
  color: var(--text);
}

.timeline__body ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

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

.tech-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(156, 163, 183, 0.16);
}

.tech-group {
  position: relative;
  min-height: 310px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    #0b0d11;
  padding: 28px;
}

.tech-group__index {
  color: var(--accent);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.82rem;
}

.tech-group h3 {
  margin: 28px 0 22px;
  color: var(--text);
  font-size: 1.05rem;
}

.tech-group ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.tech-group li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.tech-group li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.education {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.education h3 {
  margin-top: 28px;
}

.education__score {
  display: grid;
  min-width: 180px;
  justify-items: center;
  border: 1px solid rgba(244, 197, 106, 0.42);
  background: rgba(244, 197, 106, 0.08);
  padding: 22px;
}

.education__score span,
.education__score small {
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
}

.education__score strong {
  color: var(--warm);
  font-size: 3.2rem;
  line-height: 1;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  padding: 92px 0 48px;
}

.footer p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.8;
}

.footer__links {
  max-width: 420px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 900px) {
  .header {
    align-items: center;
    gap: 18px;
  }

  .menu-toggle {
    display: inline-flex;
    order: 2;
  }

  .header__socials {
    order: 1;
  }

  .nav {
    order: 3;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    min-width: 220px;
    gap: 18px;
    border-radius: 18px;
    background: #111111;
    padding: 22px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

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

  .hero__portrait {
    display: none;
  }

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

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

@media (max-width: 640px) {
  .intro__copy,
  .hero,
  .section,
  .footer,
  .header {
    width: min(100% - 28px, 1180px);
  }

  .education,
  .footer {
    display: grid;
  }

  .nav,
  .footer__links {
    justify-content: flex-start;
  }

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

  h2 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .tech-showcase {
    grid-template-columns: 1fr;
  }

  .metrics div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section {
    padding: 64px 0;
  }
}
