:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-soft: #eef3fb;
  --ink: #111827;
  --muted: #667085;
  --line: #d8e0ea;
  --navy: #0b1220;
  --navy-2: #121c31;
  --accent: #2f67f6;
  --accent-dark: #2455d8;
  --accent-soft: #eaf0ff;
  --success: #17a957;
  --success-soft: #dff8e9;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.07);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
body.modal-open { overflow: hidden; }

.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section-pad { padding: 96px 0; }
.section-soft { background: #eef2f8; }
.section-dark { background: var(--navy); color: #fff; }
.compact-section { padding-block: 78px; }

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  z-index: 9999;
  box-shadow: var(--shadow-soft);
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 246, 250, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.94);
  border-color: rgba(216, 224, 234, .9);
  box-shadow: 0 8px 30px rgba(15, 23, 42, .05);
}
.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .15em;
}
.brand span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  text-decoration: none;
  color: #4b5565;
  font-weight: 700;
  font-size: .91rem;
  transition: color .18s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
}
.site-nav .nav-cta:hover { color: #fff; background: var(--accent); }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 99px; }

/* Shared typography */
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3, p { text-wrap: pretty; }
h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading > p:last-child { color: var(--muted); max-width: 700px; margin: 18px 0 0; font-size: 1.02rem; }
.section-heading.light .eyebrow { color: #8fb0ff; }
.section-heading.light > p:last-child { color: #aeb9cc; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 84px;
  padding-bottom: 92px;
  background:
    radial-gradient(circle at 83% 18%, rgba(47,103,246,.10), transparent 28%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(350px, .88fr);
  gap: clamp(54px, 8vw, 96px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  margin: 0;
  font-size: clamp(4.25rem, 8vw, 7.3rem);
  line-height: .92;
  letter-spacing: .085em;
  text-transform: uppercase;
  font-weight: 900;
}
.hero-title {
  margin: 25px 0 14px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.025em;
}
.hero-lede {
  margin: 0;
  max-width: 670px;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero-actions, .resume-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  font-size: .93rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px rgba(47,103,246,.25); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 16px 30px rgba(47,103,246,.30); }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: #bcc9d9; box-shadow: var(--shadow-soft); }
.hero-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-links a {
  color: #475467;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
}
.hero-links a:hover { color: var(--accent); }

.hero-visual {
  position: relative;
  width: min(100%, 430px);
  margin-inline: auto;
  padding-bottom: 54px;
}
.portrait-frame {
  background: var(--navy);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
  transform: scale(1.035);
}
.availability-card {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 26px);
  min-width: 315px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 17px 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 22px 50px rgba(15,23,42,.18);
  text-align: center;
}
.status-dot {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 11px var(--success-soft);
  margin-right: 5px;
}
.availability-card strong { font-size: .96rem; white-space: nowrap; }

/* About */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}
.prose { max-width: 720px; }
.prose p { color: #4f5a6a; font-size: 1.04rem; margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

/* Sales process */
.sales-process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 14px;
}
.value-card {
  position: relative;
  min-height: 248px;
  padding: 25px 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c2cede; }
.card-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 900;
  margin-bottom: 18px;
}
.value-card h3 { margin: 0 0 10px; font-size: 1.1rem; line-height: 1.22; }
.value-card p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Experience */
.timeline { display: grid; gap: 18px; }
.experience-card {
  padding: 32px 34px;
  border-radius: var(--radius-xl);
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
}
.experience-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 15px;
}
.role-label { margin: 0 0 4px; color: #8fb0ff; font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.experience-card h3 { margin: 0; font-size: 1.65rem; letter-spacing: -.025em; }
.date {
  flex: 0 0 auto;
  margin: 4px 0 0;
  color: #b8c3d4;
  font-weight: 700;
  font-size: .9rem;
}
.experience-summary { margin: 0 0 16px; color: #d6deea; max-width: 880px; }
.experience-card ul { margin: 0; padding-left: 20px; color: #bac5d5; }
.experience-card li + li { margin-top: 8px; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.skill-group {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.skill-group h3 { margin: 0 0 18px; font-size: 1.12rem; }
.skill-list { display: flex; flex-wrap: wrap; gap: 9px; }
.skill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f6fa;
  border: 1px solid #e1e7ef;
  color: #475467;
  font-size: .86rem;
  font-weight: 700;
}

/* Education */
.education-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(42px,8vw,90px); align-items: start; }
.education-location { color: var(--muted); margin: 12px 0 0; font-weight: 650; }
.education-card {
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.education-row {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 22px;
  padding: 19px 0;
  border-bottom: 1px solid #e6ebf1;
}
.education-row:last-child { border-bottom: 0; }
.education-row span { color: var(--muted); font-size: .91rem; }
.education-row strong { font-size: .96rem; }
.education-row.highlight strong { color: var(--accent); }

/* Credentials */
.credential-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.credential-grid article {
  min-height: 130px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.credential-grid strong { font-size: 1.02rem; }
.credential-grid span { color: #aeb9cc; font-size: .88rem; }

/* Resume */
.resume-panel {
  padding: clamp(34px,5vw,54px);
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 42px;
  align-items: center;
}
.resume-panel h2 { font-size: clamp(2rem,3vw,3rem); }
.resume-panel p:last-child { margin: 15px 0 0; max-width: 690px; color: var(--muted); }
.resume-actions { margin-top: 0; }

/* Contact */
.contact-section { background: #e9eef7; }
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.78fr); gap: clamp(40px,7vw,86px); align-items: center; }
.contact-grid > div:first-child > p:last-child { color: var(--muted); max-width: 680px; font-size: 1.02rem; }
.contact-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.contact-card > * {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 19px 23px;
  border-bottom: 1px solid #e6ebf1;
  text-decoration: none;
}
.contact-card > *:last-child { border-bottom: 0; }
.contact-card a:hover { background: #f8faff; }
.contact-card span { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.contact-card strong { font-size: .95rem; overflow-wrap: anywhere; }

/* Resume modal */
.resume-modal {
  width: min(920px, calc(100vw - 34px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 35px 100px rgba(0,0,0,.34);
}
.resume-modal::backdrop { background: rgba(7,12,22,.72); backdrop-filter: blur(5px); }
.resume-modal-shell { background: #fff; border-radius: 24px; overflow: hidden; }
.resume-modal-header {
  min-height: 80px;
  padding: 17px 20px 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}
.resume-modal-eyebrow { margin: 0 0 2px; color: var(--accent); font-weight: 850; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.resume-modal-header h2 { font-size: 1.45rem; letter-spacing: -.025em; }
.resume-modal-x {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f7f9fc;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}
.resume-modal-x:hover { background: #edf1f6; }
.resume-preview-wrap { background: #dfe5ed; padding: 18px 18px 0; }
.resume-preview { width: 100%; height: min(68vh, 730px); border: 0; border-radius: 12px; background: #fff; }
.resume-preview-fallback { margin: 9px 0 0; color: #596579; font-size: .79rem; }
.resume-modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 22px 22px; background: #fff; }

.site-footer { background: var(--navy); color: #93a0b5; }
.footer-wrap { min-height: 78px; display: flex; align-items: center; }
.footer-wrap p { margin: 0; font-size: .86rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .value-card { transition: none; }
}

@media (max-width: 1050px) {
  .sales-process-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .credential-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .section-pad { padding: 78px 0; }
  .hero { padding-top: 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { text-align: left; }
  .hero-visual { width: min(100%, 390px); }
  .split-layout, .education-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .resume-panel { grid-template-columns: 1fr; gap: 26px; }
  .skills-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 24px;
    right: 24px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 14px; border-radius: 10px; }
  .site-nav a:hover { background: #f5f7fa; }
  .site-nav .nav-cta { text-align: center; margin-top: 5px; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 30px), var(--max)); }
  .section-pad { padding: 66px 0; }
  .nav-wrap { min-height: 68px; }
  .hero { padding-top: 48px; padding-bottom: 70px; }
  .hero h1 { font-size: clamp(3.15rem, 17vw, 5rem); letter-spacing: .065em; }
  .hero-title { font-size: 1.3rem; }
  .hero-lede { font-size: 1rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-links { gap: 12px 18px; }
  .hero-visual { width: min(100%, 345px); padding-bottom: 58px; }
  .portrait-frame { border-width: 9px; border-radius: 28px; }
  .availability-card { min-width: 0; width: calc(100% - 20px); padding: 15px 17px; border-radius: 20px; }
  .availability-card strong { font-size: .88rem; white-space: normal; }
  .status-dot { width: 16px; height: 16px; box-shadow: 0 0 0 8px var(--success-soft); }
  .sales-process-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 0; }
  .experience-card { padding: 25px 22px; border-radius: 22px; }
  .experience-topline { flex-direction: column; gap: 5px; }
  .date { margin-top: 0; }
  .credential-grid { grid-template-columns: 1fr; }
  .education-card { padding-inline: 21px; }
  .education-row { grid-template-columns: 1fr; gap: 5px; }
  .resume-panel { padding: 28px 22px; border-radius: 24px; }
  .resume-actions { display: grid; grid-template-columns: 1fr; }
  .resume-modal { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 18px; }
  .resume-modal-shell { border-radius: 18px; }
  .resume-modal-header { padding: 14px 14px 13px 17px; }
  .resume-preview-wrap { padding: 10px 10px 0; }
  .resume-preview { height: 62vh; }
  .resume-modal-footer { display: grid; grid-template-columns: 1fr; padding: 14px; }
}
