@layer reset, base, components, responsive;
@layer reset {
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 112px; }
  body, h1, h2, h3, h4, p, figure { margin: 0; }
  a { color: inherit; text-decoration: none; }
  button, input { font: inherit; }
  button { color: inherit; cursor: pointer; }
  img, svg { display: block; max-width: 100%; }
  a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  [hidden] { display: none !important; }
  :focus-visible { outline: 2px solid #a8c9ff; outline-offset: 5px; }
  ::selection { background: #72a6ff; color: #101e33; }
}
@layer base {
  :root { color-scheme: dark; --bg: #0c1523; --fg: #e4edfa; --muted: #a5b4cb; --line: #2c3d56; --accent: #82b0ff; --surface: #111f32; }
  body { background: var(--bg); color: var(--fg); font: 16px/1.65 Arial, Helvetica, sans-serif; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
  main, .site-header { max-width: 1320px; margin-inline: auto; }
  h1, h2, h3, h4 { font-weight: 500; }
  h1 { font-size: clamp(62px, 7vw, 98px); line-height: 1.02; letter-spacing: -.055em; }
  h2 { font-size: clamp(36px, 4.3vw, 62px); line-height: 1.1; letter-spacing: -.045em; }
  h3 { font-size: 23px; line-height: 1.25; letter-spacing: -.025em; }
  p { color: var(--muted); }
  button { background: transparent; border: 0; }
  .skip { position: fixed; top: 8px; left: 20px; padding: 12px 20px; z-index: 30; background: var(--accent); color: var(--bg); transform: translateY(-160%); }
  .skip:focus { transform: none; }
  .site-header { padding: 28px 5%; display: flex; align-items: center; gap: 36px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: #0c1523f5; backdrop-filter: blur(12px); }
  .brand { display: flex; gap: 14px; align-items: center; margin-right: auto; }
  .brand-mark { font: 700 38px/.9 Arial, sans-serif; letter-spacing: -5px; }
  .brand-mark>span { font-weight: 400; }
  .brand-name { font-size: 15px; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
  #site-navigation { display: flex; gap: 25px; font-size: 13px; align-items: center; }
  #site-navigation a { padding-block: 7px; border-bottom: 1px solid transparent; }
  #site-navigation a:hover { border-bottom-color: currentColor; }
  .language-switch { display: flex; align-items: center; gap: 8px; font-size: 11px; }
  .language-switch a { min-width: 28px; min-height: 36px; display: grid; place-items: center; color: var(--muted); }
  .language-switch a[aria-current] { color: var(--fg); font-weight: 700; }
  .language-switch>span { color: #8290a8; }
  .menu-toggle { display: none; }
  .eyebrow { color: var(--fg); font-size: 11px; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
  .status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--accent); flex-shrink: 0; }
  .hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 30px; padding: 62px 5% 45px; min-height: 680px; }
  .hero-text>.eyebrow { margin-bottom: 26px; }
  .intro { font-size: 16px; line-height: 1.8; max-width: 420px; margin: 26px 0 30px; }
  .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
  .btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 35px; padding: 14px 22px; font-size: 13px; min-height: 50px; border: 1px solid var(--accent); transition: transform .2s; }
  .primary { background: var(--accent); color: #101e33; }
  .btn:hover { transform: translateY(-3px); }
  .btn>span { font-size: 23px; line-height: 1; }
  .text-link { font-size: 12px; display: inline-flex; align-items: center; gap: 22px; min-height: 39px; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .text-link:hover { border-color: currentColor; }
  .hero-visual { position: relative; min-width: 0; }
  .hero-visual:before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse, #2b64bb30, transparent 68%); pointer-events: none; }
  .network { position: relative; color: #719bd9; }
  .network>svg { width: 100%; height: auto; transform: rotate(-9deg); }
  .nodes rect { fill: var(--bg); stroke: #3b5476; }
  .svg-label { font: 9px 'Courier New', monospace; letter-spacing: 1px; }
  .core-disc { fill: #1a3964; stroke: #89b2f1; stroke-width: 1; }
  .core-label { fill: #c7ddff; font: 500 25px Arial, sans-serif; letter-spacing: -2px; }
  .diagram-caption { display: block; text-align: center; color: var(--muted); font: 9px/1.6 'Courier New', monospace; letter-spacing: .04em; margin-top: 10px; }
  .signal-stamp { display: flex; justify-content: space-around; gap: 10px; margin-top: 25px; font: 9px/1.5 'Courier New', monospace; color: var(--muted); letter-spacing: .02em; }
  .hero-bottom { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 25px; margin-top: 15px; gap: 25px; font-size: 11px; color: var(--muted); }
  .mini-bio { display: flex; gap: 13px; align-items: center; color: var(--fg); }
  .mini-bio>strong { font-size: 49px; letter-spacing: -.07em; font-weight: 400; line-height: 1; }
  .mini-bio>span { font-size: 9px; line-height: 1.6; letter-spacing: .07em; max-width: 95px; }
}
@layer components {
  .section { padding: 90px 5%; border-top: 1px solid var(--line); scroll-margin-top: 10px; }
  .section-heading { display: grid; grid-template-columns: 1fr 2.4fr; gap: 40px; margin-bottom: 50px; }
  .section-heading>.eyebrow { align-items: flex-start; }
  .section-heading>.eyebrow>span { color: var(--muted); margin-right: 10px; }
  .section-heading>div>p { font-size: 14px; margin-top: 20px; max-width: 520px; }
  .skills-grid { display: grid; grid-template-columns: repeat(4,1fr); }
  .skill { padding: 24px 23px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
  .skill:first-child { padding-left: 0; border: 0; }
  .skill:last-child { padding-right: 0; }
  .skill-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; color: var(--muted); font: 10px monospace; }
  .skill-symbol { color: var(--accent); font-size: 36px; line-height: 1; }
  .skill>p { font-size: 13px; line-height: 1.8; margin: 17px 0 30px; }
  .skill-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
  .skill-tags>span { font-size: 10px; letter-spacing: .01em; border: 1px solid var(--line); padding: 3px 6px; color: #c0cce0; }
  .timeline { margin-left: 29.4%; }
  .timeline-row { display: grid; grid-template-columns: 150px 1fr 30px; gap: 24px; border-top: 1px solid var(--line); padding: 28px 0; }
  .timeline-date { font-size: 11px; color: var(--muted); padding-top: 6px; }
  .timeline-row h3 { display: flex; align-items: center; gap: 12px; }
  .timeline-row h4 { font-size: 16px; font-weight: 400; margin-top: 9px; }
  .timeline-row p { font-size: 13px; margin-top: 12px; max-width: 470px; }
  .timeline-num { text-align: right; font: 10px monospace; color: var(--muted); }
  .profile-link { margin: 30px 0 0 29.4%; }
  .about-layout { margin-left: 29.4%; display: grid; grid-template-columns: 1fr 1.6fr; gap: 42px; }
  .portrait { width: 100%; height: auto; object-fit: cover; aspect-ratio: 1; filter: grayscale(1); }
  .about-photo>figcaption { margin-top: 10px; color: var(--muted); font-size: 11px; }
  .about-copy>p { font-size: 17px; line-height: 1.8; color: var(--fg); }
  .education { padding-top: 24px; border-top: 1px solid var(--line); margin: 30px 0; }
  .education h3 { font-size: 19px; margin-top: 15px; }
  .education>p { font-size: 13px; margin-top: 8px; }
  .education-jump { margin-top: 13px; }
  .method { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; background: var(--surface); }
  .method h2 { font-size: 40px; margin: 20px 0; }
  .method p:not(.eyebrow) { font-size: 14px; max-width: 430px; }
  .method ol { padding: 0; margin: 0; list-style: none; }
  .method li { padding: 20px 0; display: flex; align-items: center; gap: 25px; font-size: 23px; border-bottom: 1px solid var(--line); }
  .method li>span:first-child { font: 10px monospace; color: var(--muted); }
  .method li>span:last-child { margin-left: auto; }
  .learning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; }
  .learning-column-title { display: flex; align-items: center; gap: 12px; font-size: 20px; min-height: 54px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .learning-column-title>span { font: 24px Arial,sans-serif; color: var(--accent); }
  .academic-row { display: grid; grid-template-columns: 88px 1fr 18px; gap: 18px; padding: 23px 0; border-bottom: 1px solid var(--line); }
  .learning-date { font-size: 11px; line-height: 1.8; color: var(--muted); padding-top: 4px; white-space: nowrap; }
  .degree-label { display: block; font-size: 10px; line-height: 1.5; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 7px; }
  .academic-row h4 { font-size: 21px; line-height: 1.25; letter-spacing: -.025em; }
  .academic-row p { font-size: 13px; margin-top: 7px; }
  .learning-num { color: var(--muted); font: 10px/1.5 monospace; padding-top: 5px; text-align: right; }
  .credential-row { display: grid; grid-template-columns: 30px 1fr; gap: 16px; padding: 23px 0; border-bottom: 1px solid var(--line); }
  .credential-icon { font: 26px/1.3 Arial,sans-serif; color: var(--accent); }
  .credential-meta { display: flex; justify-content: space-between; gap: 15px; font-size: 11px; line-height: 1.5; color: var(--muted); margin-bottom: 9px; }
  .credential-meta>time { white-space: nowrap; }
  .credential-row h4 { font-size: 19px; line-height: 1.4; letter-spacing: -.02em; max-width: 460px; }
  .credential-category { display: inline-block; margin-top: 12px; border: 1px solid var(--line); padding: 3px 7px; font-size: 10px; color: var(--muted); }
  .learning-details { margin-top: 20px; border-block: 1px solid var(--line); }
  .learning-details summary { font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 53px; list-style: none; }
  .learning-details summary::-webkit-details-marker { display: none; }
  .learning-details summary:before { content: '+'; font: 20px/1 monospace; color: var(--muted); }
  .learning-details[open] summary:before { content: '−'; }
  .learning-details summary:hover { color: var(--muted); }
  .details-count { margin-left: auto; font: 10px monospace; color: var(--muted); }
  .learning-details[open]>summary { border-bottom: 1px solid var(--line); }
  .learning-details article:last-child { border-bottom: 0; }
  .learning-source { margin-top: 20px; }
  .note-links { margin-left: 29.4%; }
  .note-links>a { display: flex; gap: 35px; align-items: center; padding: 25px 0; border-top: 1px solid var(--line); }
  .note-links>a>span:first-child { font: 10px monospace; color: var(--muted); min-width: 95px; }
  .note-links strong { font-size: 21px; font-weight: 400; }
  .note-links>a>span:last-child { margin-left: auto; font-size: 30px; }
  .contact { background: var(--accent); color: #101e33; padding-top: 70px; padding-bottom: 25px; }
  .contact h2 { font-size: clamp(44px,6.5vw,90px); margin: 35px 0 22px; max-width: 980px; }
  .contact p { color: inherit; font-size: 14px; max-width: 500px; }
  .contact .eyebrow { color: inherit; }
  .contact-email { display: inline-flex; align-items: center; gap: 25px; border-bottom: 1px solid currentColor; margin-top: 35px; padding-bottom: 8px; font-size: clamp(17px,2.5vw,34px); }
  .contact .primary { background: #101e33; color: #b5d3ff; border-color: #101e33; }
  .contact-actions { display: flex; align-items: center; gap: 22px; margin-top: 27px; }
  .copy-email { padding: 13px 0; font-size: 12px; border-bottom: 1px solid transparent; }
  .copy-email:hover { border-bottom-color: currentColor; }
  .copy-status { display: block; min-height: 32px; font-size: 12px; padding-top: 10px; }
  .contact-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid currentColor; padding-top: 24px; margin-top: 40px; font-size: 11px; }
  .contact-footer>a { font-size: 25px; min-width: 40px; min-height: 40px; text-align: center; }
  .contact :focus-visible { outline-color: #101e33; }
  .error-page { max-width: 780px; padding: 15vh 6%; margin: auto; }
  .error-page h1 { margin: 25px 0; font-size: clamp(44px,7vw,72px); }
  .error-page .hero-actions { margin-top: 30px; }
}
@layer responsive {
  @media(max-width:1050px) {
    .site-header { gap: 22px; }
    .brand-name { display: none; }
    #site-navigation { gap: 20px; }
    .section-heading { grid-template-columns: 1fr 2fr; }
    .skill { padding-inline: 16px; }
    .skill h3 { font-size: 21px; }
    .timeline, .about-layout, .note-links, .profile-link { margin-left: 0; }
    .learning-grid { gap: 35px; }
    .academic-row { grid-template-columns: 1fr 18px; gap: 7px 15px; }
    .learning-date { grid-column: 1/-1; }
    .learning-num { grid-column: 2; grid-row: 2; }
  }
  @media(max-width:760px) {
    html { scroll-padding-top: 165px; }
    html.js-enabled { scroll-padding-top: 95px; }
    .site-header { padding: 20px 6%; gap: 20px; flex-wrap: wrap; }
    .brand-name { display: block; font-size: 12px; }
    .brand-mark { font-size: 33px; }
    .language-switch { font-size: 10px; gap: 5px; }
    #site-navigation { flex-basis: 100%; flex-wrap: wrap; gap: 12px 20px; font-size: 12px; padding-top: 8px; order: 3; }
    .js-enabled .menu-toggle { display: block; font-size: 12px; min-height: 36px; margin-left: auto; padding: 6px 0; }
    .js-enabled #site-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 22px 6%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 10px 15px #0002; }
    .js-enabled #site-navigation.is-open { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
    .hero { grid-template-columns: 1fr; gap: 36px; min-height: 0; padding: 40px 6% 45px; }
    h1 { font-size: clamp(51px,12vw,85px); line-height: 1.04; }
    h2 { font-size: clamp(34px,8vw,50px); }
    .hero-text>.eyebrow { font-size: 10px; margin-bottom: 25px; }
    .intro { font-size: 15px; max-width: 440px; margin-top: 22px; }
    .hero-actions { gap: 23px; }
    .btn { padding: 14px 18px; font-size: 13px; gap: 25px; }
    .text-link { font-size: 12px; gap: 15px; }
    .hero-visual { width: 100%; max-width: 480px; margin-inline: auto; }
    .signal-stamp { font-size: 8px; margin-top: 25px; }
    .hero-bottom { margin-top: 0; flex-wrap: wrap; gap: 20px; }
    .hero-bottom>span:last-child { display: none; }
    .hero-bottom>span { max-width: 165px; font-size: 10px; }
    .section { padding: 60px 6%; }
    .section-heading { grid-template-columns: 1fr; gap: 25px; margin-bottom: 35px; }
    .section-heading h2 { max-width: 620px; }
    .section-heading>div>p { font-size: 14px; }
    .skills-grid { grid-template-columns: 1fr 1fr; gap: 25px 20px; }
    .skill, .skill:first-child { border: 0; border-top: 1px solid var(--line); padding: 22px 0; }
    .skill-top { margin-bottom: 25px; }
    .skill h3 { font-size: 21px; }
    .skill>p { font-size: 13px; }
    .skill-tags>span { font-size: 9px; }
    .timeline-row { grid-template-columns: 1fr 25px; gap: 10px; }
    .timeline-date { grid-column: 1/-1; }
    .timeline-num { grid-column: 2; grid-row: 2; }
    .timeline-row h3 { font-size: 23px; }
    .timeline-row h4 { font-size: 15px; }
    .about-layout { grid-template-columns: 1fr; gap: 30px; }
    .about-photo { max-width: 280px; }
    .about-copy>p { font-size: 16px; }
    .method { grid-template-columns: 1fr; gap: 30px; }
    .method h2 { font-size: 35px; }
    .method li { font-size: 21px; }
    .learning-grid { grid-template-columns: 1fr; gap: 45px; }
    .learning-column-title { min-height: 0; font-size: 21px; padding-bottom: 20px; }
    .academic-row { grid-template-columns: 80px 1fr 15px; gap: 14px; padding: 21px 0; }
    .learning-date { grid-column: auto; font-size: 10px; padding-top: 2px; }
    .learning-num { grid-column: auto; grid-row: auto; }
    .degree-label { font-size: 9px; }
    .academic-row h4 { font-size: 21px; }
    .academic-row p { font-size: 12px; }
    .credential-row { grid-template-columns: 25px 1fr; gap: 12px; }
    .credential-row h4 { font-size: 19px; }
    .credential-meta { font-size: 11px; }
    .credential-category { font-size: 10px; }
    .note-links>a { gap: 15px; flex-wrap: wrap; }
    .note-links>a>span:first-child { width: 100%; }
    .note-links strong { font-size: 23px; }
    .note-links>a>span:last-child { margin-top: -25px; }
    .contact h2 { font-size: clamp(40px,10vw,60px); }
    .contact-email { font-size: clamp(16px,4.4vw,28px); gap: 12px; }
    .contact-actions { gap: 18px; flex-wrap: wrap; }
    .contact-footer { font-size: 10px; gap: 15px; margin-top: 30px; }
  }
  @media(max-width:365px) {
    .brand-name { display: none; }
    .site-header { gap: 15px; }
    .hero h1 { font-size: 49px; }
    .skills-grid { grid-template-columns: 1fr; gap: 5px; }
    .academic-row { grid-template-columns: 1fr 15px; gap: 7px 12px; }
    .learning-date { grid-column: 1/-1; }
    .learning-num { grid-column: 2; grid-row: 2; }
    .credential-meta { flex-wrap: wrap; gap: 4px 12px; }
    .contact-email { font-size: 16px; }
  }
  @media(prefers-reduced-motion:reduce) {
    html { scroll-behavior: auto; }
    *, *:before, *:after { animation: none !important; transition: none !important; }
  }
  @media print {
    :root { color-scheme: light; }
    body { background: #fff; color: #111; font-size: 11pt; }
    p { color: #333; }
    .site-header { position: static; background: #fff; padding: 12px 0; }
    .hero { min-height: 0; padding: 25px 0; }
    .hero-visual, .hero-bottom, .menu-toggle, .copy-email, .language-switch, #site-navigation, .method, .contact-actions { display: none !important; }
    .hero, .section-heading, .about-layout { display: block; }
    .section { padding: 25px 0; }
    .section-heading>.eyebrow { margin-bottom: 15px; }
    h1 { font-size: 42pt; } h2 { font-size: 24pt; }
    .timeline, .about-layout, .note-links { margin-left: 0; }
    .about-photo { max-width: 140px; float: left; margin: 0 25px 15px 0; }
    .contact { background: #fff; color: #111; }
    .learning-grid { gap: 25px; }
    article { break-inside: avoid; }
  }
}
