:root {
  --bg: #ffffff;
  --bg-soft: #f5f9fc;
  --bg-blue: #eef6fb;
  --text: #101820;
  --muted: #596775;
  --soft-text: #7a8794;
  --line: #dbe5ee;
  --line-strong: #b9cad8;
  --accent: #0b67a3;
  --accent-dark: #084c78;
  --accent-soft: #dbeefa;
  --success: #1f7a55;
  --shadow: 0 18px 45px rgba(16, 24, 32, 0.10);
  --shadow-soft: 0 12px 28px rgba(16, 24, 32, 0.08);
  --radius: 8px;
  --shell: 1180px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

::selection {
  color: #ffffff;
  background: var(--accent);
}

.shell {
  width: calc(100% - 48px);
  max-width: var(--shell);
  margin: 0 auto;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--accent-dark);
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 229, 238, 0.8);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(16, 24, 32, 0.07);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #ffffff;
  background: var(--text);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
}

.brand-text {
  font-size: 15px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  padding: 9px 12px;
  color: var(--muted);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: var(--bg-soft);
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-action {
  color: #ffffff;
  background: var(--accent);
}

.nav-action:hover,
.button.primary:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
  box-shadow: var(--shadow-soft);
}

.nav-action svg,
.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--bg-soft);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-line,
.menu-line::before,
.menu-line::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-line {
  position: relative;
}

.menu-line::before,
.menu-line::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-line::before {
  transform: translateY(-6px);
}

.menu-line::after {
  transform: translateY(6px);
}

.nav-open .menu-line {
  transform: rotate(45deg);
}

.nav-open .menu-line::before {
  transform: translateY(0) rotate(90deg);
}

