:root {
  --bg: #0b1118;
  --panel: rgba(244, 247, 250, 0.94);
  --panel-strong: #ffffff;
  --ink: #101827;
  --muted: #5f6b7a;
  --line: rgba(16, 24, 39, 0.12);
  --accent: #38bdf8;
  --accent-2: #2563eb;
  --accent-3: #a9b8ca;
  --white: #f8fbff;
  --shadow: 0 20px 70px rgba(3, 7, 18, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 15% 12%, rgba(56, 189, 248, 0.16), transparent 30rem),
    radial-gradient(circle at 85% 0%, rgba(59, 130, 246, 0.13), transparent 24rem),
    linear-gradient(135deg, #080d14 0%, #111827 52%, #0b1220 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

#network-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  color: var(--white);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(248, 250, 247, 0.78);
  font-size: 14px;
}

.nav a:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--white);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 116px);
  padding: 54px 0 32px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent-3);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.candidate-name {
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  line-height: 1;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(248, 250, 247, 0.82);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn,
.contact-actions a,
.contact-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.btn.primary {
  border-color: transparent;
  color: #06101a;
  background: var(--accent);
}

.btn.ghost {
  border-color: rgba(148, 163, 184, 0.3);
}

.btn:hover,
.contact-actions a:hover,
.contact-actions button:hover {
  transform: translateY(-1px);
}

.signal-panel {
  align-self: center;
  padding: 26px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-photo {
  position: relative;
  margin: 0 0 20px;
  overflow: hidden;
  border: 1px solid rgba(21, 24, 23, 0.12);
  border-radius: 8px;
  background: #d8dee8;
  aspect-ratio: 1 / 1;
}

.profile-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -90px 90px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #075985;
  background: rgba(56, 189, 248, 0.13);
  font-size: 13px;
  font-weight: 800;
}

.availability::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

dl {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-cloud span {
  padding: 8px 10px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 8px;
  color: #1e3a8a;
  background: rgba(37, 99, 235, 0.06);
  font-size: 13px;
  font-weight: 700;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 22px;
}

.metrics article {
  min-height: 154px;
  padding: 20px;
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 14px 40px rgba(3, 7, 18, 0.14);
}

.metrics strong {
  display: block;
  color: var(--accent);
  font-size: 36px;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.section {
  margin-top: 22px;
  padding: 48px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 40px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: 0;
}

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

.capabilities article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.capabilities h3,
.job h3 {
  margin: 0;
  font-size: 20px;
}

.capabilities p,
.contacts p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.job {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.job.featured {
  border-color: rgba(56, 189, 248, 0.36);
  background: #f8fbff;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.job-meta span {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(21, 24, 23, 0.06);
}

.role {
  margin: 6px 0 0;
  color: var(--accent-2);
  font-weight: 800;
}

ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: #263241;
  line-height: 1.5;
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.6fr);
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.96));
}

.contacts .contact-actions {
  flex-direction: column;
  align-items: stretch;
  margin-top: 0;
}

.contact-actions a,
.contact-actions button {
  width: 100%;
  border-color: var(--line);
  color: var(--ink);
  background: var(--panel-strong);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(21, 24, 23, 0.92);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .topbar {
    position: static;
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero,
  .two-column,
  .contacts {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

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

@media (max-width: 620px) {
  main,
  .topbar {
    padding-right: 16px;
    padding-left: 16px;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 17px;
  }

  .metrics,
  .capabilities {
    grid-template-columns: 1fr;
  }

  .section,
  .signal-panel {
    padding: 22px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
