@font-face {
  font-family: "Sora";
  src: url("fonts/sora-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

@page {
  size: A4 portrait;
  margin: 0;
}

:root {
  --ink: #14243a;
  --ink-soft: #53647a;
  --navy: #071426;
  --navy-mid: #0b3047;
  --teal: #0b6b78;
  --teal-bright: #24c8bb;
  --teal-soft: #e9f7f6;
  --blue: #5276ff;
  --line: #d8e5e8;
  --paper: #ffffff;
  --screen: #dfe8ed;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--screen);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--screen);
  font-family: "Sora", "Segoe UI", Arial, sans-serif;
  font-size: 7.9pt;
  line-height: 1.38;
}

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

.cv-actions {
  display: flex;
  width: 210mm;
  margin: 12px auto -4px;
  padding: 8px 10px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border: 1px solid rgba(11, 107, 120, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(15, 35, 50, 0.12);
}

.cv-actions a {
  padding: 7px 11px;
  border: 1px solid #c9dadd;
  border-radius: 7px;
  color: #274257;
  background: #f7fafb;
  font-size: 8.2pt;
  font-weight: 700;
}

.cv-actions .action-primary {
  border-color: var(--teal);
  color: #ffffff;
  background: var(--teal);
}

.cv-page {
  width: 210mm;
  min-height: 297mm;
  margin: 12px auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 18px 54px rgba(15, 35, 50, 0.2);
}

.hero {
  position: relative;
  min-height: 48mm;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 84% 18%, rgba(36, 200, 187, 0.22), transparent 30%),
    linear-gradient(125deg, var(--navy) 0%, #102549 54%, var(--teal) 145%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border: 0.25mm solid rgba(112, 231, 220, 0.15);
  border-radius: 50%;
}

.hero::before {
  top: -29mm;
  right: -8mm;
  width: 77mm;
  height: 77mm;
}

.hero::after {
  right: 23mm;
  bottom: -42mm;
  width: 63mm;
  height: 63mm;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 30mm minmax(0, 1fr) 48mm;
  gap: 7mm;
  align-items: center;
  padding: 7mm 10.5mm 3.5mm;
}

.portrait-wrap {
  position: relative;
}

.portrait-wrap::after {
  position: absolute;
  content: "";
  inset: -1.5mm;
  border: 0.35mm solid rgba(111, 238, 225, 0.62);
  border-radius: 4.8mm;
}

.cv-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 30mm;
  height: 30mm;
  object-fit: cover;
  border-radius: 4mm;
}

.eyebrow,
.section-kicker,
.proof-label,
.project-number,
.project-meta,
.side-title,
.date-label,
.status-badge {
  font-family: "JetBrains Mono", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 0 0 1.5mm;
  color: #7ee7dc;
  font-size: 6.6pt;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 25pt;
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.role {
  margin: 1.5mm 0 0.9mm;
  color: #8df0e6;
  font-size: 12.2pt;
  line-height: 1.08;
  font-weight: 750;
}

.promise {
  max-width: 95mm;
  margin: 0;
  color: #d6e5ee;
  font-size: 7.8pt;
  line-height: 1.42;
}

.contact-stack {
  display: grid;
  gap: 1.1mm;
}

.contact-item {
  display: grid;
  grid-template-columns: 6mm minmax(0, 1fr);
  gap: 2mm;
  align-items: center;
  min-height: 6.5mm;
  padding: 0.9mm 1.6mm;
  border: 0.25mm solid rgba(193, 231, 235, 0.22);
  border-radius: 2mm;
  color: #e8f2f5;
  background: rgba(4, 18, 36, 0.28);
  font-size: 6.9pt;
}

.contact-mark {
  display: grid;
  width: 5.3mm;
  height: 5.3mm;
  place-items: center;
  border-radius: 1.5mm;
  color: #071426;
  background: #79e6dc;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 5.4pt;
  font-weight: 800;
}

.hero-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5mm;
  padding: 0 10.5mm 4mm 47.5mm;
}

.specialties {
  margin: 0;
  color: #a9c9d5;
  font-size: 6.9pt;
  font-weight: 650;
}

.status-badge {
  flex: 0 0 auto;
  padding: 1.4mm 2.2mm;
  border: 0.25mm solid rgba(126, 231, 220, 0.48);
  border-radius: 999px;
  color: #98f1e8;
  background: rgba(4, 18, 36, 0.32);
  font-size: 6.1pt;
  font-weight: 800;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 20.5mm;
  border-bottom: 0.35mm solid #cfdfe4;
  background: linear-gradient(90deg, #eef9f8 0%, #f7fafc 50%, #eef4ff 100%);
}

.proof {
  position: relative;
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 3.5mm 4mm 3mm;
}

.proof + .proof::before {
  position: absolute;
  top: 4mm;
  bottom: 4mm;
  left: 0;
  width: 0.25mm;
  content: "";
  background: #cfdee3;
}

.proof-value {
  color: var(--teal);
  font-size: 15.5pt;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 850;
}

.proof-value.compact {
  font-size: 12.5pt;
}

.proof-label {
  margin-top: 1.5mm;
  color: #617186;
  font-size: 5.95pt;
  line-height: 1.28;
  font-weight: 700;
}

.cv-body {
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(0, 0.88fr);
  gap: 6mm;
  padding: 5.5mm 10.5mm;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4mm;
  margin: 0 0 2.2mm;
  padding-bottom: 1.4mm;
  border-bottom: 0.35mm solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-size: 11.1pt;
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 820;
}

.section-kicker {
  color: var(--teal);
  font-size: 5.8pt;
  font-weight: 800;
}

.project-list {
  display: grid;
  gap: 1.9mm;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 10mm minmax(0, 1fr);
  gap: 3mm;
  padding: 2.7mm 3.3mm;
  overflow: hidden;
  border: 0.25mm solid #d8e4e8;
  border-radius: 3mm;
  background: linear-gradient(110deg, #ffffff 0%, #f9fbfc 100%);
  box-shadow: 0 1.2mm 3.5mm rgba(21, 49, 69, 0.065);
}

.project-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.4mm;
  height: 100%;
  content: "";
  background: linear-gradient(180deg, var(--teal-bright), var(--blue));
}

.project-number {
  display: grid;
  width: 8.5mm;
  height: 8.5mm;
  place-items: center;
  border-radius: 2.2mm;
  color: #ffffff;
  background: linear-gradient(145deg, var(--teal), #315c9e);
  font-size: 7.1pt;
  font-weight: 800;
}

.project-copy h3 {
  margin: 0;
  padding-right: 2mm;
  color: #10253b;
  font-size: 8.8pt;
  line-height: 1.24;
  font-weight: 780;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1mm 2.2mm;
  margin: 1.2mm 0 1mm;
  color: var(--teal);
  font-size: 5.55pt;
  line-height: 1.3;
  font-weight: 800;
}

.project-meta span {
  padding: 0.7mm 1.2mm;
  border: 0.2mm solid #c5e5e2;
  border-radius: 999px;
  background: var(--teal-soft);
}

.project-copy p {
  margin: 0;
  color: #475970;
  font-size: 7.35pt;
  line-height: 1.38;
}

.career {
  margin-top: 3.8mm;
}

.experience-list {
  display: grid;
  gap: 1.6mm;
}

.experience-row {
  display: grid;
  grid-template-columns: 34mm minmax(0, 1fr);
  gap: 3.2mm;
}

.date-label {
  padding-top: 0.3mm;
  color: var(--teal);
  font-size: 6.6pt;
  line-height: 1.25;
  letter-spacing: 0.04em;
  font-weight: 800;
  text-transform: none;
  white-space: nowrap;
}

.experience-copy {
  padding: 0 0 1.4mm 3mm;
  border-left: 0.55mm solid #b7d9d7;
}

.experience-copy h3 {
  margin: 0;
  color: #16283c;
  font-size: 8.05pt;
  line-height: 1.28;
  font-weight: 780;
}

.employer {
  margin: 0.5mm 0 0;
  color: var(--teal);
  font-size: 6.9pt;
  font-weight: 750;
}

.experience-copy p {
  margin: 0.7mm 0 0;
  color: #53647a;
  font-size: 6.8pt;
  line-height: 1.36;
}

.it-groups {
  display: grid;
  gap: 0.8mm;
  margin-top: 1.1mm;
}

.experience-copy .it-group {
  padding: 1.15mm 1.7mm;
  border-radius: 1.6mm;
  background: #f2f7f8;
  color: #465a70;
  font-size: 6.7pt;
  line-height: 1.34;
}

.it-group b {
  color: #16314a;
}

.side-panel {
  align-self: stretch;
  padding: 3.5mm;
  border: 0.25mm solid #d6e5e8;
  border-radius: 4mm;
  background:
    linear-gradient(180deg, rgba(233, 247, 246, 0.92) 0%, rgba(246, 249, 252, 0.96) 58%, rgba(238, 244, 255, 0.9) 100%);
}

.side-section + .side-section {
  margin-top: 2.3mm;
  padding-top: 2.1mm;
  border-top: 0.25mm solid #cfdfe3;
}

.side-title {
  margin: 0 0 1.2mm;
  color: var(--teal);
  font-size: 6.4pt;
  line-height: 1.2;
  font-weight: 850;
}

.side-profile {
  margin: 0;
  color: #334a60;
  font-size: 6.95pt;
  line-height: 1.43;
}

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

.workflow-step {
  padding: 1.2mm;
  border: 0.2mm solid #c8e1e0;
  border-radius: 1.8mm;
  background: rgba(255, 255, 255, 0.72);
}

.workflow-step b {
  display: block;
  margin-bottom: 0.4mm;
  color: #19364d;
  font-size: 6.3pt;
}

.workflow-step span {
  color: #64768a;
  font-size: 5.9pt;
  line-height: 1.3;
}

.skill-group + .skill-group {
  margin-top: 1.3mm;
}

.skill-group h3 {
  margin: 0 0 0.55mm;
  color: #173149;
  font-size: 6.7pt;
  line-height: 1.25;
  font-weight: 780;
}

.skill-group p {
  margin: 0;
  color: #5c6e81;
  font-size: 6.3pt;
  line-height: 1.35;
}

.tool-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1mm;
}

.tool-cloud span {
  padding: 0.65mm 1.1mm;
  border: 0.2mm solid #c9dbec;
  border-radius: 1.4mm;
  color: #2f5274;
  background: rgba(255, 255, 255, 0.72);
  font-size: 5.7pt;
  font-weight: 650;
}

.education-list {
  display: grid;
  gap: 0.8mm;
}

.education-item {
  display: grid;
  grid-template-columns: 10mm minmax(0, 1fr);
  gap: 1.2mm;
  font-size: 6.3pt;
  line-height: 1.32;
}

.education-year {
  color: var(--teal);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-weight: 800;
}

.education-item b {
  color: #263f57;
}

.language-row,
.availability-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2mm;
  color: #52677a;
  font-size: 6.4pt;
}

.language-row + .language-row,
.availability-row + .availability-row {
  margin-top: 0.8mm;
}

.language-row b,
.availability-row b {
  color: #173149;
}

.availability-row span {
  text-align: right;
}

.micro-note {
  margin: 1.3mm 0 0;
  padding: 1.2mm;
  border-left: 0.7mm solid var(--teal-bright);
  color: #4d6578;
  background: rgba(255, 255, 255, 0.64);
  font-size: 6pt;
  line-height: 1.38;
}

@media screen and (max-width: 820px) {
  html,
  body {
    background: #ffffff;
  }

  body {
    font-size: 10pt;
  }

  .cv-actions {
    position: sticky;
    z-index: 10;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 9px 10px;
    justify-content: flex-start;
    overflow-x: auto;
    border: 0;
    border-bottom: 1px solid #d7e3e6;
    border-radius: 0;
    box-shadow: 0 5px 18px rgba(15, 35, 50, 0.1);
  }

  .cv-actions a {
    flex: 0 0 auto;
    font-size: 8.6pt;
  }

  .cv-page {
    width: 100%;
    min-height: 0;
    margin: 0;
    box-shadow: none;
  }

  .hero-grid {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 18px;
    padding: 26px 22px 16px;
  }

  .contact-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv-photo {
    width: 86px;
    height: 86px;
  }

  .hero-footer {
    align-items: flex-start;
    padding: 0 22px 24px;
  }

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

  .proof:nth-child(3)::before {
    display: none;
  }

  .cv-body {
    grid-template-columns: 1fr;
    padding: 28px 22px 36px;
  }

  .side-panel {
    grid-row: 1;
  }

  .project-copy h3 {
    font-size: 10.5pt;
  }

  .project-copy p,
  .experience-copy p,
  .side-profile {
    font-size: 8.6pt;
  }

  .experience-row {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .date-label {
    font-size: 8pt;
  }

  .date-line {
    display: block;
  }
}

@media print {
  html,
  body {
    width: 210mm;
    height: 297mm;
    overflow: hidden;
    background: #ffffff;
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cv-actions {
    display: none;
  }

  .cv-page {
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    margin: 0;
    box-shadow: none;
  }
}
