:root {
  --bg: #0B0C0F;
  --surface: #15171C;
  --surface-2: #1D2026;
  --line: rgba(242, 242, 240, 0.10);
  --line-strong: rgba(242, 242, 240, 0.20);
  --ink: #F2F2F0;
  --ink-dim: #A0A2A8;
  --ink-faint: #63666E;
  --accent: #7C8CFF;
  --accent-soft: rgba(124, 140, 255, 0.14);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --pad: 22px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  font-weight: 600;
  text-transform: uppercase;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- NAV ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: none;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  transition: color .25s var(--ease);
  position: relative;
}

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

.talk-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  transition: transform .25s var(--ease), background .25s var(--ease);
}

.talk-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
}

.menu-btn svg {
  width: 18px;
  height: 18px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 20px var(--pad);
  transform: translateY(-100%);
  transition: transform .45s var(--ease);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 56px;
}

.mobile-menu nav a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(30px, 9vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.mobile-menu-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  color: var(--ink-dim);
  font-size: 13px;
  padding-top: 24px;
}

.mobile-menu-footer a {
  color: var(--ink-dim);
}

@media (min-width:900px) {
  .nav-links {
    display: flex;
  }

  .talk-btn {
    display: inline-flex;
  }

  .menu-btn {
    display: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-top: 56px;
  padding-bottom: 56px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(124, 140, 255, 0.20) 0%, rgba(124, 140, 255, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy .eyebrow {
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  line-height: 0.98;
}

.hero h1 span {
  display: block;
  color: var(--ink-dim);
}

.hero p.lead {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--ink-dim);
  font-size: clamp(15px, 3.6vw, 17px);
  line-height: 1.6;
}

.hero-ctas {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  transition: transform .25s var(--ease), background .25s var(--ease);
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn-primary .arrow {
  transition: transform .25s var(--ease);
}

.btn-primary:hover .arrow {
  transform: translate(2px, -2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-dim);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 6px;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.hero-visual {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 100%;
  max-width: 340px;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(124, 140, 255, 0.28), transparent 55%),
    linear-gradient(160deg, #1E2128 0%, #101216 100%);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 34px, rgba(242, 242, 240, 0.035) 34px 35px);
}

.portrait-mono {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 18vw, 96px);
  letter-spacing: -0.03em;
  color: var(--ink);
  opacity: 0.92;
  position: relative;
  z-index: 2;
}

.portrait-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 3;
}

.portrait-tag .avail {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.portrait-tag .avail strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 2px;
}

.portrait-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-faint);
  text-align: center;
}

@media (min-width:900px) {
  .hero {
    padding-top: 64px;
    padding-bottom: 80px;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }

  .hero-visual {
    max-width: 420px;
    justify-self: end;
  }
}

/* ---------- STATS ---------- */
.stats-section {
  padding-bottom: 0;
}

.stats-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.stat {
  padding: 26px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat:nth-child(2n) {
  border-right: none;
}

.stat:nth-last-child(-n+2) {
  border-bottom: none;
}

.stat .num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat .label {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

@media (min-width:900px) {
  .stats-card {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat {
    border-bottom: none;
    padding: 32px 28px;
  }

  .stat:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .stat:last-child {
    border-right: none;
  }
}

/* ---------- SECTION SHELL ---------- */
section {
  padding: 76px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.7rem, 5.5vw, 2.3rem);
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color .25s var(--ease);
}

.section-link:hover {
  color: var(--ink);
}

/* ---------- PROJECTS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.project-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.project-body {
  padding: 26px 24px;
}

.project-cat {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.project-title {
  margin-top: 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.project-desc {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.6;
}

.project-body .exp-list {
  margin-top: 14px;
}

.tag-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  white-space: nowrap;
}

.tag-learning {
  border-color: rgba(124, 140, 255, 0.4);
  color: var(--accent);
  background: var(--accent-soft);
}

@media (min-width:800px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
  }
}

/* ---------- EXPERIENCE TIMELINE ---------- */
.exp-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.exp-item {
  position: relative;
}

.exp-dot {
  position: absolute;
  left: -29px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line-strong);
}

.exp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: border-color .3s var(--ease);
}

