:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --bg-2: #ece9e2;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --line: #dedad2;
  --accent: #0e0e0e;
  --card: #ffffff;
  --shadow: 0 18px 40px rgba(20, 20, 20, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Serif 4", serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 80% -20%, #ffffff, transparent),
    linear-gradient(120deg, var(--bg), var(--bg-2));
  min-height: 100vh;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

@media (min-width: 1100px) {
  .page {
    max-width: 900px;
  }
}

.hero {
  position: relative;
  z-index: 2;
  padding: 28px 28px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #ffffff, #f6f4ee 70%);
  box-shadow: var(--shadow);
  animation: rise 700ms ease-out both;
}

.hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  position: relative;
  padding-bottom: 2px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 200ms ease;
}

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

.nav a:hover::after {
  width: 100%;
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin: 22px 0 8px;
  letter-spacing: -0.02em;
}

.hero__role {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  margin: 0 0 18px;
  color: var(--muted);
}

.hero__skills {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.hero__summary {
  margin: 0 0 20px;
  max-width: 600px;
  color: var(--muted);
  font-size: 16px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 50px;
  margin-bottom: 18px;
  font-family: "Space Grotesk", sans-serif;
}

.dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(20, 20, 20, 0.12);
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 999999;
}

.dropdown.is-open .dropdown__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown__item {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.dropdown__item:hover,
.dropdown__item:focus {
  border-color: var(--line);
  background: #f6f4ee;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(20, 20, 20, 0.12);
}

.dropdown__item.is-copied {
  border-color: #1f6f4a;
  color: #1f6f4a;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
}

.content {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  display: grid;
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
  animation: fade-in 700ms ease-out both;
}

.card--text {
  margin: 0 auto;
  max-width: 820px;
  width: 100%;
}

.card:nth-of-type(1) {
  animation-delay: 80ms;
}

.card:nth-of-type(2) {
  animation-delay: 140ms;
}

.card:nth-of-type(3) {
  animation-delay: 200ms;
}

.card:nth-of-type(4) {
  animation-delay: 260ms;
}

.card:nth-of-type(5) {
  animation-delay: 320ms;
}

.card:nth-of-type(6) {
  animation-delay: 380ms;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  margin: 0;
}

.chip {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
}

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

.timeline__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
}

.timeline__meta {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.list {
  padding-left: 18px;
  margin: 10px 0 0;
  color: var(--muted);
}

.list li {
  margin-bottom: 6px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fbfaf6;
}

.project h3 {
  margin-top: 0;
}

.project__meta {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  background: #faf9f6;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: "Space Grotesk", sans-serif;
}

.contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact a:hover {
  border-bottom-color: var(--ink);
}

.footer {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .page {
    padding: 32px 16px 48px;
  }

  .hero {
    padding: 22px;
  }

  .nav {
    gap: 10px;
  }

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

  .timeline__item {
    grid-template-columns: 1fr;
  }
}
