* {
  box-sizing: border-box;
}

:root {
  --bg: #0a1020;
  --bg-soft: #12182e;
  --panel: rgba(18, 24, 46, 0.82);
  --panel-strong: rgba(16, 22, 42, 0.96);
  --text: #edf1ff;
  --muted: #aeb7d6;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #82aaff;
  --accent-soft: rgba(130, 170, 255, 0.15);
  --accent-2: #9be7d2;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --max-width: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(130, 170, 255, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(155, 231, 210, 0.12), transparent 24%),
    linear-gradient(180deg, #0a1020 0%, #0d1428 100%);
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 16, 32, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links .nav-cta {
  color: var(--text);
}

.nav-cta {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero {
  padding: 5.25rem 0 2.25rem;
}

.hero-grid,
.grid {
  display: grid;
  gap: 1.2rem;
}

.hero-grid {
  grid-template-columns: 1.3fr 0.85fr;
  align-items: stretch;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-side,
.timeline-card,
.project-card,
.skill-card,
.info-card,
.contact-card {
  padding: 1.5rem;
}

.eyebrow,
.kicker {
  margin: 0 0 0.9rem;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.06;
}

h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 0.4rem;
  font-size: 1.12rem;
}

.lead,
.section-copy,
.role,
.timeline-meta,
.project-card p,
.skill-card p,
.info-card p,
.contact-item p,
.site-footer p,
.side-value {
  color: var(--muted);
}

.lead {
  font-size: 1.08rem;
  max-width: 60ch;
}

.hero-actions,
.tag-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.88rem 1.15rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #99baff);
  color: #08101d;
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.stat,
.side-block,
.contact-item {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stat strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.15rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portrait-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 20%, rgba(130, 170, 255, 0.2), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.headshot,
.headshot-fallback {
  width: 100%;
  height: 100%;
}

.headshot {
  object-fit: cover;
}

.headshot-fallback {
  display: grid;
  place-items: center;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  color: #dbe7ff;
  letter-spacing: 0.08em;
}

.side-label {
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.section {
  padding: 1rem 0 0;
}

.section-last {
  padding-bottom: 2rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-copy {
  max-width: 34rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.timeline-top,
.project-top,
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.project-top {
  align-items: center;
}

.project-top a {
  color: var(--accent);
  font-weight: 600;
}

.bullet-list {
  padding-left: 1.1rem;
  margin: 0.8rem 0 0;
}

.bullet-list li + li {
  margin-top: 0.55rem;
}

.bullet-list li {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(130, 170, 255, 0.2);
  color: #dce7ff;
  font-size: 0.88rem;
}

.cert-row {
  margin-top: 1rem;
}

.contact-card .grid {
  margin-bottom: 1rem;
}

.contact-item h3 {
  margin-bottom: 0.4rem;
}

.site-footer {
  padding: 0 0 2.4rem;
}

.footer-inner {
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .hero-grid,
  .grid.two,
  .grid.three,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .timeline-top,
  .project-top,
  .footer-inner,
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    padding: 0.8rem 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 4rem;
  }

  .hero-copy,
  .hero-side,
  .timeline-card,
  .project-card,
  .skill-card,
  .info-card,
  .contact-card {
    padding: 1.15rem;
  }

  .container {
    width: min(calc(100% - 1rem), var(--max-width));
  }
}