.exp-card:hover {
  border-color: var(--line-strong);
}

.exp-card-sub {
  background: transparent;
}

.exp-period {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.exp-role {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.exp-company {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-dim);
}

.exp-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.65;
}

.exp-list li {
  margin-bottom: 4px;
}

.exp-list li::marker {
  color: var(--ink-faint);
}

@media (min-width:900px) {
  .exp-timeline {
    padding-left: 32px;
  }

  .exp-dot {
    left: -37px;
  }
}

/* ---------- SKILLS ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .3s var(--ease);
}

.skill-card:hover {
  border-color: var(--line-strong);
}

.skill-card h3 {
  font-size: 15px;
  font-weight: 700;
}

.skill-card-highlight {
  border-color: rgba(124, 140, 255, 0.3);
}

.skill-note {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.5;
}

.skill-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.soft-skills {
  margin-top: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.soft-skills h3 {
  font-size: 15px;
  font-weight: 700;
}

@media (min-width:720px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- EDUCATION ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .3s var(--ease);
}

.edu-card:hover {
  border-color: var(--line-strong);
}

.edu-gpa {
  margin-top: 10px;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
}

@media (min-width:720px) {
  .edu-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- DATA ANALYST DIRECTION ---------- */
.direction-grid {
  max-width: 760px;
}

.direction-text {
  font-size: 15.5px;
  color: var(--ink-dim);
  line-height: 1.75;
  max-width: 64ch;
}

.roadmap {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roadmap-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.roadmap-step-current {
  border-color: rgba(124, 140, 255, 0.4);
  background: var(--accent-soft);
}

.roadmap-num {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.roadmap-step-current .roadmap-num {
  background: var(--accent);
  color: #0B0C0F;
}

.roadmap-label {
  font-size: 13.5px;
  font-weight: 600;
}

.roadmap-arrow {
  align-self: center;
  color: var(--ink-faint);
  font-size: 14px;
  transform: rotate(90deg);
}

.roadmap-caption {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

@media (min-width:800px) {
  .roadmap {
    flex-direction: row;
    align-items: center;
  }

  .roadmap-step {
    flex-direction: column;
    text-align: center;
    flex: 1;
    gap: 8px;
    padding: 18px 12px;
  }

  .roadmap-arrow {
    transform: none;
  }
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.about-big {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.about-big em {
  font-style: normal;
  color: var(--ink-dim);
}

.about-meta {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-meta div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.about-meta .k {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.about-meta .v {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink);
}

.about-side p {
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.7;
}

@media (min-width:900px) {
  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
  }
}

/* ---------- CTA ---------- */
.cta-section {
  padding-top: 0;
}

.cta-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #1B1E24 0%, #0C0D10 65%);
  padding: 40px 24px;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -100px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(124, 140, 255, 0.22), transparent 70%);
}

.cta-card h2 {
  position: relative;
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 1.02;
}

.cta-card p {
  position: relative;
  margin-top: 16px;
  max-width: 44ch;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
}

.cta-card .btn-primary {
  position: relative;
  margin-top: 26px;
}

.contact-grid {
  position: relative;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 14px;
  padding: 0;
}

.contact-item .k {
  color: var(--ink-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-item .v {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 699px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-dim);
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.footer-social a:hover {
  color: var(--ink);
  border-color: var(--ink-dim);
}

@media (min-width:800px) {
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* reveal on load (hero / stats) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal .8s var(--ease) forwards;
}

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

/* reveal on scroll (everything below the fold, via IntersectionObserver) */
.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(16px);
  animation: none;
}

.reveal.reveal-pending.is-visible {
  animation: reveal .7s var(--ease) forwards;
}

header.scrolled {
  background: rgba(11, 12, 15, 0.88);
  border-bottom-color: var(--line-strong);
}