:root {
  --bg: #0b1220;
  --bg-2: #0f1a2d;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.10);
  --text: #eef5ff;
  --muted: #a9b7cc;
  --soft: #d8e4f5;
  --line: rgba(255, 255, 255, 0.12);
  --primary: #42f5b0;
  --primary-2: #36c8ff;
  --accent: #9a7cff;
  --dark-text: #152033;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(66, 245, 176, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(54, 200, 255, 0.14), transparent 26rem),
    linear-gradient(180deg, #0b1220 0%, #0d1628 42%, #101827 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

p {
  margin: 0;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 6.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  font-size: 1.3rem;
}

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

.section {
  padding: 7rem 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 999;
  background: var(--primary);
  color: #061018;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  transition: top 0.2s ease;
}

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

.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;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 99;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(11, 18, 32, 0.78);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.nav-wrap {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: max-content;
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: -0.12rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav a {
  color: var(--soft);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--panel);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  padding: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 9rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% -10% auto auto;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(66, 245, 176, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.62fr);
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  margin-bottom: 1.1rem;
}

.hero-lead {
  max-width: 760px;
  margin: 1.4rem 0 2rem;
  color: #cbd8ea;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.hero-actions,
.trust-row,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #061018;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 34px rgba(66, 245, 176, 0.18);
}

.btn-secondary {
  color: var(--white);
  border-color: var(--line);
  background: var(--panel);
}

.trust-row {
  margin-top: 2rem;
}

.trust-row span,
.status-pill,
.card-icon,
.work-item span,
.contact-links a {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
}

.trust-row span {
  padding: 0.62rem 0.9rem;
  color: var(--soft);
  font-size: 0.88rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.045));
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.profile-mark {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.2rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.82rem;
  margin-bottom: 1rem;
  color: var(--soft);
  font-size: 0.86rem;
}

.status-pill span {
  width: 9px;
  height: 9px;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 0 0 7px rgba(66, 245, 176, 0.12);
}

.hero-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.9rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1.4rem 0 0;
}

.metric-grid div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.16);
}

.metric-grid dt {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 900;
}

.metric-grid dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
}

.orb-one {
  width: 12rem;
  height: 12rem;
  right: -4rem;
  top: -4rem;
  background: var(--primary-2);
}

.orb-two {
  width: 9rem;
  height: 9rem;
  left: -3rem;
  bottom: -3rem;
  background: var(--accent);
}

.two-column,
.split-panel,
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 4rem;
  align-items: start;
}

.section-heading p:not(.eyebrow) {
  max-width: 710px;
  margin-top: 1rem;
}

.centered {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.centered p:not(.eyebrow) {
  margin-inline: auto;
}

.about-copy {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.card,
.research-cards article,
.contact-form {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.card:hover,
.research-cards article:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(66, 245, 176, 0.28);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 1.3rem;
}

.card h3,
.research-cards h3 {
  margin-bottom: 0.8rem;
}

.dark-band {
  position: relative;
  background:
    linear-gradient(135deg, rgba(66, 245, 176, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-list {
  display: grid;
  gap: 1rem;
}

.work-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.2rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(7, 13, 24, 0.72);
}

.work-item span {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: fit-content;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.work-item h3 {
  margin-bottom: 0.45rem;
}

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

.credential {
  min-height: 104px;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(66, 245, 176, 0.10), rgba(54, 200, 255, 0.04));
  color: var(--text);
  font-weight: 900;
  text-align: center;
}

.research-cards {
  display: grid;
  gap: 1rem;
}

.contact-section {
  padding-bottom: 5rem;
}

.contact-links {
  margin-top: 1.6rem;
}

.contact-links a {
  padding: 0.7rem 1rem;
  color: var(--soft);
}

.contact-form {
  display: grid;
  gap: 0.72rem;
}

.contact-form label {
  color: var(--soft);
  font-weight: 800;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  color: var(--text);
  font: inherit;
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(66, 245, 176, 0.55);
  box-shadow: 0 0 0 4px rgba(66, 245, 176, 0.12);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.86rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  background: rgba(0, 0, 0, 0.18);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-wrap a {
  color: var(--primary);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .site-nav {
    position: fixed;
    inset: 84px 1rem auto 1rem;
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(11, 18, 32, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero-grid,
  .two-column,
  .split-panel,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 640px) {
  .section {
    padding: 4.8rem 0;
  }

  .nav-wrap {
    height: 74px;
  }

  .site-nav {
    inset-top: 74px;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-top: 7.5rem;
  }

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

  .cards-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .work-item {
    grid-template-columns: 1fr;
  }

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

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* CV-backed updates */
.competency-panel {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
  padding: 1.35rem;
}

.competency-panel h3 {
  margin-bottom: 1rem;
}

.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.pill-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--soft);
  padding: 0.62rem 0.9rem;
  font-size: 0.88rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 196px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(66, 245, 176, 0.45), transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 4rem;
  align-items: start;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 188px;
  top: 1.4rem;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 8px rgba(66, 245, 176, 0.12);
}

.timeline-date {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--soft);
  padding: 0.6rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

.timeline-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(7, 13, 24, 0.72);
  padding: 1.35rem;
}

.timeline-card h3 {
  margin-bottom: 0.35rem;
}

.role-meta {
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.timeline-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.timeline-card li + li {
  margin-top: 0.42rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.impact-card {
  min-height: 184px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(66, 245, 176, 0.10), rgba(54, 200, 255, 0.035));
  padding: 1.3rem;
  display: grid;
  align-content: space-between;
  gap: 1rem;
}

.impact-card strong {
  color: var(--primary);
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.impact-card span {
  color: var(--soft);
}

.credential {
  display: grid;
  gap: 0.35rem;
  place-items: center;
}

.credential strong {
  font-size: 1.35rem;
  color: var(--primary);
}

.credential span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.35;
}

@media (max-width: 1040px) {
  .brand small {
    max-width: 220px;
  }

  .site-nav a {
    padding-inline: 0.72rem;
  }
}

@media (max-width: 920px) {
  .timeline::before,
  .timeline-item::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .timeline-date {
    width: fit-content;
  }

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

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

  .pill-cloud span {
    width: 100%;
    text-align: center;
  }
}
