:root {
  --bg: #0c0e12;
  --bg-elevated: #13171e;
  --bg-card: #181d26;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e9edf4;
  --text-muted: #9aa3b2;
  --accent: #5eead4;
  --accent-dim: rgba(94, 234, 212, 0.15);
  --accent-strong: #2dd4bf;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --header-h: 4rem;
  --maxw: 72rem;
  --space: clamp(1rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.container {
  width: min(100% - var(--space) * 2, var(--maxw));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 14, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
}

.logo:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
}

.nav .nav-pdf {
  color: var(--accent-strong);
  border: 1px solid var(--accent-dim);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.88rem;
}

.nav .nav-pdf:hover {
  color: var(--accent);
  border-color: var(--accent-strong);
  background: var(--accent-dim);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-panel {
  display: flex;
  flex-direction: column;
  padding: 1rem var(--space) 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  gap: 0.5rem;
}

.nav-panel a {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0;
}

.nav-panel[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .nav-panel {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr minmax(280px, 340px);
    gap: 3rem;
  }
}

.hero-intro {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

@media (max-width: 479px) {
  .hero-intro {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero-photo {
  width: clamp(6.5rem, 22vw, 11rem);
  height: clamp(6.5rem, 22vw, 11rem);
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent-dim);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.hero-intro-text {
  min-width: 0;
}

.hero-intro .eyebrow {
  margin-bottom: 0.65rem;
}

.hero-intro .hero-title {
  margin: 0;
}

.hero-gradient {
  position: absolute;
  inset: -20% 20% auto -30%;
  height: 70%;
  background: radial-gradient(ellipse at 30% 20%, var(--accent-dim), transparent 55%),
    radial-gradient(ellipse at 70% 0%, rgba(45, 212, 191, 0.08), transparent 50%);
  pointer-events: none;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), #14b8a6);
  color: #042f2e;
  box-shadow: 0 8px 32px rgba(45, 212, 191, 0.25);
}

.btn-primary:hover {
  color: #021c1a;
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 0.95rem;
}

.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-list a {
  color: var(--text);
  border-bottom: 1px solid var(--accent-dim);
}

.contact-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2.5rem;
  color: var(--text-muted);
  max-width: 42rem;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(var(--accent-dim), transparent);
  border-radius: 2px;
}

@media (min-width: 640px) {
  .timeline::before {
    left: 0.55rem;
  }
}

.timeline-item {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .timeline-item {
    padding-left: 2.75rem;
  }
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-strong);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}

@media (min-width: 640px) {
  .card {
    padding: 1.75rem 1.75rem;
  }
}

.job-header {
  margin-bottom: 1rem;
}

.job-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.job-company {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 600;
}

.job-meta {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.job-note {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.job-sub {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}

.bullet-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.bullet-list li {
  margin-bottom: 0.5rem;
}

.bullet-list li:last-child {
  margin-bottom: 0;
}

.bullet-list.compact li {
  margin-bottom: 0.35rem;
}

/* Education */
.edu-degree {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.edu-school {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 600;
}

.edu-dates {
  margin: 0.35rem 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Skills */
.skill-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .skill-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
}

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-list li {
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

/* CTA */
.section-cta {
  padding: clamp(3.5rem, 10vw, 5.5rem) 0;
}

.cta-inner {
  text-align: center;
  max-width: 40rem;
}

.cta-inner .section-title {
  margin-bottom: 1rem;
}

.cta-text {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Print */
@media print {
  .site-header,
  .hero-actions,
  .section-cta,
  .site-footer,
  .nav-toggle,
  .hero-gradient {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }

  .hero-card,
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
