* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  color: #fff;
  background: url('./background.jpg') center / cover no-repeat fixed;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 0;
}

/* ───── page flow ───── */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 4rem) clamp(1.5rem, 8vw, 10rem);
  gap: 0;
}

/* ───── intro section ───── */

.intro {
  max-width: 680px;
}

.name {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.tagline {
  margin-top: clamp(1rem, 2.5vw, 1.8rem);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  max-width: 44ch;
  opacity: 0.85;
  font-weight: 400;
}

.social-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  opacity: 1;
  outline: none;
}

/* ───── divider ───── */

.divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  margin: clamp(2rem, 4vw, 3.5rem) 0;
}

/* ───── projects ───── */

.projects {
  display: flex;
  flex-direction: column;
}

.label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.55;
  margin-bottom: 1.4rem;
}

.project {
  display: flex;
  align-items: baseline;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  text-decoration: none;
  color: #fff;
  padding: clamp(0.8rem, 1.5vw, 1.1rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  transition: padding-left 0.25s ease;
}

.project:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.project:hover,
.project:focus-visible {
  padding-left: 1rem;
  outline: none;
}

.project-number {
  font-size: 0.82rem;
  opacity: 0.4;
  font-weight: 600;
  flex-shrink: 0;
  width: 2ch;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.project-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-subtitle {
  font-size: 0.9rem;
  opacity: 0.6;
  line-height: 1.4;
}

.project-arrow {
  font-size: 1.3rem;
  opacity: 0.3;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.project:hover .project-arrow,
.project:focus-visible .project-arrow {
  opacity: 0.8;
  transform: translateX(4px);
}

/* ───── responsive ───── */

@media (max-width: 640px) {
  .name {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .project {
    flex-wrap: wrap;
  }

  .project-arrow {
    display: none;
  }
}
