/* ─── Reset & Base ─────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:   #0a0a0a;
  --white:   #fafafa;
  --grey-1:  #1a1a1a;
  --grey-2:  #2e2e2e;
  --grey-3:  #6b6b6b;
  --grey-4:  #c4c4c4;
  --grey-5:  #ebebeb;
  --accent:  #1a1a1a;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 4px;

  --max-w: 1120px;
  --section-gap: 120px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Typography ────────────────────────────────────────────── */

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

p {
  color: var(--grey-3);
  font-size: 1rem;
  max-width: 52ch;
}

/* ─── Layout ────────────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-4);
  margin-bottom: 3rem;
}

/* ─── Header / Nav ──────────────────────────────────────────── */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-5);
}

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  font-size: 0.875rem;
  color: var(--grey-3);
  transition: color 0.2s;
}

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

/* ─── Hero ──────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-4);
  margin-bottom: 2rem;
  max-width: none;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero .sub {
  font-size: 1.125rem;
  color: var(--grey-3);
  margin-bottom: 2.5rem;
  max-width: 44ch;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--grey-2);
  transform: translateY(-1px);
}

/* ─── About ─────────────────────────────────────────────────── */

.about {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--grey-5);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-grid p + p {
  margin-top: 1rem;
}

/* ─── Focus Areas ───────────────────────────────────────────── */

.focus {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--grey-5);
}

.focus h2 {
  margin-bottom: 4rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  border: 1px solid var(--grey-5);
  border-radius: var(--radius);
  overflow: hidden;
}

.card {
  padding: 2rem;
  background: var(--white);
  border-right: 1px solid var(--grey-5);
  transition: background 0.2s;
}

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

.card:hover {
  background: var(--grey-5);
}

.card-icon {
  width: 28px;
  height: 28px;
  color: var(--grey-4);
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── Projects ──────────────────────────────────────────────── */

.projects {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--grey-5);
}

.projects h2 {
  margin-bottom: 3rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--grey-5);
}

.project-item {
  display: grid;
  grid-template-columns: 200px 1fr 2fr;
  gap: 2rem;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--grey-5);
  transition: background 0.15s;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-4);
}

.project-year {
  font-size: 0.8rem;
  color: var(--grey-4);
}

.project-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 0;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--grey-3);
  max-width: 56ch;
}

/* ─── Profile / CV ──────────────────────────────────────────── */

.profile {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--grey-5);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.profile h2 {
  margin-bottom: 1.5rem;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grey-3);
  border: 1px solid var(--grey-5);
  border-radius: var(--radius);
  padding: 0.5rem 0.875rem;
  transition: color 0.2s, border-color 0.2s;
  margin-top: 0.5rem;
}

.linkedin-btn:hover {
  color: var(--black);
  border-color: var(--grey-4);
}

.cv-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--grey-5);
}

.cv-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--grey-5);
}

.cv-period {
  font-size: 0.8rem;
  color: var(--grey-4);
  padding-top: 0.1rem;
}

.cv-role {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
}

.cv-org {
  grid-column: 2;
  font-size: 0.85rem;
  color: var(--grey-3);
  margin-top: -0.5rem;
}

/* ─── Contact ───────────────────────────────────────────────── */

.contact {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--grey-5);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact h2 {
  margin-bottom: 1rem;
}

.contact-details {
  padding-top: 0.25rem;
}

.contact-link {
  display: block;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 0.25rem;
  margin-bottom: 2rem;
  width: fit-content;
  transition: color 0.2s, border-color 0.2s;
}

.contact-link:hover {
  color: var(--grey-3);
  border-color: var(--grey-3);
}

.address {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--grey-4);
  max-width: none;
}

/* ─── Footer ────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--grey-5);
  padding: 2rem 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span {
  font-size: 0.8rem;
  color: var(--grey-4);
}

/* ─── Responsive ────────────────────────────────────────────── */

@media (max-width: 900px) {
  :root {
    --section-gap: 80px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card:nth-child(2),
  .card:nth-child(4) {
    border-right: none;
  }

  .card:nth-child(5) {
    border-right: none;
  }

  .card:not(:nth-last-child(-n+1)) {
    border-bottom: 1px solid var(--grey-5);
  }

  .card {
    border-bottom: 1px solid var(--grey-5);
  }

  .about-grid,
  .contact-grid,
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-item {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .project-meta {
    grid-column: 1;
    grid-row: 1;
  }

  .project-title {
    grid-column: 2;
    grid-row: 1;
  }

  .project-desc {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 600px) {
  .container,
  nav,
  .hero {
    padding-left: 24px;
    padding-right: 24px;
  }

  nav ul {
    gap: 1.25rem;
  }

  .cards {
    grid-template-columns: 1fr;
    border: none;
    gap: 1px;
  }

  .card {
    border-right: none;
    border-bottom: 1px solid var(--grey-5);
    border-top: 1px solid var(--grey-5);
  }

  .card:nth-child(1),
  .card:nth-child(2) {
    border-bottom: 1px solid var(--grey-5);
  }

  footer .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
