:root {
  --ink: #101820;
  --muted: #5a6675;
  --line: #dfe5ec;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --accent: #143f73;
  --accent-dark: #071d3a;
  --gold: #b27b24;
  --steel: #263746;
  --shadow: 0 18px 50px rgba(16, 24, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(247, 244, 238, 0.9);
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 13px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

nav a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
  min-height: calc(100vh - 72px);
  padding: clamp(54px, 8vw, 118px) clamp(20px, 4vw, 56px) 64px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 85% 20%, rgba(20, 63, 115, 0.16), transparent 28%),
    linear-gradient(135deg, #f7f4ee 0%, #eef3f8 48%, #f5ede1 100%);
}

.hero-copy {
  max-width: 900px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1020px;
  margin-bottom: 24px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--steel);
  font-size: clamp(18px, 2.2vw, 24px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 760;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.12);
}

.button.primary {
  color: #fff;
  background: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.55);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  background: rgba(16, 24, 32, 0.14);
  border: 1px solid rgba(16, 24, 32, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel div {
  min-height: 156px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.84);
}

.metric {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 840;
  line-height: 0.95;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.section {
  padding: clamp(64px, 10vw, 132px) clamp(20px, 4vw, 56px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
  background: var(--surface);
}

.intro p:last-child,
.credentials p {
  color: var(--steel);
  font-size: clamp(18px, 2vw, 22px);
}

.split {
  background: #eef3f8;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 36px;
}

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

.project-card,
.skills-grid > div,
.ai-grid > article {
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.project-topline span {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--accent-dark);
  background: #dce8f6;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.project-card p,
.ai-grid p,
.role-body p,
.skills-grid p {
  color: var(--muted);
}

.role-body ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.role-body li + li {
  margin-top: 8px;
}

.competencies {
  background: #eef3f8;
}

.ai-section {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.96), rgba(7, 29, 58, 0.94)),
    var(--ink);
}

.ai-section .section-kicker {
  color: #8bb8ff;
}

.ai-section .section-heading p:not(.section-kicker) {
  max-width: 780px;
  color: #dbe4ea;
  font-size: clamp(17px, 2vw, 21px);
}

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

.ai-grid > article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.ai-grid h3 {
  color: #fff;
}

.ai-grid p {
  color: #dbe4ea;
}

.ai-visual-block,
.management-ai-block,
.tech-rating-block {
  margin-top: clamp(46px, 7vw, 84px);
}

.compact-heading {
  margin-bottom: 24px;
}

.sdlc-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.sdlc-step {
  position: relative;
  min-height: 230px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.sdlc-step::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -9px;
  width: 16px;
  height: 16px;
  background: #8bb8ff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(139, 184, 255, 0.2);
  z-index: 2;
}

.sdlc-step:last-child::after {
  display: none;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: var(--ink);
  background: #8bb8ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.sdlc-step h3,
.sdlc-step p {
  color: #fff;
}

.sdlc-step p {
  margin-bottom: 0;
  color: #dbe4ea;
  font-size: 14px;
}

.startup-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.startup-flow > div {
  padding: 16px;
  background: rgba(139, 184, 255, 0.12);
  border: 1px solid rgba(139, 184, 255, 0.3);
  border-radius: 8px;
}

.startup-flow span,
.startup-flow strong {
  display: block;
}

.startup-flow span {
  margin-bottom: 6px;
  color: #8bb8ff;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.startup-flow strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
}

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

.management-grid article {
  padding: clamp(22px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.management-grid span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 10px;
  color: var(--ink);
  background: #8bb8ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.management-grid h3 {
  color: #fff;
}

.management-grid ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: #dbe4ea;
}

.management-grid li + li {
  margin-top: 9px;
}

.management-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.management-ribbon span {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 16px;
  color: #fff;
  background: rgba(139, 184, 255, 0.13);
  font-weight: 760;
  line-height: 1.3;
}

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

.tech-rating-grid article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 118px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.tech-rating-grid h3 {
  color: #fff;
}

.tech-rating-grid p {
  margin-bottom: 0;
  color: #dbe4ea;
  font-size: 14px;
}

.stars {
  color: #ffd166;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.stars.four,
.stars.three {
  color: #ffd166;
}

.competency-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.competency-list span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--accent-dark);
  background: var(--surface);
  border: 1px solid #c9d8ec;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 760;
}

.stack {
  margin-bottom: 0;
  color: var(--gold) !important;
  font-size: 14px;
  font-weight: 720;
}

.timeline {
  border-top: 1px solid var(--line);
}

.role {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 72px);
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.role-date {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 820;
}

.role-body {
  max-width: 820px;
}

.company {
  margin-bottom: 12px;
  color: var(--steel) !important;
  font-weight: 720;
}

.skills-section {
  background: var(--surface);
}

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

.resume-section {
  background: #eef3f8;
}

.resume-preview {
  display: block;
  width: 100%;
  height: min(76vh, 860px);
  min-height: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 7vw, 96px);
  background: var(--ink);
  color: #fff;
}

.credentials .section-kicker {
  color: #8bb8ff;
}

.credentials p {
  color: #dbe4ea;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(54px, 8vw, 92px) clamp(20px, 4vw, 56px);
  background: #e8dfd1;
}

.contact-band h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
}

@media (max-width: 980px) {
  .hero,
  .intro,
  .credentials,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .project-grid,
  .ai-grid,
  .management-grid,
  .sdlc-map,
  .startup-flow,
  .management-ribbon,
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tech-rating-grid {
    grid-template-columns: 1fr;
  }

  .sdlc-step::after {
    display: none;
  }

  .contact-actions {
    justify-content: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: auto;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 46px;
  }

  h1 {
    font-size: clamp(42px, 16vw, 62px);
  }

  .hero-panel,
  .project-grid,
  .ai-grid,
  .management-grid,
  .sdlc-map,
  .startup-flow,
  .management-ribbon,
  .tech-rating-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .tech-rating-grid article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-panel div {
    min-height: 118px;
  }

  .role {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .button {
    width: 100%;
  }
}
