:root {
  --bg: #ffffff;
  --surface: #f7faff;
  --ink: #0b1420;
  --muted: #536171;
  --line: #dce7f3;
  --blue: #0b5cab;
  --blue-dark: #063a6b;
  --blue-soft: #eef6ff;
  --black: #020817;
  --shadow: 0 8px 22px rgba(2, 24, 48, 0.07);
  --radius: 14px;
  --max: 960px;
}

* { 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;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

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

.container { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--blue-dark);
  color: white;
  padding: 9px 12px;
  border-radius: 999px;
  z-index: 99;
}

.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand span:first-child { font-size: 0.98rem; }

.brand span:last-child {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 7px 9px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.hero {
  padding: 38px 0 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr;
  gap: 26px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 0.76rem;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
}

h1, h2, h3, h4 {
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin: 0;
}

h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--black);
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  margin-bottom: 12px;
}

h3 {
  font-size: 0.98rem;
  margin-bottom: 7px;
}

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

.lead {
  max-width: 600px;
  margin-top: 13px;
  font-size: 0.95rem;
  color: #304154;
}

.hero-actions, .section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 0.9rem;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 8px 20px rgba(11, 92, 171, 0.16);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
}

.btn-secondary { background: white; color: var(--blue-dark); }
.btn-secondary:hover { border-color: var(--blue); transform: translateY(-1px); }

.profile-card {
  position: relative;
  margin-inline: auto;
  max-width: 285px;
  padding: 11px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.profile-image-wrap {
  position: relative;
  min-height: 310px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(160deg, #edf7ff 0%, #ffffff 60%, #edf7ff 100%);
  border-radius: 13px;
  overflow: hidden;
}

.profile-image-wrap img {
  width: 88%;
  max-height: 300px;
  object-fit: contain;
  object-position: center bottom;
}

.card-badge {
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 230, 243, 0.9);
}

.card-badge strong { display: block; font-size: 0.92rem; }
.card-badge span { color: var(--muted); font-weight: 700; font-size: 0.86rem; }

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.info-tile {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.info-tile strong { display: block; color: var(--black); font-size: 0.95rem; }
.info-tile span { color: var(--muted); font-size: 0.86rem; }

.section { padding: 42px 0; }
.section-soft { background: var(--surface); }

.section-header { max-width: 700px; margin-bottom: 20px; }

.kicker {
  margin-bottom: 7px;
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }

.card, .document-card, .reference-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px;
  box-shadow: 0 4px 14px rgba(2, 24, 48, 0.04);
}

.card p:last-child, .document-card p:last-child { margin-bottom: 0; }

.feature-list { padding-left: 18px; margin: 12px 0 0; color: var(--muted); }
.feature-list li { margin: 6px 0; }

.document-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px;
}

.document-card + .document-card { margin-top: 20px; }

.doc-header {
  padding-bottom: 15px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.doc-header p { margin-bottom: 3px; }

.resume-section { margin-top: 21px; }

.timeline-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.timeline-date { color: var(--blue); font-weight: 900; font-size: 0.92rem; }
.timeline-title { color: var(--black); font-weight: 900; font-size: 1rem; }
.timeline-meta { color: var(--muted); font-weight: 700; margin-bottom: 6px; font-size: 0.92rem; }

.reference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.reference-card h3 { color: var(--blue-dark); }
.reference-card dl { margin: 12px 0 0; }
.reference-card dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 900;
  margin-top: 10px;
}
.reference-card dd { margin: 2px 0 0; color: var(--ink); font-weight: 700; }

.contact-strip {
  background: var(--black);
  color: white;
  border-radius: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow);
}

.contact-strip p { color: #cbd7e6; margin: 7px 0 0; }

.site-footer { padding: 22px 0; background: #020817; color: white; }
.footer-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #cbd7e6; font-size: 0.9rem; }
.footer-inner strong { color: white; }
.print-note { font-size: 0.9rem; color: var(--muted); }

.references-page main {
  display: flex;
}

.references-page .section-soft {
  flex: 1;
  display: flex;
  align-items: center;
}


@media (max-width: 940px) {
  .hero-grid, .card-grid, .card-grid.two, .reference-grid, .quick-info, .contact-strip { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .nav { align-items: flex-start; flex-direction: column; padding: 12px 0; }
  .nav-links { justify-content: flex-start; }
  .timeline-item { grid-template-columns: 1fr; gap: 5px; }
}

@media (max-width: 560px) {
  .container { width: min(var(--max), calc(100% - 26px)); }
  .document-card { padding: 20px; }
  .profile-image-wrap { min-height: 295px; }
  .profile-image-wrap img { width: 96%; }
  h1 { font-size: 2rem; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .section-actions, .contact-strip, .print-note { display: none !important; }
  body { background: white; color: black; }
  .section { padding: 0; }
  .document-card, .card, .reference-card { box-shadow: none; border: none; padding: 0; }
  .container { width: 100%; }
}
