:root {
  --navy: #081726;
  --navy-soft: #0e2237;
  --surface: #112a43;
  --text: #f5f2e9;
  --muted: #b5c0ca;
  --gold: #b3a369;
  --gold-bright: #d6c88b;
  --line: rgba(255, 255, 255, 0.14);
  --header-bg: rgba(8, 23, 38, 0.88);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  --max-width: 1180px;
  --header-height: 4.75rem;
  color-scheme: dark;
}

[data-theme="light"] {
  --navy: #f7f5ef;
  --navy-soft: #ece9df;
  --surface: #ffffff;
  --text: #10273d;
  --muted: #536474;
  --gold: #8b7338;
  --gold-bright: #6f581f;
  --line: rgba(16, 39, 61, 0.16);
  --header-bg: rgba(247, 245, 239, 0.9);
  --shadow: 0 24px 60px rgba(20, 35, 50, 0.1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  transition: background-color 180ms ease, color 180ms ease;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-shell { min-height: 100vh; overflow: clip; }
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-height); padding: 0 5vw;
  background: var(--header-bg); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.brand { display: inline-flex; gap: .7rem; align-items: center; font-family: Georgia, serif; font-size: 1.14rem; font-weight: 700; text-decoration: none; }
.brand-mark { width: .62rem; height: .62rem; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 16%, transparent); }
.header-actions, .site-nav { display: flex; align-items: center; }
.header-actions { gap: 1.35rem; }
.site-nav { gap: clamp(1rem, 2.5vw, 2.3rem); }
.site-nav a { position: relative; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.5rem; height: 2px; background: var(--gold); transition: right 180ms ease; }
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.theme-toggle, .menu-toggle { border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.theme-toggle { width: 2.4rem; height: 2.4rem; border-radius: 50%; font-size: 1rem; }
.menu-toggle { display: none; padding: .55rem .75rem; border-radius: .3rem; font: inherit; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
main, .site-footer { width: min(var(--max-width), 90vw); margin: 0 auto; }
.hero { width: min(1320px, calc(100vw - 4rem)); min-height: 100vh; margin-left: calc((min(1320px, calc(100vw - 4rem)) - 100%) / -2); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); gap: clamp(2.5rem, 4vw, 4rem); align-items: center; padding: 9rem 0 6rem; }
.eyebrow, .item-label, .section-number { margin: 0 0 1.25rem; color: var(--gold-bright); font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.eyebrow { font-size: 1.125rem; letter-spacing: -.055em; }
.eyebrow-line { display: block; overflow-wrap: break-word; }
.eyebrow-line + .eyebrow-line { margin-top: .35rem; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
.hero h1 { max-width: 1050px; margin-bottom: 1.75rem; font-size: clamp(3rem, 4.5vw, 4.5rem); font-weight: 500; line-height: .98; letter-spacing: -.025em; }
.hero-intro { max-width: 690px; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.2rem); }
.hero-identity { display: flex; flex-wrap: wrap; gap: .25rem .65rem; align-items: baseline; margin-bottom: 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.identity-name { color: var(--text); font-family: Georgia, "Times New Roman", "Noto Serif CJK SC", "Songti SC", SimSun, serif; font-weight: 700; white-space: nowrap; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .7rem 1.1rem; border: 1px solid transparent; border-radius: .2rem; font-size: .82rem; font-weight: 750; text-decoration: none; transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #071522; }
[data-theme="light"] .button-primary { color: #fff; }
.button-secondary { border-color: var(--gold); color: var(--gold-bright); }
.button-text { padding-inline: .45rem; color: var(--muted); }
.disabled-link { cursor: not-allowed; opacity: .72; }
.portrait-wrap { width: min(420px, 100%); align-self: center; justify-self: end; }
.portrait-image { display: block; width: 100%; height: 520px; object-fit: cover; object-position: 50% 30%; border: 1px solid var(--line); box-shadow: var(--shadow); }
.content-section { padding: clamp(6rem, 11vw, 10rem) 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; gap: 1.25rem; align-items: baseline; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-heading .section-number { margin: 0; }
.section-heading h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.6rem); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(3rem, 9vw, 8rem); }
.prose { color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.25rem); }
.education > h2 { margin-bottom: 2rem; font-family: inherit; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; }
.education-item { padding: 0 0 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.education-item h3 { margin-bottom: .4rem; font-size: 1.28rem; }
.education-item p { margin-bottom: .3rem; color: var(--muted); }
.timeline { position: relative; max-width: 1040px; margin-left: clamp(1rem, 4vw, 3rem); }
.timeline::before { content: ""; position: absolute; top: .5rem; bottom: .5rem; left: 7px; width: 1px; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 1rem 1fr; gap: 2rem; padding-bottom: 4rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker { z-index: 1; width: 15px; height: 15px; margin-top: .45rem; background: var(--navy); border: 3px solid var(--gold); border-radius: 50%; }
.timeline-content { padding-left: 1rem; }
.timeline-content h3, .featured-project h2 { margin-bottom: .4rem; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.experience-group + .experience-group { margin-top: clamp(4rem, 8vw, 6rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.experience-group-title { margin: 0 0 2rem; color: var(--gold-bright); font-family: inherit; font-size: .8rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.role { color: var(--muted); }
.timeline-content > p:not(.item-label):not(.role):not(.experience-role) { max-width: 760px; color: var(--muted); }
.experience-role { margin-bottom: .15rem; color: var(--text); font-weight: 700; }
.experience-date { margin-bottom: .8rem; }
.research-project { margin-bottom: 1rem; }
.research-project strong { color: var(--text); }
.dash-list { max-width: 800px; padding: 0; margin: .75rem 0 0; color: var(--muted); list-style: none; }
.dash-list li { position: relative; padding-left: 1.25rem; }
.dash-list li + li { margin-top: .65rem; }
.dash-list li::before { content: "–"; position: absolute; left: 0; color: var(--gold-bright); }
.experience-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .5rem; }
.experience-actions .button { min-width: 9rem; }
.featured-project { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--navy-soft); border: 1px solid var(--line); box-shadow: var(--shadow); }
.featured-project + .featured-project { margin-top: 2rem; }
.project-media { min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.project-visual { width: 100%; max-width: 100%; aspect-ratio: 4 / 3; margin: 0; padding: 0; }
.route-visual { position: relative; display: block; color: inherit; text-decoration: none; transition: transform 180ms ease; }
.route-visual:hover { transform: translateY(-2px); }
.route-visual:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; }
.route-canvas { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(2rem, 5vw, 3.5rem); padding: clamp(1.5rem, 4vw, 3rem); background-color: var(--surface); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 38px 38px; border: 1px solid var(--line); }
.route-kicker { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-align: center; }
.route-itinerary { --atl-x: clamp(2rem, 8%, 3rem); --bos-inset: clamp(3rem, 16%, 5rem); position: relative; width: 100%; height: calc(clamp(1.8rem, 4vw, 3.6rem) + 2.1rem); }
.route-stop { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; transform: translateX(-50%); }
.route-stop:nth-child(1) { left: var(--atl-x); }
.route-stop:nth-child(3) { left: 50%; }
.route-stop:nth-child(5) { left: calc(100% - var(--bos-inset)); }
.route-stop strong { font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.03em; }
.route-stop-connection strong { color: var(--gold-bright); }
.route-dot { position: relative; z-index: 2; width: .8rem; height: .8rem; background: var(--surface); border: 3px solid var(--gold); border-radius: 50%; transition: background-color 180ms ease, box-shadow 180ms ease; }
.route-stop-connection .route-dot { width: 1rem; height: 1rem; background: var(--gold); box-shadow: 0 0 0 7px color-mix(in srgb, var(--gold) 18%, transparent); }
.route-leg { position: absolute; top: calc(clamp(1.8rem, 4vw, 3.6rem) + 1rem); height: 1rem; }
.route-leg:nth-child(2) { left: var(--atl-x); right: 50%; }
.route-leg:nth-child(4) { left: 50%; right: var(--bos-inset); }
.route-track { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 48%, var(--muted)), var(--gold)); transition: filter 180ms ease; }
.route-track::after { content: ""; position: absolute; top: -3px; right: 0; width: 7px; height: 7px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); transform: rotate(45deg); }
.route-plane { position: absolute; z-index: 3; top: 50%; left: 50%; color: var(--gold-bright); font-size: 1rem; line-height: 1; transform: translate(-50%, -50%) rotate(6deg); transition: transform 180ms ease; }
.route-visual:hover .route-plane { transform: translate(calc(-50% + 4px), -50%) rotate(6deg); }
.route-visual:hover .route-track { filter: brightness(1.25); }
.route-visual:hover .route-dot { background: var(--gold); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 14%, transparent); }
.aircraft-image-link { display: flex; align-items: center; justify-content: center; color: inherit; text-decoration: none; transition: transform 180ms ease; }
.aircraft-image-link:hover { transform: translateY(-2px); }
.aircraft-image-link:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; }
.aircraft-image-link img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.project-copy { padding: clamp(2rem, 5vw, 4.5rem); align-self: center; }
.project-copy > p, .coming-soon p { color: var(--muted); }
.project-copy .button-row { margin-top: 1.5rem; }
.power-bi-project { grid-template-columns: 1fr; }
.power-bi-project .project-copy { width: 100%; max-width: 900px; justify-self: center; text-align: center; }
.power-bi-project .button-row { justify-content: center; }
.coming-soon { display: flex; gap: 1.25rem; align-items: center; margin-top: 2rem; padding: 2rem; border: 1px dashed var(--line); }
.coming-soon > span { color: var(--gold); font-size: 2rem; }
.coming-soon h2, .coming-soon p { margin-bottom: 0; }
.contact-section { padding: clamp(7rem, 13vw, 12rem) 0; border-top: 1px solid var(--line); }
.contact-inner { max-width: 900px; }
.contact-inner h2 { margin-bottom: 1.5rem; font-size: clamp(3.3rem, 8vw, 7.5rem); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
.contact-section > div > p:not(.section-number) { max-width: 630px; color: var(--muted); font-size: 1.15rem; }
.contact-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3rem; background: var(--line); border: 1px solid var(--line); }
.contact-links a { display: flex; min-height: 7rem; flex-direction: column; align-items: flex-start; justify-content: center; padding: 1.35rem; background: var(--navy); text-decoration: none; transition: background 160ms ease; }
.contact-links a:hover { background: var(--navy-soft); }
.contact-heading { display: inline-flex; align-items: center; gap: .65rem; color: var(--gold-bright); }
.contact-heading span { font-size: .68rem; font-weight: 800; line-height: 1; letter-spacing: .14em; }
.contact-icon { display: inline-flex; width: 24px; height: 24px; flex: 0 0 24px; align-items: center; justify-content: center; color: var(--gold-bright); font-size: 20px; line-height: 1; }
.contact-links strong { margin-top: .4rem; font-size: .9rem; overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: space-between; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } .route-visual:hover, .route-visual:hover .route-plane, .aircraft-image-link:hover { transform: none; } }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 5vw; background: var(--navy); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .9rem 0; }
  .hero { width: auto; margin-left: 0; grid-template-columns: 1fr; min-height: auto; padding-top: 9rem; }
  .portrait-wrap { justify-self: start; }
  .portrait-image { height: auto; aspect-ratio: 4 / 5; }
  .about-grid, .featured-project { grid-template-columns: 1fr; }
  .project-media { height: auto; padding: 1rem; }
}
@media (max-width: 640px) {
  .site-header { padding-inline: 1rem; }
  .brand { font-size: 1rem; }
  .header-actions { gap: .55rem; }
  main, .site-footer { width: min(100% - 2rem, var(--max-width)); }
  .hero { gap: 3rem; padding-bottom: 5rem; }
  h1 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .eyebrow { font-size: .875rem; }
  .button-row .button { flex: 1 1 45%; }
  .route-canvas { gap: 2rem; padding: 1.25rem; }
  .timeline-item { gap: 1rem; }
  .timeline { margin-left: 0; }
  .timeline-content { padding-left: .3rem; }
  .experience-actions .button { flex: 1 1 9rem; }
  .contact-links { grid-template-columns: 1fr; }
  .project-copy { padding: 2rem 1.25rem; }
  .contact-links { gap: 1px; }
}
