:root {
  color-scheme: light dark;
  --font-base: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font-base);
  --color-bg: #f8f9fb;
  --color-surface: #ffffff;
  --color-text: #1d1f27;
  --color-muted: #5e6370;
  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
  --color-border: #d7d9e0;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.12);
  --max-width: 1120px;
  --radius: 18px;
  --transition: 180ms ease;
}

[data-theme='dark'] {
  --color-bg: #0b0d14;
  --color-surface: #141724;
  --color-text: #f5f6fa;
  --color-muted: #b0b5c5;
  --color-primary: #a855f7;
  --color-primary-hover: #9333ea;
  --color-border: #202437;
  --shadow-soft: 0 20px 45px rgba(8, 8, 12, 0.6);
  --shadow-card: 0 12px 40px rgba(10, 12, 20, 0.8);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.08), transparent 40%), var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover,
a:focus {
  color: var(--color-primary);
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background-color: color-mix(in srgb, var(--color-bg) 75%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.06em;
}

.site-nav {
  position: relative;
}

.nav-list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-weight: 500;
  color: var(--color-muted);
  transition: color var(--transition);
}

.nav-list a:hover,
.nav-list a:focus {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-block: 4px;
  background-color: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

.theme-toggle {
  border: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
  background-color: color-mix(in srgb, var(--color-surface) 92%, transparent);
  border-radius: 999px;
  padding: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.theme-toggle:focus-visible,
.nav-toggle:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

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

.icon {
  width: 20px;
  height: 20px;
  fill: var(--color-text);
}

main {
  display: block;
}

.hero {
  padding-block: 120px 80px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 3vw + 2.2rem, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-text .lede {
  max-width: 520px;
  font-size: 1.1rem;
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-block: 32px 28px;
}

.btn {
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn.primary {
  background: radial-gradient(circle at top left, var(--color-primary), var(--color-primary-hover));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

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

.btn.ghost {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.hero-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 0;
}

.hero-meta dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.hero-meta dd {
  margin: 4px 0 0;
  font-weight: 600;
}

.hero-card {
  background: linear-gradient(145deg, color-mix(in srgb, var(--color-surface) 90%, transparent), color-mix(in srgb, var(--color-border) 7%, transparent));
  padding: 40px;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow-card);
}

.hero-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin-bottom: 24px;
}

.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--color-primary) 60%, transparent);
  opacity: 0.6;
}

.hero-avatar img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-quote {
  font-size: 1rem;
  margin-bottom: 12px;
}

.hero-quote-meta {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.section {
  padding-block: 100px;
}

.section.alt {
  background: color-mix(in srgb, var(--color-surface) 95%, transparent);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.section-heading .eyebrow,
.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  color: var(--color-muted);
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0;
}

.section-body p + p {
  margin-top: 16px;
}

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

.cards-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.tag-list li {
  padding: 6px 12px;
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 500;
}

.project-list {
  display: grid;
  gap: 32px;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 0.28fr) minmax(0, 1fr);
  gap: 36px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}

.project-year {
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 8px;
}

.project-role {
  color: var(--color-muted);
  margin-top: 6px;
}

.timeline {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: color-mix(in srgb, var(--color-border) 80%, transparent);
}

.timeline li {
  position: relative;
  padding-left: 48px;
}

.timeline-marker {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
}

.timeline-content h3 {
  margin-top: 0;
}

.timeline-meta {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 500;
}

.testimonial {
  margin: 0;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  box-shadow: var(--shadow-soft);
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 16px;
  line-height: 1.4;
}

.contact-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.contact-card {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 24px;
}

.contact-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.site-footer {
  padding-block: 44px;
  border-top: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.top-link {
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .section-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-list {
    position: absolute;
    right: 0;
    top: 64px;
    flex-direction: column;
    background: var(--color-surface);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav-list[data-open='true'] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header .container {
    padding-block: 12px;
  }

  .hero {
    padding-block: 96px 60px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-card,
  .card,
  .project,
  .testimonial,
  .contact-card {
    padding: 24px;
  }

  .section {
    padding-block: 80px;
  }

  .footer-grid {
    align-items: flex-start;
    text-align: left;
  }
}
