:root {
  --ink: #111827;
  --muted: #5b6474;
  --paper: #f7f8fc;
  --surface: #ffffff;
  --surface-soft: #f1f4ff;
  --line: #d8deef;
  --blue: #2563eb;
  --blue-deep: #172554;
  --violet: #6d28d9;
  --violet-soft: #ede9fe;
  --cyan: #0ea5e9;
  --shadow: 0 24px 70px rgba(23, 37, 84, 0.14);
  --shadow-strong: 0 28px 80px rgba(37, 99, 235, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  line-height: 1.6;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon,
.stat-icon,
.card-icon {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon {
  width: 18px;
  height: 18px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(247, 248, 252, 0.86);
  border-bottom: 1px solid rgba(216, 222, 239, 0.86);
  backdrop-filter: blur(22px);
}

.brand,
.nav-links,
.hero-actions,
.contact-methods,
.site-footer div {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  font-weight: 750;
}

.brand-logo {
  display: block;
  width: clamp(142px, 15vw, 178px);
  height: auto;
}

.brand-logo-mark {
  fill: url("#brandLogoGradient");
}

.brand-logo-k,
.brand-logo-accent {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-logo-k {
  stroke: white;
  stroke-width: 4.4;
}

.brand-logo-accent {
  stroke: #b8c7ff;
  stroke-width: 3.4;
}

.brand-logo-text {
  fill: var(--ink);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

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

.header-action,
.button,
.text-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  background: var(--blue);
  color: white;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hero {
  position: relative;
  min-height: 69vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(56px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-light {
  position: absolute;
  left: -20%;
  top: -34%;
  width: 64vw;
  height: 64vw;
  min-width: 520px;
  min-height: 520px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.42), rgba(37, 99, 235, 0.12) 42%, transparent 68%);
  filter: blur(8px);
  opacity: 0.78;
  animation: heroPulse 7s ease-in-out infinite alternate;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 18%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 22, 48, 0.95) 0%, rgba(30, 41, 91, 0.76) 42%, rgba(30, 64, 175, 0.16) 74%),
    linear-gradient(135deg, rgba(109, 40, 217, 0.32), rgba(14, 165, 233, 0.1));
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
  color: white;
  padding-bottom: 2vh;
  animation: heroContentIn 780ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: #a5b4fc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}

.button::after,
.header-action::after,
.text-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.26) 46%, transparent 58%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.button > *,
.header-action > *,
.text-button > * {
  position: relative;
  z-index: 1;
}

.button:hover,
.header-action:hover,
.text-button:hover {
  transform: translateY(-3px);
}

.button:hover::after,
.header-action:hover::after,
.text-button:hover::after {
  transform: translateX(120%);
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.button.primary:hover,
.header-action:hover {
  box-shadow: var(--shadow-strong);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.18);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-band div {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 24px clamp(20px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.88);
  transition: background 180ms ease, transform 180ms ease;
}

.stats-band div:hover {
  background: white;
  transform: translateY(-2px);
}

.stat-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  color: var(--violet);
}

.stats-band strong {
  color: var(--blue-deep);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.stats-band span {
  color: var(--muted);
  font-weight: 600;
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1fr);
  gap: clamp(32px, 8vw, 98px);
  align-items: start;
}

.body-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.split .body-copy {
  padding-top: 42px;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

.section-heading {
  width: min(900px, 100%);
  margin-bottom: clamp(30px, 5vw, 58px);
}

.resume-section {
  background: linear-gradient(180deg, var(--surface-soft), #f8faff);
}

.resume-section .section-kicker,
.education-section .section-kicker,
.expertise-section .section-kicker,
.contact-section .section-kicker {
  color: var(--violet);
}

.timeline {
  display: grid;
  gap: 0;
}

.resume-group + .resume-group {
  margin-top: clamp(42px, 6vw, 72px);
}

.resume-group-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--violet);
  font-size: 0.9rem;
  font-weight: 850;
  text-transform: uppercase;
}

.resume-group-heading .icon {
  width: 20px;
  height: 20px;
}

.timeline-item,
.work-list article {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid rgba(23, 37, 84, 0.14);
}

.timeline-date::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
  transform: translate(-22px, -50%);
}

.timeline-item:last-child,
.work-list article:last-child {
  border-bottom: 1px solid rgba(23, 37, 84, 0.14);
}

.timeline-date {
  position: relative;
  color: var(--blue);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.32;
}

.timeline-item p,
.expertise-grid p,
.work-list p,
.contact-intro p,
.form-status {
  color: var(--muted);
}

.timeline-item p {
  margin-bottom: 0;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.expertise-grid article,
.education-card {
  min-height: 232px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 34px rgba(23, 37, 84, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.expertise-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto 1fr;
  align-content: start;
}

.expertise-grid article .card-icon {
  grid-column: 1;
  grid-row: 1;
}

.expertise-grid article .card-icon,
.expertise-grid article span {
  align-self: center;
}

.expertise-grid article:hover,
.education-card:hover {
  transform: translateY(-6px);
  border-color: rgba(109, 40, 217, 0.28);
  box-shadow: 0 24px 60px rgba(23, 37, 84, 0.14);
}

.expertise-grid span,
.education-card span {
  display: inline-block;
  color: var(--violet);
  font-weight: 800;
}

.expertise-grid span {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin-bottom: 0;
  font-size: 2.1rem;
  line-height: 1;
  opacity: 0.96;
}

.card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 30px;
  color: var(--blue);
}

.expertise-grid article .card-icon {
  margin-bottom: 34px;
}

.expertise-grid article h3,
.expertise-grid article p {
  grid-column: 1 / -1;
}

.education-section {
  background: var(--paper);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.education-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.education-card span {
  margin-bottom: 12px;
  color: var(--blue);
}

.education-card h3 {
  font-size: 1.24rem;
}

.education-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.work-section {
  background:
    linear-gradient(135deg, rgba(109, 40, 217, 0.24), rgba(37, 99, 235, 0.18)),
    var(--blue-deep);
  color: white;
}

.work-section .section-kicker,
.work-list strong {
  color: #c4b5fd;
}

.work-list article {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px);
  border-color: rgba(255, 255, 255, 0.18);
}

.work-list article:last-child {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.work-list p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
}

.work-list strong {
  align-self: center;
  justify-self: end;
  font-size: 1.04rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(340px, 1fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.045), transparent 42%),
    var(--paper);
}

.contact-intro {
  position: sticky;
  top: 108px;
  display: grid;
  align-content: start;
  max-width: 620px;
}

.contact-intro h2 {
  max-width: 560px;
  font-size: clamp(2.35rem, 3.2vw, 3.4rem);
  line-height: 1.05;
}

.contact-intro p:not(.section-kicker) {
  max-width: 620px;
  margin-top: 18px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.contact-methods {
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin-top: 28px;
}

.contact-methods a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  padding: 0 2px;
  color: var(--blue);
  font-size: 0.98rem;
  font-weight: 800;
}

.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: var(--blue-deep);
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.text-button:hover {
  background: var(--violet);
  box-shadow: 0 16px 34px rgba(109, 40, 217, 0.24);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c9d2e8;
  border-radius: 6px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fbfcff;
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.reveal-group .reveal:nth-child(2),
.expertise-grid .reveal:nth-child(2),
.education-grid .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.reveal-group .reveal:nth-child(3),
.expertise-grid .reveal:nth-child(3),
.education-grid .reveal:nth-child(3) {
  transition-delay: 150ms;
}

.reveal-group .reveal:nth-child(4),
.expertise-grid .reveal:nth-child(4) {
  transition-delay: 220ms;
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPulse {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(8%, 6%, 0) scale(1.08);
  }
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.scroll-top {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 20;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.92);
  transition: opacity 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-strong);
}

.scroll-top:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-weight: 700;
}

.site-footer div {
  gap: 18px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .stats-band,
  .expertise-grid,
  .education-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .split .body-copy {
    padding-top: 0;
  }

  .contact-intro {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand-logo {
    width: 134px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 14px;
  }

  .nav-links {
    gap: 10px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 62vh;
    padding: 48px 18px;
  }

  .hero-image {
    object-position: 74% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(13, 22, 48, 0.96) 0%, rgba(30, 41, 91, 0.82) 72%, rgba(30, 64, 175, 0.56) 100%),
      linear-gradient(135deg, rgba(109, 40, 217, 0.3), rgba(14, 165, 233, 0.12));
  }

  h1 {
    font-size: clamp(3.05rem, 17vw, 4.25rem);
  }

  .stats-band,
  .expertise-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item,
  .work-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-date::before {
    display: none;
  }

  .work-list strong {
    justify-self: start;
  }

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

  .scroll-top {
    width: 44px;
    height: 44px;
    right: 18px;
    bottom: 18px;
  }
}

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

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