:root {
  --bg: #f6f4ef;
  --surface: rgba(255, 255, 255, 0.72);
  --text: #18181b;
  --muted: #5f5f67;
  --subtle: #8b8b94;
  --border: rgba(24, 24, 27, 0.08);
  --accent: #111111;
  --max-width: 980px;
  --radius: 22px;
  --shadow: 0 12px 40px rgba(24, 24, 27, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

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

.section li a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border);
}

.section li a:hover {
  text-decoration-color: var(--muted);
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(246, 244, 239, 0.82);
  border-bottom: 1px solid rgba(24, 24, 27, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.85rem 0;
}

.brand {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

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

.nav-links a[href$="resume.html"] {
  padding: 0.3rem 0.8rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: var(--text);
}

.nav-links a[href$="resume.html"]:hover {
  background: var(--text);
  color: #fff;
}

main {
  padding: 2rem 0 2.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-main {
  padding: 1.8rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

h1 {
  margin: 0.65rem 0 0.65rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: 0.002em;
}

.hero-role {
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.9rem;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-role span:last-child {
  font-weight: 400;
  color: var(--subtle);
}

.hero p {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: 0.18s ease;
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-secondary {
  background: transparent;
  border: 1px solid var(--border);
}

.button:hover {
  transform: translateY(-1px);
}

.chip {
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-side {
  padding: 1.2rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section {
  padding: 1.2rem;
}

.section h2 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.contact p,
.project-card p,
.experience-item li {
  color: var(--muted);
}

.skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skills-wrap span {
  padding: 0.48rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--muted);
}

.experience-list {
  display: grid;
  gap: 0.85rem;
}

.experience-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.experience-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.experience-head h3 {
  margin: 0;
  font-size: 1rem;
}

.company {
  color: var(--muted);
  font-size: 0.88rem;
}

.date {
  color: var(--subtle);
  font-size: 0.84rem;
  white-space: nowrap;
}

ul {
  margin: 0.55rem 0 0;
  padding-left: 1rem;
}

li + li {
  margin-top: 0.35rem;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.project-card {
  display: block;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  transition: 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(24, 24, 27, 0.2);
}

.project-card h3 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
}

.stack {
  font-size: 0.78rem;
  color: var(--subtle);
  margin-bottom: 0.55rem;
}

.footer-note {
  margin-top: 1rem;
  text-align: center;
  color: var(--subtle);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .hero,
  .grid,
  .projects {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-inner,
  .experience-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .hero-main,
  .hero-side,
  .section {
    padding: 1rem;
  }

  .button {
    width: 100%;
  }
}