:root {
  --bg: #030712;
  --panel: #090f1f;
  --panel-soft: #111827;
  --panel-lift: #0f172a;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --line: #1f2937;
  --line-soft: rgba(148, 163, 184, 0.16);
  --blue: #1668d4;
  --blue-light: #6aa6fb;
  --blue-soft: rgba(37, 128, 255, 0.18);
  --green: #34d399;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 4.5rem 4.5rem;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.skip-link {
  background: var(--blue);
  color: #ffffff;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -4rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-nav {
  backdrop-filter: blur(18px);
  background: rgba(3, 7, 18, 0.78);
  border-bottom: 1px solid var(--line);
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
}

.nav-inner {
  align-items: center;
  display: flex;
  height: 4rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 66rem;
  padding: 0 1.5rem;
  position: relative;
}

.brand {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

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

.nav-links {
  align-items: center;
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--blue-light);
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 0.28rem;
  height: 2.6rem;
  justify-content: center;
  width: 2.6rem;
}

.nav-toggle span {
  background: currentColor;
  display: block;
  height: 0.13rem;
  width: 1.35rem;
}

.hero-section {
  min-height: 100vh;
  padding-top: 4rem;
}

.hero-inner,
.section,
.site-footer {
  margin: 0 auto;
  max-width: 66rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.hero-inner {
  align-items: center;
  display: flex;
  gap: 4rem;
  justify-content: space-between;
  min-height: calc(100vh - 4rem);
  padding-bottom: 5rem;
  padding-top: 5rem;
}

.hero-copy {
  flex: 1;
}

.eyebrow,
.project-topline,
.column-label {
  color: var(--blue-light);
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
}

.eyebrow {
  letter-spacing: 0;
  margin-bottom: 1.15rem;
}

.hero-copy h1 {
  color: var(--text);
  font-size: 5.8rem;
  font-weight: 800;
  line-height: 0.98;
}

.hero-copy h1 span {
  color: var(--blue);
}

.role-line {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-family: var(--mono);
  font-size: 1.08rem;
  gap: 0.7rem;
  margin-top: 1.45rem;
  min-height: 2rem;
}

.role-line span:first-child {
  color: var(--muted-strong);
}

#role-display {
  color: var(--blue-light);
}

.hero-description {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  max-width: 39rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.55rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--blue);
  box-shadow: 0 18px 38px rgba(22, 104, 212, 0.24);
  color: #ffffff;
}

.button.primary:hover,
.button.primary:focus {
  background: #2580ff;
}

.button.secondary {
  border: 1px solid rgba(148, 163, 184, 0.26);
  color: var(--muted-strong);
}

.button.secondary:hover,
.button.secondary:focus {
  border-color: var(--blue-light);
  color: var(--blue-light);
}

.social-row {
  align-items: center;
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
}

.social-row a,
.footer-links a {
  align-items: center;
  color: #64748b;
  display: inline-flex;
  font-size: 1.12rem;
  height: 1.8rem;
  justify-content: center;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  width: 1.8rem;
}

.social-row a:hover,
.social-row a:focus,
.footer-links a:hover,
.footer-links a:focus {
  color: var(--text);
  transform: translateY(-2px);
}

.hero-photo {
  flex: 0 0 18rem;
  position: relative;
}

.hero-photo img {
  aspect-ratio: 1;
  background: var(--panel-soft);
  border: 2px solid rgba(37, 128, 255, 0.28);
  border-radius: 50%;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center 13%;
  position: relative;
  width: 18rem;
}

.section {
  padding-bottom: 6rem;
  padding-top: 6rem;
}

.section-panel {
  background: rgba(15, 23, 42, 0.44);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  max-width: none;
}

.section-panel > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 66rem;
}

.section-heading {
  align-items: center;
  display: flex;
  gap: 1.1rem;
  margin-bottom: 3rem;
}

.section-heading h2 {
  color: var(--text);
  font-size: 2rem;
  line-height: 1.2;
}

.section-heading span {
  background: var(--line);
  flex: 1;
  height: 1px;
}

.about-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.14fr) minmax(18rem, 0.86fr);
}

.about-copy {
  color: var(--muted);
  font-size: 1.02rem;
}

.about-copy p + p {
  margin-top: 1rem;
}

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

.stat-grid article,
.skill-card,
.project-card,
.timeline-card,
.info-card,
.contact-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat-grid article {
  padding: 1.3rem;
}

.stat-grid strong {
  color: var(--blue-light);
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.stat-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  margin-top: 0.55rem;
}

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

