:root {
  color-scheme: light;
  --paper: #f6f7f2;
  --ink: #202b29;
  --muted: #66716d;
  --line: #dce1db;
  --green: #2f7259;
  --green-light: #dcebe1;
  --coral: #e66c4e;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--green); color: white; }
.mono { font-family: var(--mono); }
.section-wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: -50px; left: 16px; z-index: 20; padding: 10px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }

.topbar { height: 76px; padding: 0 max(32px, calc((100vw - 1120px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 21px; font-weight: 800; letter-spacing: 0; }
.wordmark span, .heading-mark { color: var(--coral); }
.topbar nav { display: flex; gap: 35px; margin-left: 80px; }
.topbar nav a, .top-contact { font-size: 12px; font-weight: 700; }
.topbar nav a { color: var(--muted); transition: color .2s ease; }
.topbar nav a:hover, .top-contact:hover, .social-links a:hover { color: var(--green); }
.top-contact span { margin-left: 8px; color: var(--coral); }

.hero { position: relative; min-height: 650px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 60px; padding-top: 58px; padding-bottom: 96px; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 5px; }
.eyebrow { margin: 0 0 21px; color: var(--green); font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #71a787; box-shadow: 0 0 0 3px #71a78722; vertical-align: 1px; }
.eyebrow-separator { margin: 0 9px; color: #a4aca7; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 610px; margin-bottom: 22px; font-size: clamp(47px, 5.3vw, 72px); font-weight: 600; line-height: 1.07; letter-spacing: 0; }
.highlight { color: var(--green); }
.hero-intro { max-width: 475px; margin-bottom: 28px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 48px; align-items: center; gap: 25px; padding: 0 19px; font-size: 12px; font-weight: 700; transition: background .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: var(--green); }
.button span { color: #a9d6b8; font-size: 16px; }
.text-link { font-size: 11px; font-weight: 700; }
.text-link span { margin-left: 4px; color: var(--coral); }
.hero-meta { display: flex; gap: 12px; margin-top: 52px; color: #89938e; font-size: 9px; }
.hero-meta span:nth-child(even) { color: var(--coral); }
.hero-visual { position: relative; min-height: 455px; display: flex; align-items: center; justify-content: flex-end; }
.hero-visual::before { position: absolute; top: 15px; right: 0; width: 86%; height: 90%; border: 1px solid #dce1db; content: ""; background-image: linear-gradient(#dce1db66 1px, transparent 1px), linear-gradient(90deg, #dce1db66 1px, transparent 1px); background-size: 25px 25px; }
.code-window { position: absolute; z-index: 2; top: 21px; left: 0; width: 88%; background: #24312e; color: #ecf1ea; box-shadow: 0 16px 38px #1e2c2826; animation: arrive .65s ease-out both; }
.window-bar, .window-foot { height: 37px; display: flex; align-items: center; justify-content: space-between; padding-inline: 13px; color: #a3b2a8; font-size: 9px; }
.window-bar { border-bottom: 1px solid #ffffff12; }
.window-dots { display: flex; gap: 4px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #e4775e; }
.window-dots i:nth-child(2) { background: #d9b866; }
.window-dots i:nth-child(3) { background: #74a986; }
.window-index { color: #70827a; }
.code-sample { overflow-x: auto; margin: 0; padding: 23px 20px 20px; font-family: var(--mono); font-size: 11px; line-height: 2.15; }
.code-muted { color: #82948a; }
.code-purple { color: #ce9cdb; }
.code-yellow { color: #e6ca82; }
.code-blue { color: #83c8c0; }
.window-foot { border-top: 1px solid #ffffff12; font-size: 8px; }
.window-foot span:last-child { color: #9ccea6; }
.portrait-frame { position: absolute; z-index: 3; right: 15px; bottom: 24px; width: 54%; margin: 0; padding: 8px; background: var(--paper); box-shadow: 0 15px 35px #202b2920; transform: rotate(2deg); animation: arrive .75s .12s ease-out both; }
.portrait-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; filter: saturate(.82); }
.portrait-frame figcaption { padding: 9px 2px 2px; font-size: 8px; }
.portrait-frame figcaption span { color: #98a19b; }
.visual-note { position: absolute; right: -3px; bottom: 4px; color: #89938e; font-size: 8px; writing-mode: vertical-rl; }
.hero-bottom { position: absolute; right: 0; bottom: 28px; left: 0; display: flex; align-items: center; gap: 13px; color: #89938e; font-size: 8px; }
.hero-bottom span:last-child { margin-left: auto; }
.scroll-line { width: 38px; height: 1px; background: var(--coral); }

.now-strip { background: var(--green-light); }
.now-inner { min-height: 66px; display: flex; align-items: center; gap: 22px; }
.strip-label, .strip-date { color: var(--green); font-size: 9px; }
.now-inner p { margin: 0; font-size: 13px; font-weight: 700; }
.now-inner p span { color: var(--green); }
.strip-date { margin-left: auto; }
.section-block { padding-top: 105px; padding-bottom: 110px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; column-gap: 40px; margin-bottom: 58px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 16px; }
.section-heading h2, .research-heading h2, .contact-section h2 { margin: 0; font-size: clamp(35px, 4vw, 48px); font-weight: 600; line-height: 1.14; letter-spacing: 0; }
.section-lede { max-width: 355px; margin: 0 0 5px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 205px 1fr; gap: 26px; padding: 30px 0 32px; border-bottom: 1px solid var(--line); }
.timeline-date { padding-top: 6px; color: #89938e; font-size: 9px; }
.timeline-content h3 { margin: 0 0 5px; font-size: 17px; font-weight: 700; }
.role-line { display: flex; align-items: center; gap: 11px; }
.role-line h3 { margin: 0; }
.role-tag { padding: 3px 7px; background: var(--green-light); color: var(--green); font-size: 8px; }
.company { margin: 0 0 15px; color: var(--green); font-size: 11px; font-weight: 700; }
.company span { color: #929b96; font-weight: 500; }
.timeline-content ul { margin: 0 0 16px; padding-left: 17px; color: #66716d; font-size: 12px; line-height: 1.8; }
.timeline-content li { padding-left: 3px; }
.timeline-content li::marker { color: var(--coral); }
.certificate-link { color: var(--green); text-decoration: underline; text-decoration-color: #9eb9a7; text-underline-offset: 3px; }
.certificate-link:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { padding: 4px 8px; border: 1px solid var(--line); color: #66716d; font-family: var(--mono); font-size: 8px; }
.timeline-item.compact { padding-block: 21px; }
.timeline-item.compact h3 { margin: 0 0 5px; font-size: 14px; }
.company-inline { color: var(--green); font-weight: 500; }
.timeline-item.compact p { margin: 0; color: var(--muted); font-size: 11px; }

.research-band { padding: 96px 0 101px; background: #26332f; color: #edf1ea; }
.research-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 72px; }
.research-heading .eyebrow { color: #9ac5a5; }
.research-heading h2 { margin-bottom: 20px; }
.research-heading > p:not(.eyebrow) { max-width: 330px; margin-bottom: 25px; color: #aeb9b1; font-size: 12px; line-height: 1.9; }
.light-link { color: #e8eee8; }
.publication-list { border-top: 1px solid #ffffff2b; }
.publication { display: grid; grid-template-columns: 62px 1fr 20px; gap: 15px; padding: 23px 0; border-bottom: 1px solid #ffffff2b; }
.publication-year { color: #a9cdb1; font-size: 10px; }
.publication-year i { display: block; margin-top: 4px; color: #718079; font-size: 8px; font-style: normal; }
.publication h3 { max-width: 520px; margin: 0 0 7px; font-size: 13px; font-weight: 600; line-height: 1.65; }
.publication p { margin: 0 0 11px; color: #aeb9b1; font-size: 10px; }
.publication-type { color: #84ad8f; font-size: 8px; }
.publication-arrow { color: var(--coral); font-size: 14px; }
.about-section { padding-top: 101px; padding-bottom: 103px; }
.about-section .section-heading { display: block; margin-bottom: 41px; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 82px; }
.about-copy > p { max-width: 450px; color: var(--muted); font-size: 12px; line-height: 2; }
.language-row { display: flex; gap: 19px; align-items: baseline; margin-top: 27px; padding-top: 17px; border-top: 1px solid var(--line); }
.language-row > span { flex: 0 0 auto; color: var(--green); font-size: 8px; }
.language-row p { margin: 0; font-size: 11px; font-weight: 700; }
.language-row p span { color: #8b9690; font-size: 9px; font-weight: 400; }
.language-row p i { display: inline-block; width: 3px; height: 3px; margin: 0 9px 3px; border-radius: 50%; background: var(--coral); }
.toolkit { border-top: 1px solid var(--line); }
.toolkit-group { padding: 15px 0 17px; border-bottom: 1px solid var(--line); }
.toolkit-group h3 { margin: 0 0 8px; color: var(--green); font-size: 8px; font-weight: 500; }
.toolkit-group p { margin: 0; color: var(--ink); font-size: 11px; line-height: 1.9; }
.toolkit-group p span { color: var(--coral); }

.education-band { padding: 65px 0 70px; background: #e9eee7; }
.education-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 35px 45px; }
.education-grid > div:first-child { grid-row: span 2; }
.education-grid .eyebrow { margin-bottom: 12px; }
.education-grid h2 { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.2; }
.education-item > span { color: var(--green); font-size: 9px; }
.education-item h3 { margin: 8px 0 4px; font-size: 13px; }
.education-item p { margin: 0 0 5px; color: var(--muted); font-size: 10px; }
.education-item p b { color: var(--green); font-weight: 600; }
.education-item small { color: #87918a; font-size: 9px; }
.contact-section { padding-top: 91px; padding-bottom: 87px; }
.contact-section .eyebrow { margin-bottom: 13px; }
.contact-section h2 { font-size: clamp(39px, 5vw, 58px); }
.contact-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; }
.social-links { display: flex; gap: 25px; }
.social-links a { font-size: 11px; font-weight: 700; }
.social-links span { margin-left: 4px; color: var(--coral); }
.footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; color: #7d8982; font-size: 9px; }
.footer-inner .wordmark { color: var(--ink); font-family: var(--sans); font-size: 17px; }
.footer-inner .mono { font-size: 8px; }

@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 800px) {
  .section-wrap { width: min(100% - 42px, 620px); }
  .topbar { height: 66px; padding-inline: 21px; }
  .topbar nav { gap: 20px; margin-left: 0; }
  .topbar nav a { font-size: 10px; }
  .top-contact { font-size: 10px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 18px; padding-top: 66px; padding-bottom: 78px; }
  .hero h1 { max-width: 570px; font-size: clamp(46px, 9vw, 67px); }
  .hero-visual { min-height: 420px; width: min(100%, 520px); margin: 0 auto; }
  .code-window { width: 82%; }
  .portrait-frame { width: 47%; }
  .hero-bottom { bottom: 25px; }
  .section-block { padding-top: 75px; padding-bottom: 80px; }
  .research-band { padding: 75px 0; }
  .research-layout { grid-template-columns: 1fr; gap: 38px; }
  .research-heading > p:not(.eyebrow) { max-width: 500px; }
  .about-grid { grid-template-columns: 1fr; gap: 35px; }
  .about-copy > p { max-width: 600px; }
  .education-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .education-grid > div:first-child { grid-row: auto; }
}
@media (max-width: 520px) {
  body { font-size: 14px; }
  .section-wrap { width: calc(100% - 38px); }
  .topbar { padding-inline: 19px; }
  .topbar nav { gap: 13px; }
  .topbar nav a { font-size: 9px; }
  .top-contact { font-size: 0; }
  .top-contact span { font-size: 16px; }
  .hero { padding-top: 49px; }
  .hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-intro { font-size: 13px; }
  .hero-actions { gap: 16px; }
  .text-link { font-size: 10px; }
  .hero-meta { flex-wrap: wrap; gap: 8px; margin-top: 35px; font-size: 8px; }
  .hero-visual { min-height: 345px; }
  .hero-visual::before { width: 90%; height: 87%; background-size: 20px 20px; }
  .code-window { top: 15px; width: 91%; }
  .code-sample { padding: 17px 13px; font-size: 9px; }
  .window-bar, .window-foot { padding-inline: 9px; font-size: 8px; }
  .portrait-frame { right: 4px; bottom: 23px; width: 48%; padding: 6px; }
  .portrait-frame figcaption { font-size: 7px; }
  .visual-note { right: -7px; font-size: 7px; }
  .now-inner { min-height: 72px; gap: 10px; flex-wrap: wrap; padding-block: 12px; }
  .strip-label, .strip-date { font-size: 8px; }
  .now-inner p { width: calc(100% - 91px); margin-left: auto; text-align: right; font-size: 10px; }
  .strip-date { margin-left: 0; }
  .section-heading { display: block; margin-bottom: 37px; }
  .section-heading .eyebrow { margin-bottom: 16px; }
  .section-heading h2, .research-heading h2 { font-size: 37px; }
  .section-lede { margin-top: 17px; font-size: 12px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; padding-block: 22px; }
  .timeline-date { padding: 0; font-size: 8px; }
  .timeline-content h3 { font-size: 15px; }
  .timeline-content ul { font-size: 11px; }
  .timeline-item.compact h3 { font-size: 13px; line-height: 1.6; }
  .timeline-item.compact p { font-size: 10px; }
  .research-band { padding: 64px 0; }
  .publication { grid-template-columns: 42px 1fr 13px; gap: 9px; padding-block: 18px; }
  .publication h3 { font-size: 11px; }
  .publication p { font-size: 9px; line-height: 1.7; }
  .publication-type { font-size: 7px; }
  .about-section { padding-block: 65px; }
  .about-section .section-heading { margin-bottom: 30px; }
  .about-copy > p { font-size: 11px; }
  .language-row { gap: 10px; }
  .language-row > span { font-size: 7px; }
  .language-row p { font-size: 10px; }
  .education-band { padding-block: 50px; }
  .education-grid { grid-template-columns: 1fr; gap: 23px; }
  .education-grid h2 { font-size: 28px; }
  .contact-section { padding-block: 66px; }
  .contact-section h2 { font-size: 42px; }
  .contact-bottom { align-items: flex-start; gap: 22px; flex-direction: column; }
  .footer-inner { min-height: 66px; }
  .footer-inner .mono { display: none; }
}