:root {
  --bg: #f6f4f0;
  --ink: #0c0c0d;
  --muted: #6e6d68;
  --line: rgba(12, 12, 13, 0.12);
  --paper: rgba(255, 255, 255, 0.74);
  --paper-solid: #ffffff;
  --charcoal: #151515;
  --accent: #c8ff5f;
  --blue: #2862c6;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(12, 12, 13, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 28rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 42%, #eeeeea 100%);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--ink);
  color: white;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 45px rgba(12, 12, 13, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.has-scrolled {
  box-shadow: 0 18px 60px rgba(12, 12, 13, 0.13);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(12, 12, 13, 0.04);
}

.nav a,
.nav-cta {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(12, 12, 13, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
  overflow: hidden;
}

.nav a:hover,
.nav a.is-active {
  background: white;
  color: var(--ink);
}

.nav-cta {
  background: var(--ink);
  color: white;
}

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

.section {
  padding: 112px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2 {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.15rem, 6vw, 5.25rem);
  line-height: 0.95;
  font-weight: 900;
}

h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(2.15rem, 5.4vw, 5.8rem);
  line-height: 0.98;
  font-weight: 900;
}

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

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 34px;
  min-height: calc(100vh - 72px);
  padding-top: 48px;
  align-items: center;
}

.hero__intro {
  max-width: 660px;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn--dark {
  background: var(--ink);
  color: white;
  box-shadow: 0 18px 36px rgba(12, 12, 13, 0.18);
}

.btn--light {
  background: white;
  border: 1px solid var(--line);
}

.hero__visual {
  position: relative;
}

.portrait-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 590px;
  border-radius: 8px;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.portrait-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
  transition: transform 0.8s ease;
}

.portrait-shell:hover img {
  transform: scale(1.05);
}

.availability {
  position: absolute;
  right: 14px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(280px, 80%);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 45px rgba(12, 12, 13, 0.12);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  backdrop-filter: blur(18px);
}

.availability span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #20c55e;
  box-shadow: 0 0 0 8px rgba(32, 197, 94, 0.14);
}

.scroll-indicator {
  position: absolute;
  left: 0;
  bottom: 34px;
  width: 30px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.scroll-indicator span {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}

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

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: end;
}

.section-heading--split > p {
  margin-bottom: 8px;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
}

.about__bio {
  position: sticky;
  top: 110px;
  align-self: start;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 50px rgba(12, 12, 13, 0.06);
}

.about__bio p:last-child {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  position: relative;
  padding: 28px 28px 28px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 34px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.timeline article:hover,
.skill-card:hover,
.software-grid article:hover,
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(12, 12, 13, 0.12);
}

.timeline span,
.skill-card span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline p,
.skill-card p {
  margin-bottom: 0;
}

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

.skill-card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-solid);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-card h3 {
  min-height: 76px;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.software-grid article {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 24px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.software-grid img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 18px;
}

.software-grid span {
  font-weight: 800;
  text-align: center;
}

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

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-solid);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  background: #e8e6df;
  transition: transform 0.65s ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.project-card p {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.project-card span {
  color: var(--muted);
  line-height: 1.55;
}

.project-card__link {
  min-height: 46px;
  margin-top: 22px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.contact {
  padding-bottom: 72px;
}

.contact__inner {
  padding: clamp(36px, 7vw, 78px);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}

.contact__inner p {
  color: rgba(255, 255, 255, 0.62);
}

.contact__inner h2 {
  color: white;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.contact-links a,
.contact-links span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  font-weight: 800;
}

.contact-links a:hover {
  background: white;
  color: var(--ink);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 40px;
  color: var(--muted);
  font-weight: 700;
}

.footer p {
  margin: 0;
}

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

  .about__bio {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    align-items: stretch;
    border-radius: 24px;
    flex-wrap: wrap;
  }

  .brand {
    flex: 1 1 auto;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .nav-cta {
    padding-inline: 12px;
  }

  .section {
    padding: 82px 0;
  }

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

  h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.3rem);
  }

  .scroll-indicator {
    display: none;
  }

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

  .skill-card {
    min-height: auto;
  }

  .skill-card h3 {
    min-height: auto;
  }

  .availability {
    right: 12px;
    bottom: 12px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .section,
  .footer {
    width: min(calc(100% - 24px), var(--max));
  }

  .site-header {
    width: min(calc(100% - 24px), var(--max));
  }

  .nav a,
  .nav-cta {
    font-size: 0.8rem;
  }

  .hero__actions,
  .contact-links {
    display: grid;
  }

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