:root {
  color-scheme: dark;
  --ink: #eff6ff;
  --muted: #a4b7cc;
  --accent: #8ef4d7;
  --accent-strong: #a8ffe6;
  --base: #080e17;
  --surface: #0c1725;
  --border: #273a4d;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --side: clamp(1.125rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; min-width: 0; background: var(--base); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #071711; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 5px; }

.shell { width: min(100% - 2 * var(--side), 73rem); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link { position: fixed; z-index: 5; top: .75rem; left: .75rem; padding: .625rem .875rem; transform: translateY(-200%); background: var(--accent); color: #071711; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 1; border-bottom: 1px solid var(--border); background: #080e17; }
.header-inner { min-height: 4.35rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: .75rem; font-size: .94rem; font-weight: 700; letter-spacing: .025em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.12rem;
  height: 2.12rem;
  border: 1px solid #416b6e;
  border-radius: .38rem;
  background: #142a34;
  color: var(--accent);
  font: 700 .77rem/1 var(--mono);
}
.brand-mark svg { width: 1rem; height: 1rem; }
.site-nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.4rem); color: var(--muted); font-size: .88rem; font-weight: 600; }
.site-nav a:hover, .header-action:hover { color: var(--accent-strong); }
.header-action { color: var(--accent); font-size: .88rem; font-weight: 650; white-space: nowrap; }

.hero {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 53%, #122b40 0%, #0b1624 44%, transparent 72%),
    var(--base);
}
.hero-grid {
  min-height: 31rem;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 1fr .9fr;
  align-items: center;
  gap: 2rem;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--accent);
  font: 650 .72rem/1.4 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before {
  flex: 0 0 .44rem;
  height: .44rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 .85rem #8ef4d772;
  content: "";
}
.hero h1 {
  margin-block: .88rem 1.45rem;
  font-size: clamp(3.25rem, 7.45vw, 7rem);
  line-height: .94;
  font-weight: 760;
  letter-spacing: -.083em;
}
.hero h1 em { display: block; color: var(--accent); font-style: normal; }
.hero-lede { max-width: 33rem; color: #bdcde0; font-size: clamp(1rem, 1.6vw, 1.16rem); line-height: 1.68; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: .43rem;
  font-size: .9rem;
  line-height: 1.3;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.button-primary { background: var(--accent); color: #082019; }
.button-primary:hover { background: #b9ffec; }
.button-secondary { border-color: #3a5067; background: #102030; color: var(--ink); }
.button-secondary:hover { border-color: #73c3c0; background: #193247; }

.hero-visual { position: relative; min-height: 24rem; display: grid; place-items: center; isolation: isolate; }
.radar-grid {
  position: absolute;
  z-index: -2;
  width: min(94%, 28rem);
  aspect-ratio: 1;
  border: 1px solid #6fb9d443;
  border-radius: 50%;
  background:
    linear-gradient(transparent calc(50% - .5px), #71bfdb3a 50%, transparent calc(50% + .5px)),
    linear-gradient(90deg, transparent calc(50% - .5px), #71bfdb3a 50%, transparent calc(50% + .5px)),
    repeating-radial-gradient(circle closest-side, transparent 0 24.5%, #71bfdb43 24.7% 25%),
    conic-gradient(from 5deg, transparent 3deg, #37728f27 52deg, transparent 83deg, transparent 360deg);
}
.radar-grid::before {
  position: absolute;
  inset: -7%;
  border: 1px dashed #6fb9d436;
  border-radius: 50%;
  content: "";
}
.radar-grid::after {
  position: absolute;
  inset: 7%;
  transform: rotate(-29deg);
  border: 1px solid transparent;
  border-top-color: #83e6d781;
  border-right-color: #83e6d750;
  border-radius: 50%;
  content: "";
}
.hero-jet {
  width: min(79%, 24rem);
  height: auto;
  transform: rotate(63deg);
  filter: drop-shadow(0 1.25rem 1rem #030914bf) drop-shadow(0 0 2.3rem #66cdda32);
}
.visual-label {
  position: absolute;
  color: #b3d8e9;
  font: 600 .65rem/1.6 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.visual-label { top: .35rem; left: .2rem; padding: .6rem .7rem; border-top: 1px solid #6198ae; border-left: 1px solid #6198ae; }
.visual-label span { display: block; }
.visual-label span:first-child { color: var(--accent); }
.hero-foot { position: relative; border-block: 1px solid var(--border); background: #0b1522; }
.hero-foot-inner {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  padding-block: .7rem;
  color: #a9bed1;
  font: 600 .67rem/1.55 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero-foot-inner strong { color: var(--accent); font-weight: inherit; }

.flight-section { padding-block: clamp(3.1rem, 7vw, 6rem); }
.section-heading { margin-bottom: 1.8rem; }
.section-heading h2, .footer-inner h2 {
  margin-block: .47rem .65rem;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1;
  font-weight: 750;
  letter-spacing: -.065em;
}
.flight-deck {
  padding: clamp(.95rem, 3.6vw, 2rem);
  border: 1px solid #30465a;
  border-radius: .7rem;
  background: radial-gradient(ellipse at 50% 0, #15293b, transparent 70%), #0d1928;
}
.deck-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.deck-label, .deck-count, .stage-kind, .stage-period, .waypoint-year {
  color: var(--muted);
  font: 600 .73rem/1.5 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.deck-label { display: inline-flex; align-items: center; gap: .55rem; color: var(--accent); }
.deck-label::before { width: .5rem; height: .5rem; border: 1px solid var(--accent); transform: rotate(45deg); content: ""; }
.flight-control { margin-top: .7rem; }
.rail { --position: 0%; --thumb-size: 3rem; position: relative; height: var(--thumb-size); }
.rail-track, .rail-fill {
  position: absolute;
  left: calc(var(--thumb-size) / 2);
  right: calc(var(--thumb-size) / 2);
  top: calc(50% - 1px);
  height: 2px;
  border-radius: 1px;
  pointer-events: none;
}
.rail-track {
  background: repeating-linear-gradient(90deg, #45647c 0 6px, transparent 6px 12px);
}
.rail-fill {
  width: auto;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
  background: var(--accent);
}
.rail-jet {
  position: absolute;
  left: var(--position);
  width: var(--thumb-size);
  height: var(--thumb-size);
  object-fit: contain;
  padding: .2rem;
  transform: translateX(calc(-1 * var(--position))) rotate(90deg);
  filter: drop-shadow(0 0 .4rem #8ef4d77a);
  pointer-events: none;
}
#flight-slider {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  cursor: grab;
  touch-action: pan-y;
}
#flight-slider:active { cursor: grabbing; }
#flight-slider::-webkit-slider-runnable-track { height: 100%; background: transparent; }
#flight-slider::-moz-range-track { height: 100%; background: transparent; }
#flight-slider::-webkit-slider-thumb { width: var(--thumb-size); height: var(--thumb-size); appearance: none; border: 0; background: transparent; }
#flight-slider::-moz-range-thumb { width: var(--thumb-size); height: var(--thumb-size); border: 0; background: transparent; }
.waypoints { display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.waypoint {
  display: flex;
  flex: 0 1 3rem;
  min-width: 0;
  min-height: 3.35rem;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: .25rem 0 .45rem;
  border: 0;
  border-radius: .25rem;
  background: transparent;
  color: #c7d5e4;
  text-align: center;
  cursor: pointer;
}
.waypoint-dot { width: .53rem; height: .53rem; margin-bottom: .2rem; border: 1px solid #839db3; border-radius: 50%; background: #182a3c; }
.waypoint-title { min-width: 4rem; font-size: .8rem; line-height: 1.2; font-weight: 650; }
.waypoint-year { display: block; min-width: 4rem; font-size: .66rem; letter-spacing: -.01em; }
.waypoint[aria-current="step"], .waypoint:hover { color: var(--accent-strong); }
.waypoint[aria-current="step"] .waypoint-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 .65rem #8ef4d773; }
.waypoint[aria-current="step"] .waypoint-year { color: var(--accent); }

.stage-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(8.5rem, .28fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 2.4rem);
  min-height: 16rem;
  margin-top: .9rem;
  padding: clamp(1.15rem, 4vw, 2.4rem);
  border: 1px solid var(--border);
  border-radius: .7rem;
  background: linear-gradient(105deg, #0e1c2b, #0b1523 58%);
}
.stage-meta { grid-row: span 2; display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: .55rem; padding-right: 1rem; border-right: 1px solid var(--border); }
.stage-index { color: var(--accent); font: 650 clamp(2.4rem, 5vw, 4.2rem)/1 var(--mono); letter-spacing: -.1em; }
.stage-kind { color: #d2deeb; font-size: .75rem; }
.stage-period { letter-spacing: .025em; }
.stage-content h3 { margin: 0 0 .2rem; font-size: clamp(1.55rem, 3vw, 2.6rem); line-height: 1.16; font-weight: 735; letter-spacing: -.035em; }
.stage-role { color: var(--accent); font-size: clamp(.94rem, 2vw, 1.1rem); font-weight: 670; }
.stage-location { margin-top: .17rem; color: var(--muted); font-size: .88rem; }
.stage-bullets, .cv-entry ul { display: grid; gap: .55rem; margin: .9rem 0 0; padding-left: 1.1rem; color: #c8d6e5; }
.stage-bullets li::marker, .cv-entry li::marker { color: var(--accent); }
.stage-nav { grid-column: 2; align-self: end; display: flex; justify-content: flex-end; gap: .5rem; }
.stage-arrow {
  min-height: 2.55rem;
  min-width: 2.7rem;
  padding: .35rem .7rem;
  border: 1px solid #405971;
  border-radius: .36rem;
  background: #132438;
  font-size: 1.05rem;
  font-weight: 650;
  cursor: pointer;
}
.stage-arrow:not([aria-disabled="true"]):hover { border-color: var(--accent); color: var(--accent); }
.stage-arrow[aria-disabled="true"] { opacity: .45; cursor: default; }
.cv-section { margin-top: clamp(2.9rem, 7vw, 5.6rem); padding-top: clamp(2.9rem, 7vw, 5.6rem); border-top: 1px solid var(--border); }
.cv-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.15rem; }
.full-cv { margin-top: 1.5rem; padding: clamp(1.05rem, 4vw, 2.1rem); border: 1px solid var(--border); border-radius: .6rem; background: var(--surface); }
.cv-group + .cv-group { margin-top: 2.5rem; }
.full-cv h3 { color: var(--accent); font-size: 1.35rem; letter-spacing: -.025em; }
.cv-entry { margin-block: 1rem; padding-block: 1rem 0; border-top: 1px solid var(--border); }
.cv-entry:last-child { margin-bottom: 0; }
.cv-entry h4 { margin: 0; font-size: 1.1rem; line-height: 1.35; }
.cv-entry p { color: var(--muted); }
.cv-entry .cv-entry-role { margin-top: .2rem; color: #cddbec; }
.cv-entry .cv-entry-period { font-size: .8rem; }

.site-footer { padding-block: clamp(2.6rem, 6vw, 4.4rem); border-top: 1px solid var(--border); background: #0d1928; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.35rem; font-style: normal; }
.contact-links a { padding: .6rem .85rem; border: 1px solid #405870; border-radius: .4rem; color: #e4effc; font-size: .88rem; overflow-wrap: anywhere; }
.contact-links a:hover { border-color: var(--accent); color: var(--accent); }
.footer-note { margin-top: 1.5rem; color: var(--muted); font-size: .8rem; }

@media (max-width: 820px) {
  .hero-grid { min-height: 0; gap: .85rem; }
  .hero-visual { min-height: 20rem; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 3.65rem; }
  .site-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.35rem; padding-block: 2.85rem 1.35rem; }
  .hero h1 { font-size: clamp(3.15rem, 12vw, 5.5rem); }
  .hero-visual { min-height: 16rem; }
  .radar-grid { width: min(72%, 20rem); }
  .hero-jet { width: min(65%, 16rem); }
  .visual-label { font-size: .55rem; }
  .stage-card { grid-template-columns: 1fr; }
  .stage-meta { grid-row: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; padding: 0 0 .85rem; border: 0; border-bottom: 1px solid var(--border); }
  .stage-index { font-size: 2rem; }
  .stage-nav { grid-column: 1; }
}

@media (max-width: 520px) {
  .rail { --thumb-size: 2.45rem; }
  .waypoint { flex-basis: 2.45rem; min-height: 2.8rem; }
  .waypoint-title { min-width: 0; font-size: .63rem; white-space: nowrap; }
  .waypoint-year { min-width: 0; font-size: .61rem; }
}

@media (max-width: 420px) {
  .waypoint-title { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .rail-track, .rail-fill { background: CanvasText; }
  .waypoint[aria-current="step"] .waypoint-dot { background: Highlight; }
  .button-primary { border: 1px solid ButtonText; }
}