.nav-open .menu-line::after {
  opacity: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 50px;
  background:
    linear-gradient(180deg, rgba(238, 246, 251, 0.76), rgba(255, 255, 255, 0.92) 46%, #ffffff 100%);
}

.route-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.route-map svg {
  width: 100%;
  height: 100%;
}

.route-map path {
  fill: none;
  stroke: rgba(11, 103, 163, 0.16);
  stroke-width: 2;
  stroke-dasharray: 10 14;
}

.route-map .route-line-soft {
  stroke: rgba(16, 24, 32, 0.08);
}

.route-map circle {
  fill: #ffffff;
  stroke: rgba(11, 103, 163, 0.22);
  stroke-width: 2;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 390px;
  grid-template-areas:
    "copy portrait"
    "proof proof";
  gap: 48px 64px;
  align-items: center;
}

.hero-copy {
  grid-area: copy;
}

.role-line {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 20px;
  max-width: 820px;
  font-size: 76px;
  line-height: 0.98;
  font-weight: 850;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

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

.button.primary {
  color: #ffffff;
  background: var(--accent);
}

.button.secondary {
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
}

.button.secondary:hover,
.button.quiet:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.button.quiet {
  color: var(--accent-dark);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.portrait-frame {
  grid-area: portrait;
  margin: 0;
  justify-self: end;
}

.portrait-frame img {
  width: 360px;
  height: 365px;
  object-fit: cover;
  border: 1px solid rgba(185, 202, 216, 0.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portrait-frame figcaption {
  display: grid;
  gap: 4px;
  width: 314px;
  margin: -34px auto 0;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.portrait-frame figcaption span {
  color: var(--soft-text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.portrait-frame figcaption strong {
  font-size: 15px;
  line-height: 1.3;
}

.hero-proof {
  grid-area: proof;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-proof div {
  min-height: 104px;
  padding: 22px 22px 18px;
  border-right: 1px solid var(--line);
}

.hero-proof div:last-child {
  border-right: 0;
}

.hero-proof span {
  display: block;
  margin-bottom: 7px;
  color: var(--soft-text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-proof strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
}

.section {
  padding: 98px 0;
}

.profile-section {
  background: #ffffff;
}

.two-column,
.aviation-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: start;
}

.section-heading {
  max-width: 690px;
}

.section-heading.wide {
  max-width: 850px;
}

.section-index {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

h2 {
  margin-bottom: 18px;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 850;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 850;
}

.section-heading p,
.profile-copy p,
.value-card p,
.timeline-body li,
.credential-card p,
.contact-copy p {
  color: var(--muted);
}

.profile-copy p {
  margin-bottom: 18px;
  font-size: 18px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 54px;
}

.value-card,
.credential-card,
.skill-panel,
.education-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(16, 24, 32, 0.02);
}

.value-card {
  padding: 26px;
}

.card-number {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.value-card p {
  margin-bottom: 0;
}

.experience-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 44px;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 226px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.timeline-item::before {
  position: absolute;
  top: 20px;
  left: 219px;
  width: 15px;
  height: 15px;
  background: var(--accent);
  border: 3px solid var(--bg-soft);
  border-radius: 50%;
  content: "";
}

.timeline-date {
  padding-top: 14px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 850;
}

.timeline-body {
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.timeline-company {
  margin-bottom: 16px;
  color: var(--soft-text);
  font-size: 14px;
  font-weight: 800;
}

.timeline-body ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.aviation-section {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.aviation-section::before {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(238, 246, 251, 0.92), rgba(255, 255, 255, 0.2)),
    repeating-linear-gradient(135deg, rgba(11, 103, 163, 0.055) 0 1px, transparent 1px 18px);
  content: "";
}

.aviation-layout {
  position: relative;
  z-index: 1;
}

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

.credential-card {
  padding: 22px;
}

.credential-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.credential-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
}

.credential-card p {
  margin-bottom: 0;
  font-size: 15px;
}

.skills-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.skill-panel,
.education-panel {
  padding: 24px;
}

.education-panel {
  grid-column: span 3;
}

.tag-list,
.language-list,
.education-panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-list li {
  padding: 8px 10px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}

.language-list {
  display: grid;
  gap: 14px;
}

.language-list li {
  display: grid;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.language-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.language-list span,
.education-panel small {
  color: var(--muted);
  font-size: 14px;
}

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

.education-panel li {
  display: grid;
  gap: 7px;
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.education-panel li span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.education-panel li strong {
  line-height: 1.3;
}

.contact-section {
  padding: 88px 0;
  color: #ffffff;
  background: var(--text);
}

.contact-layout {
  align-items: center;
}

.contact-copy h2,
.contact-copy p,
.contact-copy .section-index {
  color: #ffffff;
}

.contact-copy p:not(.section-index) {
  color: rgba(255, 255, 255, 0.72);
}

.contact-actions {
  justify-content: flex-end;
}

.contact-section .button.secondary {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.24);
}

.contact-section .button.quiet {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.site-footer {
  padding: 26px 0;
  background: #0b1117;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 14px;
  color: #ffffff;
  background: var(--success);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

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

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: auto 1fr auto;
    justify-content: initial;
    gap: 14px;
  }

  .menu-button {
    display: inline-flex;
    order: 3;
    justify-self: end;
  }

  .nav-action {
    order: 2;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 20px;
    left: 20px;
    display: grid;
    gap: 8px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero-grid,
  .two-column,
  .aviation-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-areas:
      "copy"
      "portrait"
      "proof";
    gap: 38px;
  }

  .portrait-frame {
    justify-self: start;
  }

  .hero-proof,
  .value-grid,
  .credential-grid,
  .skills-layout,
  .education-panel ol {
    grid-template-columns: 1fr 1fr;
  }

  .education-panel {
    grid-column: span 2;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 38px;
  }

  .timeline-item::before {
    left: 3px;
  }

  .timeline-date {
    padding-top: 0;
  }

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

@media (max-width: 720px) {
  :root {
    --header-height: 68px;
  }

  body {
    font-size: 16px;
  }

  .shell {
    width: calc(100% - 32px);
  }

  .brand-text {
    display: none;
  }

  .nav-action {
    min-height: 40px;
    padding: 10px 12px;
  }

  .hero {
    padding: 48px 0 36px;
  }

  h1 {
    font-size: 42px;
    line-height: 1.02;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: 33px;
    line-height: 1.12;
  }

  h3 {
    font-size: 19px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .portrait-frame img {
    width: min(100%, 360px);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .portrait-frame figcaption {
    width: calc(100% - 32px);
    margin-top: 8px;
  }

  .hero-proof,
  .value-grid,
  .credential-grid,
  .skills-layout,
  .education-panel ol {
    grid-template-columns: 1fr;
  }

  .hero-proof div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-proof div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 70px 0;
  }

  .timeline-body {
    padding: 20px;
  }

  .education-panel {
    grid-column: span 1;
  }

  .footer-layout {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    --text: #000000;
    --muted: #252525;
    --line: #d0d0d0;
  }

  body {
    font-size: 12px;
    line-height: 1.45;
    color: #000000;
    background: #ffffff;
  }

  .site-header,
  .hero-actions,
  .route-map,
  .contact-actions,
  .site-footer,
  .toast {
    display: none !important;
  }

  .shell {
    width: 100%;
  }

  .hero,
  .section,
  .contact-section {
    padding: 22px 0;
    color: #000000;
    background: #ffffff !important;
  }

  .hero-grid,
  .two-column,
  .aviation-layout,
  .contact-layout,
  .skills-layout,
  .education-panel ol {
    display: block;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 15px;
  }

  .hero-lede,
  .profile-copy p {
    font-size: 12px;
  }

  .portrait-frame,
  .hero-proof,
  .value-grid {
    display: none;
  }

  .timeline,
  .credential-grid {
    display: block;
    margin-top: 16px;
  }

  .timeline::before,
  .timeline-item::before {
    display: none;
  }

  .timeline-item {
    display: block;
    padding-left: 0;
    margin-bottom: 10px;
  }

  .timeline-body,
  .value-card,
  .credential-card,
  .skill-panel,
  .education-panel,
  .education-panel li {
    padding: 10px 0;
    border: 0;
    box-shadow: none;
  }

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