:root {
  --bg: #050508;
  --text: #f5f5f5;
  --muted: #b0b0c2;
  --card: #101016;
  --card-strong: #1d1d2c;
  --accent: #f0b23c;
  --accent-soft: rgba(240, 178, 60, 0.15);
  --border: rgba(255, 255, 255, 0.1);
  --max-width: 1100px;
}

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

body {
  background: radial-gradient(circle at top, rgba(240, 178, 60, 0.08), transparent 60%), var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: var(--text);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 10;
}

.logo img {
  transition: 0.3s ease;
}

.logo img:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-family: 'DM Serif Text', serif;
  letter-spacing: 0.02em;
  padding-bottom: 0.25rem;
  transition: border-color 0.3s ease, color 0.3s ease;
  border-bottom: 2px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
  border-color: white;
}

main,
section {
  padding: 0 2rem;
}

.hero {
  max-width: var(--max-width);
  margin: 3rem auto 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-family: 'DM Serif Text', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text p {
  max-width: 560px;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #211300;
}

.btn.secondary {
  border-color: var(--border);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
}

.quick-stats div {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.quick-stats dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.quick-stats dd {
  margin: 0;
  color: var(--muted);
}

.hero-card {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
}

.hero-card__inner {
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  min-height: 100%;
}

.hero-card__title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
}

.hero-card__fact {
  font-family: 'DM Serif Text', serif;
  font-size: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.hero-card ul {
  list-style: none;
  padding-left: 0;
  color: var(--muted);
  line-height: 1.4;
  margin: 0 0 1rem;
}

.hero-card img {
  width: 56px;
  height: 56px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-heading h2 {
  font-family: 'DM Serif Text', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0.25rem 0 0.75rem;
}

.section-heading p {
  color: var(--muted);
  margin: 0 auto;
}

.focus {
  max-width: var(--max-width);
  margin: 0 auto 4rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.focus-grid article {
  background: var(--card);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: transform 0.2s ease;
}

.focus-grid article:hover {
  transform: translateY(-4px);
}

.focus-grid h3 {
  font-family: 'DM Serif Text', serif;
  margin-top: 0;
}

.focus-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.work {
  max-width: var(--max-width);
  margin: 0 auto 4rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.work-card {
  background: var(--card-strong);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.work-card h3 {
  margin: 0;
  font-family: 'DM Serif Text', serif;
}

.work-card p {
  color: var(--muted);
}

.work-card ul {
  padding-left: 1.25rem;
  margin: 0;
  color: var(--muted);
}

.contact {
  max-width: var(--max-width);
  margin: 0 auto 5rem;
  background: var(--card);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.contact p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.cv {
  max-width: 760px;
  margin: 3rem auto 4rem;
  padding: 0 2rem;
}

.cv h1,
.cv h2 {
  font-family: 'DM Serif Text', serif;
  margin-bottom: 0.5rem;
}

.cv p {
  color: var(--muted);
}

.cv ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
  color: var(--muted);
}

.cv li {
  margin-bottom: 1rem;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

.cv section {
  margin-bottom: 2.5rem;
}

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

@media (max-width: 640px) {
  .navbar {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact {
    padding: 2rem;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }
}