.skill-card {
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.skill-card:hover {
  border-color: rgba(106, 166, 251, 0.5);
  transform: translateY(-2px);
}

.skill-card h3 {
  color: var(--blue-light);
  font-family: var(--mono);
  font-size: 0.84rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

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

.chip-row span {
  background: rgba(148, 163, 184, 0.1);
  border-radius: 6px;
  color: var(--muted-strong);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 650;
  padding: 0.35rem 0.7rem;
}

.chip-row.small {
  gap: 0.4rem;
  margin-top: 1rem;
}

.chip-row.small span {
  font-family: var(--mono);
  font-size: 0.76rem;
  padding: 0.28rem 0.55rem;
}

.chip-row.stacked {
  align-items: flex-start;
}

.chip-row.highlighted span {
  background: rgba(22, 104, 212, 0.18);
  border: 1px solid rgba(106, 166, 251, 0.2);
  color: var(--blue-light);
}

.section-intro {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-intro p {
  color: var(--muted);
  max-width: 38rem;
}

.section-intro a,
.project-topline a {
  align-items: center;
  color: var(--blue-light);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.45rem;
  text-decoration: none;
}

.section-intro a:hover,
.section-intro a:focus,
.project-topline a:hover,
.project-topline a:focus {
  color: var(--text);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: rgba(106, 166, 251, 0.5);
  transform: translateY(-2px);
}

.project-card.featured {
  grid-column: 1 / -1;
}

.project-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
  text-transform: none;
}

.project-topline p,
.project-topline span {
  color: var(--muted);
  font-size: 0.82rem;
}

.project-card h3 {
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1.3;
  margin-bottom: 0.7rem;
}

.project-card p,
.timeline-card p,
.info-card p,
.contact-card p {
  color: var(--muted);
}

.project-card ul,
.timeline-card ul {
  color: var(--muted);
  list-style: none;
  margin-top: 1rem;
}

.project-card li,
.timeline-card li {
  display: flex;
  font-size: 0.93rem;
  gap: 0.55rem;
}

.project-card li + li,
.timeline-card li + li {
  margin-top: 0.55rem;
}

.project-card li::before,
.timeline-card li::before {
  color: var(--blue-light);
  content: ">";
  flex: 0 0 auto;
  font-weight: 800;
}

.experience-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.8fr) minmax(18rem, 0.85fr);
}

.column-label {
  letter-spacing: 0;
  margin-bottom: 1.5rem;
}

.timeline {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 1.5rem;
  margin-left: 0.7rem;
  padding-left: 1.7rem;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  background: var(--bg);
  border: 2px solid #475569;
  border-radius: 50%;
  height: 1.1rem;
  left: -2.3rem;
  position: absolute;
  top: 0.5rem;
  width: 1.1rem;
}

.timeline-dot.active {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 0.35rem rgba(22, 104, 212, 0.16);
}

.timeline-card {
  padding: 1.35rem;
}

.timeline-header {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.timeline-header h4,
.info-card h4 {
  color: var(--text);
  font-size: 1rem;
}

.timeline-header span,
.info-card span,
.location {
  color: #64748b;
  font-family: var(--mono);
  font-size: 0.77rem;
}

.role {
  color: var(--blue-light) !important;
  font-weight: 700;
  margin-top: 0.3rem;
}

.location {
  margin-top: 0.15rem;
}

.side-stack {
  display: grid;
  gap: 2rem;
}

.info-card {
  display: grid;
  gap: 0.25rem;
  padding: 1.35rem;
}

.contact-section {
  padding-bottom: 6rem;
  padding-top: 6rem;
}

.contact-card {
  padding: 2rem;
}

.contact-card h2 {
  color: var(--text);
  font-size: 2.1rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 42rem;
}

.contact-card p:not(.eyebrow) {
  max-width: 42rem;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 2.5rem;
  padding-top: 2.5rem;
}

.site-footer strong {
  color: var(--text);
  display: block;
  font-size: 1.08rem;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    background: rgba(9, 15, 31, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 1rem;
    padding: 0.5rem;
    position: absolute;
    right: 1rem;
    top: 4.6rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li,
  .nav-links a {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem;
  }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 1.35rem;
    justify-content: center;
    min-height: auto;
    padding-bottom: 3rem;
    padding-top: 2rem;
  }

  .hero-copy h1 {
    font-size: 4.8rem;
  }

  .hero-photo {
    flex: none;
    width: 9.5rem;
  }

  .hero-photo img {
    width: 9.5rem;
  }

  .about-grid,
  .experience-layout {
    grid-template-columns: 1fr;
  }

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

  .project-card.featured {
    grid-column: auto;
  }

  .section-intro {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero-inner,
  .section,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-inner {
    align-items: flex-start;
    gap: 1rem;
    padding-top: 1.25rem;
  }

  .hero-photo {
    width: 7.8rem;
  }

  .hero-photo img {
    width: 7.8rem;
  }

  .hero-copy h1 {
    font-size: 3.05rem;
  }

  .hero-description {
    font-size: 0.96rem;
  }

  .eyebrow {
    margin-bottom: 0.75rem;
  }

  .role-line {
    font-size: 0.95rem;
    margin-top: 0.9rem;
  }

  .hero-description {
    margin-top: 0.9rem;
  }

  .hero-actions,
  .social-row {
    margin-top: 1.2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-bottom: 4.5rem;
    padding-top: 4.5rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .section-heading h2 {
    font-size: 1.65rem;
  }

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

  .timeline-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
