:root {
  --black: #050505;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #d8d8d8;
  --soft: #f5f5f5;
  --white: #ffffff;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--black);
  border-radius: 50%;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a {
  transition: color 160ms ease;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
  min-height: calc(100vh - 79px);
  padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(5, 5, 5, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
}

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

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

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--black);
  font-size: clamp(3.5rem, 10vw, 8.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 650px;
  margin-bottom: 22px;
  color: #303030;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 670px;
  margin-bottom: 32px;
}

.hero-tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 12px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--black);
  border-radius: 999px;
  font-weight: 800;
}

.button-dark {
  color: var(--white);
  background: var(--black);
}

.button-light {
  color: var(--black);
  background: var(--white);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  background: var(--black);
  border-radius: 8px;
}

.hero-visual img {
  position: relative;
  z-index: 2;
  width: min(74%, 360px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.04);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.hero-visual::before {
  position: absolute;
  inset: 24px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.hero-visual::after {
  position: absolute;
  right: -16%;
  bottom: -18%;
  width: 60%;
  aspect-ratio: 1;
  content: "";
  background: var(--white);
  border-radius: 50%;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
}

.orbit-one {
  width: 64%;
  aspect-ratio: 1;
}

.orbit-two {
  width: 88%;
  aspect-ratio: 1;
}

.section {
  padding: clamp(72px, 9vw, 112px) clamp(20px, 5vw, 64px);
}

.section > * {
  width: min(100%, var(--max));
  margin-right: auto;
  margin-left: auto;
}

.section-dark {
  color: var(--white);
  background: var(--black);
}

.section-light {
  color: var(--black);
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid currentColor;
}

.section-dark .eyebrow {
  color: #a8a8a8;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 0.68fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.timeline-meta span,
.education-card span,
.certificate-grid span {
  display: block;
  margin-bottom: 8px;
  color: #9a9a9a;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-meta strong {
  display: block;
  font-size: 1rem;
}

.timeline-content h3,
.education-card h3,
.certificate-grid h3,
.skill-layout h3 {
  margin-bottom: 6px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.18;
}

.timeline-content p {
  margin-bottom: 18px;
  color: #bdbdbd;
}

.timeline-content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #e8e8e8;
}

.education-card {
  padding: clamp(28px, 5vw, 48px);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.education-card span {
  color: var(--muted);
}

.education-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 600;
}

.certificate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.certificate-grid article {
  padding: clamp(18px, 4vw, 28px);
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.certificate-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 920px;
  overflow: hidden;
}

.certificate-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--white);
  border-radius: 6px;
}

.certificate-grid p {
  margin-bottom: 0;
  color: #bdbdbd;
}

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

.project-grid article {
  padding: clamp(24px, 4vw, 34px);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-grid h3 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.08;
}

.project-grid p {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.project-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

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

.impact-grid article {
  min-height: 220px;
  padding: 24px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.impact-grid strong {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.14;
}

.impact-grid p {
  margin-bottom: 0;
  color: #cfcfcf;
}

.badge-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.badge-gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.badge-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(1);
}

.badge-gallery figcaption {
  min-height: 58px;
  padding: 12px;
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

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

.skill-layout article {
  padding: 26px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.skill-tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 12px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(280px, 0.42fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.contact-panel h3 {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.contact-panel p {
  margin-bottom: 0;
  color: #cfcfcf;
}

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

.contact-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-weight: 800;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.contact-button:hover,
.contact-primary {
  color: var(--black);
  background: var(--white);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  color: var(--white);
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer p {
  margin: 0;
  font-weight: 800;
}

.footer a {
  color: #cfcfcf;
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero,
  .section-heading,
  .timeline-item,
  .skill-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 360px;
  }

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

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

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.85rem;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5.2rem);
  }

  .hero-visual {
    min-height: 300px;
  }

  .certificate-card {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .impact-grid,
  .contact-actions {
    grid-template-columns: 1fr;
  }

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

  .certificate-grid article {
    min-height: 0;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
