:root {
    --bg: #ffffff;
    --text: #111522;
    --muted: #647089;
    --muted-2: #8791a5;
    --line: #dfe5ee;
    --line-strong: #cbd4e1;
    --blue: #315bff;
    --blue-dark: #2346d8;
    --blue-soft: #e9efff;
    --green: #23845f;
    --green-soft: #e4f6ee;
    --violet: #7558d8;
    --violet-soft: #eee9ff;
    --amber: #a36a00;
    --amber-soft: #fff1cf;
    --cyan-soft: #e7f7fb;
    --warm-soft: #fbf7f1;
    --lavender-soft: #f5f2ff;
    --surface: #f6f8fb;
    --surface-2: #eef3f8;
    --shadow-sm: 0 8px 22px rgba(28, 42, 70, .06);
    --shadow-md: 0 18px 50px rgba(28, 42, 70, .10);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --container: 1170px;
    --header: 66px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 18px); }
body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.menu-open, body.dialog-open { overflow: hidden; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
img, svg { display: block; }
img { max-width: 100%; }
.icon {
    width: 1.15em;
    height: 1.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.skip-link {
    position: fixed;
    z-index: 9999;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--text);
    color: white;
    transform: translateY(-160%);
    text-decoration: none;
}
.skip-link:focus { transform: none; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.90);
    border-bottom: 1px solid rgba(208,217,229,.82);
    backdrop-filter: blur(16px) saturate(1.12);
    transition: box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 7px 24px rgba(22, 37, 65, .07); }
.navbar {
    min-height: var(--header);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: max-content; }
.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--blue);
    color: white;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(49,91,255,.24);
}
.brand-text { display: grid; line-height: 1.08; }
.brand-text strong { font-size: 14px; letter-spacing: -.01em; }
.brand-text small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.nav-links { justify-self: center; display: flex; align-items: center; gap: 28px; }
.nav-links a {
    position: relative;
    padding: 22px 0 20px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
    transition: color .18s ease;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 14px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--blue);
    transform: translateX(-50%);
    transition: width .22s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after { width: 18px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.search-trigger {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.search-trigger:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
kbd {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    padding-inline: 6px;
    border: 1px solid var(--line);
    border-bottom-color: #bcc6d5;
    border-radius: 6px;
    background: #f9fafc;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height: 1;
    box-shadow: 0 1px 0 #d7dee9;
}
.nav-cta {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border-radius: 11px;
    background: var(--text);
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease;
}
.nav-cta:hover { transform: translateY(-1px); background: #252a36; }
.menu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    place-items: center;
    gap: 5px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    cursor: pointer;
}
.menu-toggle span { width: 18px; height: 1.5px; background: var(--text); transition: transform .2s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.2px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.2px) rotate(-45deg); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left center; }
.mobile-menu-backdrop { position: fixed; inset: 0; z-index: 89; background: rgba(12,19,33,.28); backdrop-filter: blur(3px); }
.mobile-menu {
    position: fixed;
    z-index: 90;
    top: calc(var(--header) + 8px);
    left: 14px;
    right: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-md);
}
.mobile-menu a, .mobile-search {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-size: 15px;
    text-decoration: none;
    text-align: left;
}
.mobile-search { justify-content: flex-start; border-radius: 10px; color: var(--muted); cursor: pointer; }
.mobile-menu a span { color: var(--muted-2); font-size: 11px; }
.mobile-menu .mobile-contact { margin-top: 10px; border-bottom: 0; border-radius: 12px; background: var(--blue-soft); color: var(--blue-dark); justify-content: flex-start; }

/* Hero */
.hero-shell {
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 12%, rgba(102,140,255,.12), transparent 29%),
        radial-gradient(circle at 8% 18%, rgba(72,202,173,.08), transparent 24%),
        linear-gradient(180deg, #f7f9fd 0%, #f4f7fb 100%);
    border-bottom: 1px solid var(--line);
}
.hero {
    min-height: 670px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 365px);
    gap: 66px;
    align-items: center;
    padding-block: 62px 52px;
}
.hero-copy { min-width: 0; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .075em;
    text-transform: uppercase;
}
.eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(49,91,255,.10); }
.hero h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(58px, 6.7vw, 92px);
    line-height: .92;
    letter-spacing: -.06em;
    font-weight: 800;
}
.hero-lead {
    max-width: 730px;
    margin: 27px 0 0;
    color: var(--muted);
    font-size: clamp(19px, 1.65vw, 23px);
    line-height: 1.52;
}
.hero-lead-mobile { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button-primary { background: var(--blue); color: white; box-shadow: 0 10px 22px rgba(49,91,255,.18); }
.button-primary:hover { transform: translateY(-2px); background: var(--blue-dark); box-shadow: 0 14px 28px rgba(49,91,255,.24); }
.button-secondary { border-color: var(--line-strong); background: rgba(255,255,255,.72); color: var(--text); }
.button-secondary:hover { transform: translateY(-1px); background: #fff; border-color: #b7c2d1; }
.stack-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 29px;
    color: var(--muted);
    font-size: 12px;
}
.stack-strip > span { font-weight: 700; text-transform: uppercase; letter-spacing: .065em; }
.stack-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; }
.stack-strip li { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.7); color: #48546a; font-size: 12px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.profile-links a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; text-underline-offset: 4px; }
.profile-links a:hover { color: var(--blue-dark); }
.profile-links .icon { width: 12px; height: 12px; }
.profile-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid #dbe2ec;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 26px 64px rgba(28, 42, 70, .11);
}
.profile-panel::before {
    content: "";
    position: absolute;
    z-index: 2;
    width: 88px;
    height: 88px;
    right: -24px;
    top: 43%;
    border-radius: 50%;
    background: rgba(197,235,98,.36);
    filter: blur(1px);
    pointer-events: none;
}
.photo-frame { position: relative; height: 408px; overflow: hidden; background: #f1f3f7; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.profile-panel-body { padding: 18px 20px 20px; }
.profile-panel-body > div:first-child strong { display: block; font-size: 19px; letter-spacing: -.02em; }
.profile-panel-body > div:first-child p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.profile-education { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.profile-education span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.profile-education b { font-size: 13px; text-align: right; }
.profile-education .icon { width: 14px; height: 14px; }
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-bottom: 36px; }
.highlight {
    position: relative;
    min-height: 100px;
    display: grid;
    grid-template-columns: 46px 1fr 18px;
    gap: 12px;
    align-items: center;
    padding: 15px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.86);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.highlight::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 999px 999px 0 0; background: var(--highlight); opacity: .72; }
.highlight:hover { transform: translateY(-3px); border-color: #c9d3e2; box-shadow: 0 13px 28px rgba(28,42,70,.10); }
.highlight-blue { --highlight: var(--blue); --highlight-soft: var(--blue-soft); }
.highlight-green { --highlight: var(--green); --highlight-soft: var(--green-soft); }
.highlight-violet { --highlight: var(--violet); --highlight-soft: var(--violet-soft); }
.highlight-amber { --highlight: var(--amber); --highlight-soft: var(--amber-soft); }
.highlight-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--highlight-soft); color: var(--highlight); }
.highlight-icon .icon { width: 22px; height: 22px; }
.highlight strong { display: block; font-size: 17px; line-height: 1.15; }
.highlight p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.highlight > i { color: var(--muted-2); font-style: normal; }
.highlight > i .icon { width: 16px; height: 16px; }

/* Sections */
.section { padding-block: 86px; }
.section-projects { background: #fff; }
.section-career { background: var(--warm-soft); border-block: 1px solid #eee8df; }
.section-skills { background: linear-gradient(180deg, #edf4ff 0%, #f4f8ff 100%); border-bottom: 1px solid #dce7fa; }
.section-research { background: var(--lavender-soft); border-bottom: 1px solid #e5defa; }
.section-achievements { background: #f7f9fc; }
.section-title {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 32px;
}
.section-title-mark {
    position: relative;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    color: var(--blue);
    box-shadow: var(--shadow-sm);
}
.section-title-mark .icon { width: 22px; height: 22px; }
.section-title-mark span { position: absolute; right: -7px; bottom: -7px; min-width: 23px; height: 23px; display: grid; place-items: center; padding-inline: 4px; border-radius: 7px; background: var(--text); color: white; font-size: 9px; font-weight: 700; }
.section-index { display: block; margin: 1px 0 7px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .09em; }
.section-title h2 { margin: 0; font-size: clamp(38px, 4.6vw, 58px); line-height: 1; letter-spacing: -.045em; }

/* Featured project */
.featured-project {
    --spot-x: 72%;
    --spot-y: 18%;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
    min-height: 510px;
    overflow: hidden;
    border: 1px solid #d9e4fb;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(49,91,255,.13), transparent 31%),
        linear-gradient(135deg, #f1f5ff 0%, #edf4ff 47%, #f8fbff 100%);
    box-shadow: 0 20px 58px rgba(44,73,132,.08);
}
.featured-project-copy { padding: 38px 36px; }
.project-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.badge { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.72); color: #637089; font-size: 9px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.badge-primary { background: #dfff9c; color: #25300c; }
.badge-light { background: var(--surface); color: var(--muted); }
.featured-project h3 { max-width: 680px; margin: 26px 0 0; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.03; letter-spacing: -.04em; }
.featured-copy-block { max-width: 700px; margin-top: 28px; }
.featured-copy-block > span, .result-summary > span { display: block; color: var(--blue-dark); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.featured-copy-block p { margin: 9px 0 0; color: #65728b; font-size: 17px; line-height: 1.55; }
.tech-list { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 26px 0 0; }
.tech-list li { padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,.74); color: #5b6780; font-size: 11px; }
.featured-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 36px;
    border-left: 1px solid rgba(204,217,241,.9);
    background: rgba(255,255,255,.58);
}
.pipeline-visual { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr; align-items: center; gap: 8px; }
.pipeline-node {
    min-height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px 8px;
    border: 1px solid #d8e2f4;
    border-radius: 18px;
    background: white;
    box-shadow: 0 10px 24px rgba(54,80,125,.07);
}
.pipeline-node > span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.pipeline-node .icon { width: 21px; height: 21px; }
.pipeline-node b { font-size: 12px; }
.pipeline-node small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.pipeline-node-accent { border-color: #b8c8ff; background: #eef3ff; }
.pipeline-node-accent > span { background: var(--blue); color: white; }
.pipeline-arrow { color: #a6b1c6; font-style: normal; }
.pipeline-arrow .icon { width: 22px; height: 22px; }
.result-summary { padding: 20px; border-radius: 17px; background: var(--text); color: white; }
.result-summary > span { color: #aebeff; }
.result-summary strong { display: block; margin-top: 7px; font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }

/* Projects grid and visuals */
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 16px; }
.project-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.project-card:hover { transform: translateY(-3px); border-color: #c6d1e1; box-shadow: 0 14px 34px rgba(28,42,70,.10); }
.project-card-wide { grid-column: span 6; }
.project-card-regular { grid-column: span 4; }
.project-visual { position: relative; min-height: 185px; overflow: hidden; border-bottom: 1px solid var(--line); }
.project-card-regular .project-visual { min-height: 158px; }
.project-card-body { flex: 1; display: flex; flex-direction: column; padding: 22px; }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-number { color: var(--muted-2); font-size: 11px; font-weight: 700; }
.project-card h3 { margin: 17px 0 0; font-size: 24px; line-height: 1.18; letter-spacing: -.03em; }
.project-card > .project-card-body > p { margin: 11px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.tech-list-light { margin-top: 18px; }
.tech-list-light li { border: 1px solid #e3e8f0; background: #f7f8fa; }
.project-card-footer { margin-top: auto; padding-top: 20px; }
.project-card-footer a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.project-card-footer a .icon { width: 14px; height: 14px; transition: transform .18s ease; }
.project-card:hover .project-card-footer a .icon { transform: translate(2px,-2px); }
.project-card-footer > span { color: var(--muted-2); font-size: 12px; }

.visual-terminal { padding: 18px; background: linear-gradient(140deg, #1c2432, #101621); color: #d8e4f5; }
.terminal-bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 10px 10px 0 0; background: #2c3544; font-size: 9px; }
.terminal-bar span { width: 7px; height: 7px; border-radius: 50%; background: #8a95a6; }
.terminal-bar span:first-child { background: #ff776d; }
.terminal-bar span:nth-child(2) { background: #ffc75a; }
.terminal-bar span:nth-child(3) { background: #61d889; }
.terminal-bar b { margin-left: 5px; color: #9eabba; font-weight: 400; }
.terminal-screen { min-height: 126px; padding: 15px 16px; border-radius: 0 0 10px 10px; background: #10151e; font: 12px/1.55 "Courier New", monospace; }
.terminal-screen p { margin: 0 0 6px; }
.terminal-screen i { color: #6ce7b0; font-style: normal; }
.terminal-output { color: #8fa0b5; }
.terminal-cursor { display: inline-block; width: 7px; height: 13px; vertical-align: -2px; background: #9fe9c8; }
.visual-infra { padding: 22px; background: linear-gradient(145deg, #edf7ff, #f3f5ff); }
.infra-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.infra-head span { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.infra-head b { color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.infra-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 25px; }
.infra-grid span { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 11px; border: 1px solid #d8e4f4; border-radius: 11px; background: rgba(255,255,255,.82); color: #45536b; font-size: 11px; font-weight: 700; }
.infra-grid i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(49,91,255,.09); }
.infra-lines { position: absolute; right: 12px; bottom: 9px; left: 12px; height: 32px; opacity: .27; }
.infra-lines i { position: absolute; bottom: 0; width: 18%; border-top: 2px solid var(--blue); transform: skewY(-20deg); }
.infra-lines i:nth-child(1){left:0;height:10px}.infra-lines i:nth-child(2){left:24%;height:24px}.infra-lines i:nth-child(3){left:50%;height:15px}.infra-lines i:nth-child(4){right:0;height:28px}
.visual-schema { background: #fbf6ec; }
.schema-table { position: absolute; z-index: 2; width: 104px; padding: 9px; border: 1px solid #ead9b6; border-radius: 10px; background: #fffdf8; box-shadow: 0 7px 16px rgba(108,84,40,.07); }
.schema-table b { display: block; margin-bottom: 5px; color: #5e4d2e; font-size: 11px; }
.schema-table span { display: block; color: #9a8764; font: 9px/1.5 "Courier New", monospace; }
.schema-users { left: 18px; top: 24px; }
.schema-orders { left: 48%; top: 63px; transform: translateX(-50%); }
.schema-products { right: 18px; bottom: 20px; }
.visual-schema svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual-schema svg path { fill: none; stroke: #c6ad79; stroke-width: 2; stroke-dasharray: 4 4; }
.visual-arcade { background: linear-gradient(160deg,#191f3b,#222d59); }
.brick-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 22px 20px 0; }
.brick-row.offset { grid-template-columns: repeat(4,1fr); padding-top: 6px; padding-inline: 34px; }
.brick-row i { height: 15px; border-radius: 4px; background: #718eff; box-shadow: inset 0 -3px rgba(0,0,0,.15); }
.brick-row i:nth-child(2n) { background: #e985ff; }
.arcade-ball { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #e8ff77; left: 48%; top: 52%; box-shadow: 0 0 16px rgba(232,255,119,.4); }
.arcade-paddle { position: absolute; width: 78px; height: 8px; left: 50%; bottom: 26px; border-radius: 5px; background: #fff; transform: translateX(-50%); }
.visual-arcade b, .visual-lines > b { position: absolute; left: 13px; bottom: 10px; color: rgba(255,255,255,.58); font-size: 8px; letter-spacing: .12em; }
.visual-lines { background: linear-gradient(145deg, #effcf7, #e6f4ff); }
.lines-board { width: 130px; height: 130px; display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; padding: 11px; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-52%); border: 1px solid #bfded1; border-radius: 16px; background: rgba(255,255,255,.76); box-shadow: 0 10px 24px rgba(44,91,77,.09); }
.lines-board i { border-radius: 50%; background: #c7dfd6; }
.lines-board i:nth-child(3),.lines-board i:nth-child(7),.lines-board i:nth-child(13),.lines-board i:nth-child(19) { background: #49a47c; }
.lines-board i:nth-child(5),.lines-board i:nth-child(11),.lines-board i:nth-child(17),.lines-board i:nth-child(24) { background: #5f83ff; }
.visual-lines > b { color: #5b8075; }
.visual-code-tree { padding: 21px 24px; background: linear-gradient(145deg,#f2f1ff,#f8f7ff); color: #5b5774; font: 12px/1.4 "Courier New", monospace; }
.code-tree-head { color: #35314f; font-weight: 700; margin-bottom: 8px; }
.visual-code-tree p { margin: 4px 0; }
.visual-code-tree > span { position: absolute; right: 16px; bottom: 14px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #694dcc; color: white; font: 700 11px Arial,sans-serif; }

/* Career */
.career-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.career-column { padding: 26px; border: 1px solid #e5ded3; border-radius: var(--radius); background: rgba(255,255,255,.82); box-shadow: var(--shadow-sm); }
.column-title { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; font-size: 20px; letter-spacing: -.02em; }
.column-title .icon { width: 21px; height: 21px; color: var(--blue); }
.career-education .column-title .icon { color: var(--green); }
.timeline-rail { position: relative; padding-left: 24px; }
.timeline-rail::before { content: ""; position: absolute; top: 6px; bottom: 14px; left: 6px; width: 1px; background: #d9d1c5; }
.timeline-card { position: relative; padding: 0 0 27px 5px; }
.timeline-card:last-child { padding-bottom: 2px; }
.timeline-dot { position: absolute; left: -23px; top: 7px; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; background: #aab4c2; box-shadow: 0 0 0 1px #c9d1dc; }
.timeline-card.is-current .timeline-dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(49,91,255,.12); }
.career-education .timeline-dot { background: var(--green); }
.career-education .timeline-card.is-current .timeline-dot { box-shadow: 0 0 0 4px rgba(36,153,117,.12); }
.career-education .timeline-period span { background: rgba(36,153,117,.11); color: #187657; }
.timeline-period { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .055em; }
.timeline-period span { padding: 4px 7px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: 9px; }
.timeline-card h4 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.timeline-card strong { display: block; margin-top: 5px; font-size: 14px; }
.timeline-card p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Skills */
.skills-layout { display: grid; grid-template-columns: minmax(320px,.8fr) minmax(0,1.2fr); gap: 16px; }
.skill-feature {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: var(--radius);
    background: var(--blue);
    color: white;
    box-shadow: 0 20px 44px rgba(49,91,255,.18);
}
.skill-feature::after { content:""; position:absolute; width:180px; height:180px; right:-60px; bottom:-70px; border-radius:50%; background:rgba(255,255,255,.08); }
.skill-feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 34px; border-radius: 14px; background: rgba(255,255,255,.14); }
.skill-feature-icon .icon { width: 24px; height: 24px; }
.skill-feature > span { color: #cdd8ff; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.skill-feature h3 { margin: 9px 0 0; font-size: 31px; letter-spacing: -.035em; }
.skill-feature ul, .skill-block ul { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 24px 0 0; }
.skill-feature li { padding: 8px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.11); color: #fff; font-size: 12px; }
.skills-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.skill-block, .language-card { padding: 22px; border: 1px solid #dbe4f1; border-radius: var(--radius); background: rgba(255,255,255,.86); box-shadow: var(--shadow-sm); }
.skill-number { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.skill-block h3, .language-card h3 { margin: 13px 0 0; font-size: 20px; letter-spacing: -.025em; }
.skill-block ul { margin-top: 16px; }
.skill-block li { padding: 7px 9px; border-radius: 8px; background: #eff4fa; color: #55627a; font-size: 11px; }
.language-list { display: grid; gap: 10px; margin-top: 18px; }
.language-list div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; background: #f0f5fb; }
.language-list b { font-size: 13px; }
.language-list span { min-width: 36px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: #fff; color: var(--blue-dark); font-size: 11px; font-weight: 800; box-shadow: 0 2px 7px rgba(31,58,106,.06); }

/* Publications and patent */
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)) minmax(270px,.72fr); gap: 16px; align-items: stretch; }
.publication-volume { min-width: 0; display: grid; grid-template-columns: 150px minmax(0,1fr); overflow: hidden; border: 1px solid #ded8f0; border-radius: var(--radius); background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); }
.publication-cover { position: relative; min-height: 100%; overflow: hidden; background: #222d65; }
.publication-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .25s ease; }
.publication-cover > span { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.92); color: var(--text); box-shadow: 0 7px 16px rgba(0,0,0,.12); }
.publication-cover > span .icon { width: 16px; height: 16px; }
.publication-volume:hover .publication-cover img { transform: scale(1.025); }
.publication-volume-body { min-width: 0; padding: 20px; }
.publication-volume-meta { margin: 0; color: var(--violet); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.publication-volume-body > h3 { margin: 8px 0 0; font-size: 18px; line-height: 1.3; letter-spacing: -.02em; }
.publication-articles { display: grid; gap: 8px; margin-top: 18px; }
.publication-article { display: grid; grid-template-columns: 42px 1fr 16px; gap: 10px; align-items: start; padding: 11px; border: 1px solid #e6e1f3; border-radius: 11px; background: #fbfaff; text-decoration: none; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.publication-article:hover { transform: translateY(-1px); border-color: #ccc1ec; background: #fff; }
.publication-article > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.publication-article strong { display: block; font-size: 12px; line-height: 1.35; }
.publication-article small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.publication-article > .icon { width: 14px; height: 14px; color: var(--violet); }
.patent-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid #f0d89e;
    border-radius: var(--radius);
    background: linear-gradient(150deg, #fff7e2 0%, #fffdf8 70%);
    box-shadow: var(--shadow-sm);
}
.patent-symbol { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 30px; border-radius: 15px; background: var(--amber-soft); color: var(--amber); }
.patent-symbol .icon { width: 25px; height: 25px; }
.patent-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--amber); font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.patent-card > strong { display: block; margin-top: 15px; font-size: 25px; letter-spacing: -.03em; }
.patent-card h3 { margin: 9px 0 0; font-size: 20px; line-height: 1.2; }
.patent-card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.button-patent { margin-top: auto; align-self: flex-start; border-color: #e6ce90; background: rgba(255,255,255,.72); color: #75500a; }
.button-patent:hover { background: white; transform: translateY(-1px); }

/* Certificates */
.filters-wrap { position: sticky; top: calc(var(--header) + 10px); z-index: 12; margin: 0 0 18px; padding: 8px; border: 1px solid var(--line); border-radius: 15px; background: rgba(247,249,252,.88); backdrop-filter: blur(10px); }
.filters { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { min-height: 38px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.filter b { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: #e8edf4; color: #5c6880; font-size: 9px; }
.filter:hover { background: #fff; color: var(--text); }
.filter.is-active { border-color: #d4dcef; background: #fff; color: var(--blue-dark); box-shadow: 0 4px 14px rgba(31,55,95,.06); }
.filter.is-active b { background: var(--blue-soft); color: var(--blue-dark); }
.certificate-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; align-items: start; }
.certificate-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(28,42,70,.045);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.certificate-card:hover { transform: translateY(-2px); border-color: #c9d3e2; box-shadow: 0 12px 28px rgba(28,42,70,.08); }
.certificate-card[hidden] { display: none !important; }
.certificate-thumb { position: relative; width: 100%; aspect-ratio: 1.35 / 1; display: grid; place-items: center; padding: 11px; overflow: hidden; border: 0; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,#eef2f7,#e7ecf3); cursor: zoom-in; }
.certificate-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; background: white; box-shadow: 0 5px 14px rgba(28,42,70,.08); }
.certificate-thumb > span { position: absolute; right: 9px; bottom: 9px; display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 9px; border-radius: 9px; background: rgba(16,21,34,.88); color: white; font-size: 9px; font-weight: 700; opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; }
.certificate-thumb > span .icon { width: 12px; height: 12px; }
.certificate-card:hover .certificate-thumb > span, .certificate-thumb:focus-visible > span { opacity: 1; transform: none; }
.certificate-card-body { padding: 14px 15px 16px; }
.certificate-card-body p { margin: 0; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .045em; }
.certificate-card-body h3 { margin: 7px 0 0; font-size: 15px; line-height: 1.3; letter-spacing: -.015em; }
.certificate-card-body small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.certificate-key { border-color: #cfdcff; }
.certificate-key .certificate-card-body { background: linear-gradient(180deg,#fff,#fbfcff); }
.certificate-major { grid-column: span 2; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(180px,.95fr); }
.certificate-major .certificate-thumb { aspect-ratio: auto; min-height: 240px; border-bottom: 0; border-right: 1px solid var(--line); }
.certificate-major .certificate-card-body { display: flex; flex-direction: column; justify-content: center; padding: 24px; }
.certificate-major .certificate-card-body h3 { font-size: 21px; }
.certificate-major .certificate-card-body small { font-size: 12px; }

/* Contact / footer */
.contact-cta { padding: 62px 0; background: #fff; border-top: 1px solid var(--line); }
.contact-cta-inner {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 28px;
    border: 1px solid #cfdcff;
    border-radius: 24px;
    background: linear-gradient(135deg, #edf3ff 0%, #f7fbff 62%, #edfbf4 100%);
    box-shadow: 0 16px 40px rgba(31,65,126,.08);
}
.contact-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; background: var(--blue); color: white; box-shadow: 0 12px 24px rgba(49,91,255,.18); }
.contact-icon .icon { width: 25px; height: 25px; }
.contact-copy > span { color: var(--blue-dark); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-copy h2 { margin: 5px 0 0; font-size: 31px; letter-spacing: -.035em; }
.contact-copy p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.copy-email.is-copied { border-color: #9cdabf; background: #eefbf5; color: #18704f; }
.site-footer { border-top: 1px solid var(--line); background: #fafbfc; }
.footer-bottom { min-height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; color: var(--muted); font-size: 11px; }
.footer-bottom > a { justify-self: end; color: var(--muted); text-underline-offset: 4px; }
.footer-links { display: flex; gap: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer-bottom > a:hover { color: var(--text); }

/* Document dialog */
.document-dialog {
    width: min(96vw, 980px);
    max-width: 980px;
    max-height: 94vh;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d6dee9;
    border-radius: 18px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 28px 80px rgba(10,18,34,.28);
}
.document-dialog::backdrop, .search-dialog::backdrop { background: rgba(14,20,32,.56); backdrop-filter: blur(5px); }
.document-dialog-bar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.document-dialog-heading { min-width: 0; display: flex; align-items: center; gap: 10px; }
.document-dialog-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.document-dialog-heading span { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.document-dialog-controls { display: flex; gap: 5px; }
.document-dialog-controls button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.document-dialog-controls button:hover { background: var(--surface); }
.document-dialog-controls button:disabled { opacity: .35; cursor: default; }
.document-dialog-controls .document-close { font-size: 24px; line-height: 1; }
.document-dialog-body { max-height: calc(94vh - 59px); overflow: auto; padding: 14px; background: #eef1f5; }
.document-dialog-body img { width: min(100%, 900px); height: auto; margin: 0 auto; border-radius: 8px; background: white; box-shadow: 0 8px 24px rgba(18,29,50,.09); }

/* Search palette */
.search-dialog { width: min(92vw, 680px); max-width: 680px; padding: 0; border: 0; border-radius: 20px; background: transparent; color: var(--text); }
.search-panel { overflow: hidden; border: 1px solid #d6dee9; border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(10,18,34,.32); }
.search-input-wrap { min-height: 66px; display: grid; grid-template-columns: 24px 1fr 38px; gap: 10px; align-items: center; padding: 0 14px 0 18px; border-bottom: 1px solid var(--line); }
.search-input-wrap > .icon { width: 21px; height: 21px; color: var(--muted); }
.search-input-wrap input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 18px; }
.search-input-wrap input::placeholder { color: #9aa4b7; }
.search-input-wrap button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 22px; line-height: 1; }
.search-hint { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.search-hint > span:last-child { display: flex; align-items: center; gap: 4px; }
.search-results { max-height: min(58vh, 460px); overflow: auto; padding: 8px; }
.search-result { width: 100%; display: grid; grid-template-columns: 90px 1fr 18px; gap: 12px; align-items: center; min-height: 58px; padding: 9px 10px; border: 0; border-radius: 11px; background: transparent; text-align: left; cursor: pointer; }
.search-result:hover, .search-result.is-selected { background: #f0f4ff; }
.search-result-type { color: var(--blue-dark); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.search-result-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.search-result .icon { width: 14px; height: 14px; color: var(--muted); }
.search-empty { padding: 36px 18px; color: var(--muted); text-align: center; font-size: 13px; }

.scroll-top { position: fixed; z-index: 60; right: 20px; bottom: 20px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.92); color: var(--text); box-shadow: var(--shadow-sm); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Motion */
.motion-ready .reveal-item { opacity: 0; transform: translateY(12px); }
.motion-ready .reveal-item.is-visible { animation: reveal .46s cubic-bezier(.2,.72,.28,1) both; animation-delay: var(--reveal-delay,0ms); }
@keyframes reveal { to { opacity: 1; transform: none; } }
.motion-ready .featured-project.is-visible .pipeline-node { animation: node-in .48s cubic-bezier(.2,.72,.28,1) both; }
.motion-ready .featured-project.is-visible .pipeline-node:nth-of-type(2) { animation-delay: 80ms; }
.motion-ready .featured-project.is-visible .pipeline-node:nth-of-type(3) { animation-delay: 160ms; }
@keyframes node-in { from { opacity:.2; transform: scale(.96); } to { opacity:1; transform:none; } }
.motion-ready .project-card.is-visible .terminal-cursor { animation: blink .7s steps(1) 3; }
@keyframes blink { 50% { opacity: 0; } }
.motion-ready .project-card.is-visible .arcade-ball { animation: arcade-once .8s cubic-bezier(.2,.7,.3,1) 1 both; }
@keyframes arcade-once { from { transform: translate(-24px,20px); } to { transform: translate(0,0); } }

:focus-visible { outline: 3px solid rgba(49,91,255,.36); outline-offset: 3px; }

@media (max-width: 1100px) {
    body { font-size: 17px; }
    .navbar { grid-template-columns: auto 1fr auto; gap: 16px; }
    .nav-links { gap: 17px; }
    .search-trigger span, .search-trigger kbd { display: none; }
    .search-trigger { width: 38px; padding: 0; justify-content: center; }
    .hero { grid-template-columns: minmax(0,1fr) 320px; gap: 36px; min-height: 620px; }
    .photo-frame { height: 360px; }
    .featured-project { grid-template-columns: 1.05fr .95fr; }
    .pipeline-visual { grid-template-columns: 1fr; gap: 8px; }
    .pipeline-node { min-height: 88px; flex-direction: row; justify-content: flex-start; text-align: left; gap: 10px; padding: 12px; }
    .pipeline-node > span { margin: 0; flex: 0 0 auto; }
    .pipeline-node small { margin: 1px 0 0; }
    .pipeline-node b, .pipeline-node small { display: block; }
    .pipeline-arrow { display: none; }
    .research-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .patent-card { grid-column: 1 / -1; min-height: 260px; }
    .certificate-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .certificate-major { grid-column: span 3; grid-template-columns: minmax(0,1.15fr) minmax(250px,.85fr); }
}

@media (max-width: 860px) {
    :root { --header: 62px; }
    .container { width: min(calc(100% - 32px), var(--container)); }
    .nav-links, .nav-cta, .search-trigger { display: none; }
    .navbar { grid-template-columns: 1fr auto; }
    .menu-toggle { display: grid; }
    .hero { grid-template-columns: minmax(0,1fr) 280px; gap: 26px; padding-block: 46px 36px; }
    .hero h1 { font-size: clamp(50px, 9vw, 68px); }
    .hero-lead { font-size: 18px; }
    .photo-frame { height: 318px; }
    .highlights { grid-template-columns: repeat(2,1fr); }
    .section { padding-block: 68px; }
    .featured-project { grid-template-columns: 1fr; min-height: 0; }
    .featured-result { border-left: 0; border-top: 1px solid #dce5f6; }
    .pipeline-visual { grid-template-columns: repeat(5,1fr); }
    .pipeline-node { min-height: 118px; flex-direction: column; justify-content: center; text-align: center; gap: 0; }
    .pipeline-node > span { margin-bottom: 8px; }
    .pipeline-arrow { display: block; }
    .project-card-wide, .project-card-regular { grid-column: span 6; }
    .career-layout, .skills-layout { grid-template-columns: 1fr; }
    .skill-feature { min-height: 310px; }
    .research-grid { grid-template-columns: 1fr; }
    .patent-card { grid-column: auto; min-height: 280px; }
    .certificate-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .certificate-major { grid-column: span 2; }
    .contact-cta-inner { grid-template-columns: 52px 1fr; }
    .contact-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .container { width: min(calc(100% - 24px), var(--container)); }
    .brand-text small { display: none; }
    .brand-mark { width: 36px; height: 36px; }
    .hero { min-height: 0; grid-template-columns: 1fr; gap: 24px; padding-block: 30px 24px; }
    .eyebrow { margin-bottom: 13px; font-size: 10px; }
    .hero h1 { font-size: clamp(48px, 14.2vw, 64px); line-height: .94; }
    .hero-lead { display: none; }
    .hero-lead-mobile { display: block; margin: 17px 0 0; color: var(--muted); font-size: 17px; line-height: 1.45; }
    .hero-actions { margin-top: 21px; }
    .hero-actions .button { flex: 1 1 150px; }
    .stack-strip { margin-top: 22px; align-items: flex-start; }
    .stack-strip > span { width: 100%; }
    .profile-links { gap: 13px; margin-top: 17px; }
    .profile-panel { display: grid; grid-template-columns: 118px 1fr; border-radius: 18px; }
    .profile-panel::before { display: none; }
    .photo-frame { height: 150px; }
    .photo-frame img { object-position: 50% 14%; }
    .profile-panel-body { padding: 15px; display: flex; flex-direction: column; justify-content: center; }
    .profile-panel-body > div:first-child strong { font-size: 16px; }
    .profile-panel-body > div:first-child p { font-size: 11px; }
    .profile-education { grid-template-columns: 1fr; gap: 3px; margin-top: 10px; padding-top: 10px; }
    .profile-education b { font-size: 11px; text-align: left; }
    .highlights { grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 24px; }
    .highlight { min-height: 106px; grid-template-columns: 38px 1fr; padding: 13px; }
    .highlight-icon { width: 38px; height: 38px; }
    .highlight > i { display: none; }
    .highlight strong { font-size: 14px; }
    .highlight p { font-size: 10px; }
    .section { padding-block: 52px; }
    .section-title { grid-template-columns: 42px 1fr; gap: 13px; margin-bottom: 24px; }
    .section-title-mark { width: 40px; height: 40px; border-radius: 12px; }
    .section-title-mark .icon { width: 18px; height: 18px; }
    .section-title-mark span { min-width: 20px; height: 20px; font-size: 8px; }
    .section-index { margin-bottom: 5px; font-size: 9px; }
    .section-title h2 { font-size: clamp(32px, 10vw, 42px); line-height: 1.02; }
    .featured-project { border-radius: 20px; }
    .featured-project-copy { padding: 24px 20px; }
    .featured-project h3 { margin-top: 20px; font-size: 34px; }
    .featured-copy-block { margin-top: 20px; }
    .featured-copy-block p { font-size: 15px; }
    .tech-list { margin-top: 18px; }
    .featured-result { padding: 20px; }
    .pipeline-visual { grid-template-columns: 1fr; gap: 7px; }
    .pipeline-node { min-height: 78px; flex-direction: row; justify-content: flex-start; text-align: left; gap: 10px; padding: 11px; border-radius: 13px; }
    .pipeline-node > span { width: 36px; height: 36px; margin: 0; border-radius: 10px; }
    .pipeline-node .icon { width: 18px; height: 18px; }
    .pipeline-arrow { display: none; }
    .result-summary { padding: 16px; }
    .result-summary strong { font-size: 19px; }
    .project-grid { grid-template-columns: 1fr; gap: 12px; }
    .project-card-wide, .project-card-regular { grid-column: auto; }
    .project-visual, .project-card-regular .project-visual { min-height: 150px; }
    .project-card-body { padding: 18px; }
    .project-card h3 { font-size: 22px; }
    .project-card > .project-card-body > p { font-size: 14px; }
    .career-column { padding: 19px; border-radius: 17px; }
    .career-layout { gap: 12px; }
    .column-title { font-size: 18px; }
    .timeline-card h4 { font-size: 18px; }
    .timeline-card p { font-size: 13px; }
    .skill-feature { min-height: 0; padding: 22px; }
    .skill-feature-icon { margin-bottom: 24px; }
    .skill-feature h3 { font-size: 27px; }
    .skills-grid { grid-template-columns: 1fr; gap: 11px; }
    .skill-block, .language-card { padding: 18px; border-radius: 16px; }
    .publication-volume { grid-template-columns: 98px minmax(0,1fr); border-radius: 17px; }
    .publication-volume-body { padding: 15px; }
    .publication-volume-body > h3 { font-size: 15px; }
    .publication-article { grid-template-columns: 1fr 14px; gap: 8px; padding: 9px; }
    .publication-article > span { display: none; }
    .publication-article strong { font-size: 11px; }
    .publication-article small { font-size: 8.5px; }
    .patent-card { min-height: 250px; padding: 20px; border-radius: 17px; }
    .patent-symbol { margin-bottom: 20px; }
    .filters-wrap { top: calc(var(--header) + 6px); margin-inline: -3px; padding: 6px; border-radius: 12px; }
    .filter { min-height: 34px; padding-inline: 10px; font-size: 11px; }
    .certificate-grid { display: grid; grid-template-columns: 1fr; gap: 9px; }
    .certificate-card, .certificate-major { grid-column: auto; display: grid; grid-template-columns: 104px minmax(0,1fr); border-radius: 13px; }
    .certificate-thumb, .certificate-major .certificate-thumb { min-height: 118px; aspect-ratio: auto; padding: 7px; border: 0; border-right: 1px solid var(--line); }
    .certificate-card-body, .certificate-major .certificate-card-body { padding: 12px; justify-content: center; }
    .certificate-card-body h3, .certificate-major .certificate-card-body h3 { margin-top: 5px; font-size: 14px; line-height: 1.3; }
    .certificate-card-body small, .certificate-major .certificate-card-body small { margin-top: 5px; font-size: 9.5px; }
    .certificate-thumb > span { display: none; }
    .contact-cta { padding: 38px 0; }
    .contact-cta-inner { grid-template-columns: 44px 1fr; gap: 12px; padding: 19px; border-radius: 18px; }
    .contact-icon { width: 44px; height: 44px; border-radius: 13px; }
    .contact-copy h2 { font-size: 25px; }
    .contact-actions { gap: 7px; }
    .contact-actions .button { flex: 1 1 140px; padding-inline: 12px; font-size: 12px; }
    .footer-bottom { min-height: auto; grid-template-columns: 1fr auto; padding-block: 20px; }
    .footer-links { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 11px; }
    .document-dialog { width: 100vw; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
    .document-dialog-body { max-height: calc(100dvh - 59px); padding: 8px; }
    .document-dialog-heading strong { max-width: 55vw; }
    .search-dialog { width: calc(100vw - 18px); }
    .search-hint > span:last-child { display: none; }
    .search-result { grid-template-columns: 78px 1fr 14px; }
    .scroll-top { right: 13px; bottom: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .motion-ready .reveal-item { opacity: 1; transform: none; }
}
.search-flash { animation: search-flash 1.1s ease both !important; }
@keyframes search-flash {
    0%, 100% { box-shadow: inherit; }
    35% { box-shadow: 0 0 0 5px rgba(49,91,255,.16), 0 18px 42px rgba(49,91,255,.12); }
}


/* v12: unified hierarchy, typography and layout */
:root {
    --container: 1320px;
    --header: 68px;
}
body {
    font-size: 19px;
    line-height: 1.58;
}

/* Header */
.brand-mark { font-size: 13px; }
.brand-text strong { font-size: 16px; }
.brand-text small { font-size: 13px; }
.nav-links a { font-size: 15px; }
.search-trigger, .nav-cta { font-size: 13px; }
kbd { font-size: 11px; }
.mobile-menu a, .mobile-search { font-size: 16px; }
.mobile-menu a span { font-size: 12px; }

/* Hero */
.hero { min-height: 660px; }
.hero-lead { font-size: clamp(20px, 1.55vw, 23px); }
.button { min-height: 48px; font-size: 15px; }
.stack-strip {
    align-items: flex-start;
    gap: 14px;
    margin-top: 30px;
    font-size: 14px;
}
.stack-strip > span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    letter-spacing: .055em;
}
.stack-strip ul { gap: 8px; }
.stack-strip li {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}
.stack-strip li small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
    opacity: .84;
}
.stack-strip .stack-primary {
    border-color: var(--blue);
    background: var(--blue);
    color: white;
    box-shadow: 0 7px 18px rgba(49,91,255,.17);
}
.profile-links a { font-size: 14px; gap: 5px; }
.profile-links .icon { width: 14px; height: 14px; }
.profile-panel::before { content: none !important; display: none !important; }
.photo-frame img { filter: none !important; transform: none !important; }
.profile-panel-body > div:first-child strong { font-size: 21px; }
.profile-panel-body > div:first-child p { font-size: 15px; }
.profile-education span { font-size: 12px; }
.profile-education b { font-size: 15px; }
.highlight strong { font-size: 19px; line-height: 1.18; }
.highlight p { margin-top: 6px; font-size: 14px; line-height: 1.4; }

/* One section header system everywhere */
.section { padding-block: 88px; }
.section-title {
    display: block;
    margin: 0 0 38px;
}
.section-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    margin-bottom: 12px;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}
.section-kicker-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #d7e0ee;
    border-radius: 10px;
    background: rgba(255,255,255,.92);
    color: var(--blue);
    box-shadow: 0 5px 15px rgba(28,42,70,.045);
}
.section-kicker-icon .icon { width: 17px; height: 17px; }
.section-kicker > span:not(.section-kicker-icon) {
    color: var(--muted-2);
    font-variant-numeric: tabular-nums;
}
.section-kicker > span:not(.section-kicker-icon)::after {
    content: "/";
    margin-left: 10px;
    color: #bcc5d2;
}
.section-kicker b { color: var(--blue-dark); }
.section-title h2 {
    margin: 0;
    max-width: 980px;
    font-size: clamp(44px, 4.2vw, 60px);
    line-height: .98;
    letter-spacing: -.045em;
}

/* Projects */
.badge { min-height: 30px; padding-inline: 10px; font-size: 11px; }
.featured-copy-block > span, .result-summary > span { font-size: 12px; }
.featured-copy-block p { font-size: 18px; line-height: 1.6; color: #59677f; }
.tech-list li { padding: 8px 10px; font-size: 13px; }
.pipeline-node b { font-size: 14px; }
.pipeline-node small { font-size: 11px; }
.result-summary strong { font-size: 25px; }
.project-grid { align-items: stretch; }
.project-card { height: 100%; }
.project-number { font-size: 13px; }
.project-card h3 { font-size: 26px; }
.project-card > .project-card-body > p { font-size: 17px; line-height: 1.55; }
.project-card-footer a { font-size: 15px; }
.project-card-footer > span { font-size: 14px; }
.terminal-bar { height: 32px; padding-inline: 11px; font-size: 11px; }
.infra-head b { font-size: 11px; }
.infra-grid span, .schema-table b { font-size: 12px; }
.visual-arcade b, .visual-lines > b { font-size: 10px; }

/* Career */
.career-layout { align-items: stretch; }
.career-column { height: 100%; padding: 30px; }
.column-title { font-size: 22px; margin-bottom: 26px; }
.timeline-period { font-size: 13px; }
.timeline-period span { font-size: 11px; }
.timeline-card { padding-bottom: 32px; }
.timeline-card h4 { font-size: 23px; }
.timeline-card strong { font-size: 16px; }
.timeline-card p { font-size: 16px; line-height: 1.58; }

/* Skills: C++ is visually primary */
.skills-layout { grid-template-columns: minmax(360px,.86fr) minmax(0,1.14fr); gap: 20px; }
.skill-feature { min-height: 100%; padding: 32px; }
.skill-feature::after { display: none; }
.skill-feature-head { display: flex; align-items: center; gap: 12px; }
.skill-feature-icon { margin: 0; }
.skill-feature-head > span {
    color: #d8e1ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .065em;
    text-transform: uppercase;
}
.skill-feature h3 { margin-top: 28px; font-size: 36px; }
.skill-feature ul { margin-top: 25px; gap: 9px; }
.skill-feature li { padding: 9px 12px; font-size: 15px; }
.skill-feature .skill-primary {
    border-color: #fff;
    background: #fff;
    color: var(--blue-dark);
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(20,35,95,.16);
}
.skills-grid { gap: 16px; align-items: stretch; }
.skill-block, .language-card { min-height: 100%; padding: 24px; }
.skill-number { font-size: 12px; }
.skill-block h3, .language-card h3 { font-size: 22px; }
.skill-block li { padding: 8px 10px; font-size: 14px; }
.language-list b { font-size: 15px; }
.language-list span { min-width: 40px; height: 30px; font-size: 13px; }

/* Publications: one predictable card architecture */
.research-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
    align-items: stretch;
}
.publication-volume,
.patent-card {
    min-width: 0;
    height: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    padding: 22px;
    overflow: hidden;
    border-radius: 20px;
}
.publication-volume {
    border: 1px solid #ded8f0;
    background: rgba(255,255,255,.94);
    box-shadow: var(--shadow-sm);
}
.publication-volume-head {
    display: grid;
    grid-template-columns: 92px minmax(0,1fr);
    gap: 16px;
    align-items: start;
}
.publication-cover {
    width: 92px;
    height: 128px;
    min-height: 0;
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(31,25,74,.14);
}
.publication-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.publication-volume:hover .publication-cover img { transform: none; }
.publication-volume-title { min-width: 0; padding-top: 4px; }
.publication-volume-meta { font-size: 13px; line-height: 1.35; }
.publication-volume-title h3 {
    margin: 8px 0 0;
    font-size: 22px;
    line-height: 1.28;
    letter-spacing: -.025em;
}
.publication-articles {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}
.publication-article {
    grid-template-columns: 48px minmax(0,1fr) 18px;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
}
.publication-article > span { font-size: 13px; }
.publication-article strong { font-size: 16px; line-height: 1.4; }
.publication-article small { margin-top: 6px; font-size: 14px; line-height: 1.4; }
.publication-article > .icon { width: 16px; height: 16px; }
.publication-open {
    margin-top: auto;
    padding-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--violet);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}
.publication-open .icon { width: 15px; height: 15px; }
.patent-card { padding: 24px; }
.patent-symbol { margin-bottom: 26px; }
.patent-top { font-size: 13px; }
.patent-card > strong { font-size: 30px; }
.patent-card h3 { font-size: 24px; }
.patent-card p { font-size: 16px; }
.button-patent { margin-top: auto; }

/* Certificate filter and cards */
.filters-wrap {
    top: calc(var(--header) + 10px);
    margin-bottom: 22px;
    padding: 10px;
    border-radius: 16px;
}
.filters { gap: 8px; }
.filter {
    min-height: 44px;
    gap: 9px;
    padding-inline: 14px;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 600;
}
.filter b {
    min-width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 12px;
}
.certificate-grid {
    gap: 16px;
    align-items: stretch;
    grid-auto-flow: row;
}
.certificate-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.certificate-card:not(.certificate-major) .certificate-card-body { min-height: 178px; }
.certificate-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 17px 18px;
}
.certificate-card-body p { font-size: 12px; }
.certificate-card-body h3 { font-size: 18px; line-height: 1.34; }
.certificate-card-body small {
    margin-top: auto;
    padding-top: 10px;
    font-size: 13px;
    line-height: 1.4;
}
.certificate-thumb > span { min-height: 32px; font-size: 11px; }
.certificate-major { display: grid; height: 100%; }
.certificate-major .certificate-card-body h3 { font-size: 24px; }
.certificate-major .certificate-card-body small { margin-top: 10px; padding-top: 0; font-size: 14px; }

/* Contact and dialogs */
.contact-copy > span { font-size: 12px; }
.contact-copy h2 { font-size: 34px; }
.contact-copy p { font-size: 15px; }
.footer-bottom { min-height: 72px; font-size: 13px; }
.document-dialog-heading strong { font-size: 15px; }
.document-dialog-heading span { font-size: 12px; }
.search-hint { font-size: 12px; }
.search-result-type { font-size: 11px; }
.search-result-title { font-size: 15px; }
.search-empty { font-size: 15px; }

@media (max-width: 1100px) {
    body { font-size: 18px; }
    .research-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .patent-card { grid-column: 1 / -1; min-height: 360px; }
}

@media (max-width: 860px) {
    .section { padding-block: 70px; }
    .section-title { margin-bottom: 30px; }
    .section-title h2 { font-size: clamp(40px, 7vw, 52px); }
    .skills-layout { grid-template-columns: 1fr; }
    .skill-feature { min-height: auto; }
    .research-grid { grid-template-columns: 1fr; }
    .publication-volume, .patent-card { min-height: auto; }
    .publication-open { margin-top: 20px; }
}

@media (max-width: 640px) {
    body { font-size: 18px; }
    .container { width: min(calc(100% - 28px), var(--container)); }
    .eyebrow { font-size: 11px; }
    .hero-lead-mobile { font-size: 18px; line-height: 1.5; }
    .button { min-height: 48px; font-size: 15px; }
    .stack-strip {
        display: block;
        margin-top: 24px;
    }
    .stack-strip > span { min-height: auto; margin-bottom: 9px; font-size: 12px; }
    .stack-strip ul { gap: 7px; }
    .stack-strip li { min-height: 36px; padding-inline: 10px; font-size: 14px; }
    .stack-strip li small { display: none; }
    .profile-links a { font-size: 14px; }
    .profile-panel-body > div:first-child strong { font-size: 18px; }
    .profile-panel-body > div:first-child p { font-size: 14px; }
    .profile-education span { font-size: 11px; }
    .profile-education b { font-size: 14px; }
    .highlight strong { font-size: 17px; }
    .highlight p { font-size: 13px; }
    .section { padding-block: 56px; }
    .section-title { margin-bottom: 26px; }
    .section-kicker { min-height: 30px; margin-bottom: 10px; font-size: 12px; gap: 8px; }
    .section-kicker-icon { width: 30px; height: 30px; border-radius: 9px; }
    .section-kicker-icon .icon { width: 15px; height: 15px; }
    .section-kicker > span:not(.section-kicker-icon)::after { margin-left: 8px; }
    .section-title h2 { font-size: clamp(34px, 10vw, 44px); line-height: 1.02; }
    .featured-copy-block p { font-size: 17px; }
    .project-card h3 { font-size: 24px; }
    .project-card > .project-card-body > p { font-size: 16px; }
    .career-column { padding: 20px; }
    .column-title { font-size: 20px; }
    .timeline-period { font-size: 12px; }
    .timeline-card h4 { font-size: 20px; }
    .timeline-card strong { font-size: 15px; }
    .timeline-card p { font-size: 15px; }
    .skill-feature { padding: 22px; }
    .skill-feature-head { gap: 10px; }
    .skill-feature-icon { width: 42px; height: 42px; }
    .skill-feature-head > span { font-size: 11px; }
    .skill-feature h3 { margin-top: 22px; font-size: 30px; }
    .skill-feature li, .skill-block li { font-size: 14px; }
    .publication-volume { padding: 18px; }
    .publication-volume-head { grid-template-columns: 78px minmax(0,1fr); gap: 13px; }
    .publication-cover { width: 78px; height: 108px; }
    .publication-volume-meta { font-size: 11px; }
    .publication-volume-title h3 { font-size: 18px; }
    .publication-article { grid-template-columns: 42px minmax(0,1fr) 16px; padding: 12px; }
    .publication-article > span { font-size: 12px; }
    .publication-article strong { font-size: 15px; }
    .publication-article small { font-size: 13px; }
    .patent-card > strong { font-size: 28px; }
    .patent-card h3 { font-size: 22px; }
    .filter { min-height: 40px; font-size: 14px; }
    .filter b { min-width: 24px; height: 24px; font-size: 11px; }
    .certificate-card, .certificate-major { height: auto; min-height: 0; }
    .certificate-card:not(.certificate-major) .certificate-card-body { min-height: 0; }
    .certificate-card-body, .certificate-major .certificate-card-body { padding: 13px; }
    .certificate-card-body p { font-size: 11px; }
    .certificate-card-body h3, .certificate-major .certificate-card-body h3 { font-size: 16px; line-height: 1.32; }
    .certificate-card-body small, .certificate-major .certificate-card-body small { margin-top: 6px; padding-top: 0; font-size: 12px; }
    .contact-copy h2 { font-size: 28px; }
    .contact-actions .button { font-size: 14px; }
    .footer-bottom { font-size: 12px; }
}

/* v12.1: balanced skills grid */
@media (min-width: 1101px) {
    .skills-layout {
        display: grid;
        grid-template-columns: repeat(3, minmax(0,1fr));
        gap: 18px;
    }
    .skills-grid { display: contents; }
    .skill-feature { min-height: 320px; }
    .language-card { grid-column: span 2; }
}
@media (min-width: 861px) and (max-width: 1100px) {
    .skills-layout {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 16px;
    }
    .skills-grid { display: contents; }
    .skill-feature { grid-column: 1 / -1; min-height: 300px; }
    .language-card { grid-column: span 1; }
}
@media (max-width: 860px) {
    .skills-layout { display: grid; grid-template-columns: 1fr; }
    .skills-grid { display: grid; grid-template-columns: 1fr; }
    .language-card { grid-column: auto; }
}

/* v13: source documents and implementation proof */
.implementation-proof {
    padding-top: 2px;
}
.implementation-proof-label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.implementation-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.implementation-proof-grid a {
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    padding: 9px;
    border: 1px solid #d7e0ee;
    border-radius: 13px;
    background: rgba(255,255,255,.88);
    color: var(--text);
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.implementation-proof-grid a:hover,
.implementation-proof-grid a:focus-visible {
    transform: translateY(-1px);
    border-color: #b8c8e2;
    box-shadow: 0 8px 20px rgba(44,73,132,.08);
}
.implementation-proof-grid img {
    width: 44px;
    height: 58px;
    object-fit: cover;
    object-position: top center;
    border: 1px solid #e0e5ed;
    border-radius: 6px;
    background: #fff;
}
.implementation-proof-grid span { min-width: 0; }
.implementation-proof-grid b { display: block; font-size: 14px; line-height: 1.2; }
.implementation-proof-grid small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.implementation-proof-grid > a > .icon { width: 16px; height: 16px; color: var(--blue-dark); }
.document-source {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--blue-dark);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.document-source:hover,
.document-source:focus-visible { background: var(--surface); }
.document-source .icon { width: 14px; height: 14px; }
.document-source[hidden] { display: none !important; }

@media (max-width: 860px) {
    .implementation-proof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .implementation-proof-label { font-size: 11px; }
    .implementation-proof-grid a { grid-template-columns: 40px minmax(0,1fr) 16px; padding: 8px; }
    .implementation-proof-grid img { width: 40px; height: 52px; }
    .implementation-proof-grid b { font-size: 13px; }
    .implementation-proof-grid small { font-size: 10.5px; }
    .document-dialog-bar { flex-wrap: wrap; }
    .document-dialog-heading { flex: 1 1 calc(100% - 132px); }
    .document-source { order: 3; width: 100%; justify-content: center; margin-left: 0; }
}

/* v14: chronological document archive + clearer micro-interactions */
.certificate-years {
    display: grid;
    gap: 34px;
}
.certificate-year-section {
    min-width: 0;
}
.certificate-year-section[hidden] { display: none !important; }
.certificate-year-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 13px;
    padding: 0 2px 10px;
    border-bottom: 1px solid var(--line);
}
.certificate-year-heading h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -.035em;
}
.certificate-year-heading span {
    color: var(--muted);
    font-size: 13px;
}
.certificate-year-heading span b {
    color: var(--text);
    font-weight: 800;
}
.certificate-year-section .certificate-grid {
    align-items: stretch;
}
.certificate-year-section .certificate-card {
    height: 100%;
}
.certificate-year-section .certificate-card:not(.certificate-major) {
    display: flex;
    flex-direction: column;
}
.certificate-year-section .certificate-card:not(.certificate-major) .certificate-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.certificate-year-section .certificate-card:not(.certificate-major) .certificate-card-body small {
    margin-top: auto;
    padding-top: 10px;
}

/* Keep the interactive layer visible without making the page noisy. */
.scroll-progress { height: 3px; }
.scroll-progress span { box-shadow: 0 0 10px rgba(49,91,255,.28); }
.nav-links a::after { transition: width .22s ease, opacity .22s ease; }
.nav-links a.is-active::after { width: 24px; }
.filter { transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.filter:hover { transform: translateY(-1px); }
.certificate-card { transition: transform .2s cubic-bezier(.2,.75,.25,1), border-color .2s ease, box-shadow .2s ease; }
.project-card, .featured-project { transition: transform .22s cubic-bezier(.2,.75,.25,1), box-shadow .22s ease, border-color .22s ease; }
@media (hover:hover) and (pointer:fine) {
    .project-card:hover { transform: translateY(-3px); }
    .featured-project:hover { transform: translateY(-2px); }
}
.motion-ready .reveal-item { transform: translateY(16px); }
.motion-ready .reveal-item.is-visible { animation-duration: .52s; }

@media (max-width: 860px) {
    .certificate-years { gap: 28px; }
    .certificate-year-heading { margin-bottom: 10px; }
    .certificate-year-heading h3 { font-size: 25px; }
    .certificate-year-section .certificate-card:not(.certificate-major) { display: grid; }
    .certificate-year-section .certificate-card:not(.certificate-major) .certificate-card-body { display: flex; }
}
@media (max-width: 640px) {
    .certificate-years { gap: 24px; }
    .certificate-year-heading { padding-bottom: 8px; }
    .certificate-year-heading h3 { font-size: 23px; }
    .certificate-year-heading span { font-size: 12px; }
}

/* v15: mobile and tablet stabilization */
html, body { max-width: 100%; overflow-x: clip; }
img, svg { max-width: 100%; }
.hero-copy, .profile-panel, .featured-project, .featured-project-copy, .featured-result,
.project-card, .career-column, .skill-feature, .skill-block, .language-card,
.publication-volume, .patent-card, .certificate-card, .contact-cta-inner { min-width: 0; }
.photo-frame img { filter: none !important; transform: none !important; transition: none !important; }

@media (max-width: 1100px) {
    .container { width: min(calc(100% - 40px), var(--container)); }
    .hero { grid-template-columns: minmax(0,1fr) 300px; gap: 30px; min-height: 600px; }
    .hero h1 { font-size: clamp(52px, 7.2vw, 72px); }
    .hero-lead { font-size: 19px; }
    .profile-panel { align-self: center; }
    .photo-frame { height: 350px; }
    .highlights { gap: 12px; }
    .highlight { min-width: 0; }
    .project-card-wide, .project-card-regular { grid-column: span 6; }
    .career-layout { gap: 16px; }
    .research-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .patent-card { grid-column: 1 / -1; min-height: 300px; }
}

@media (max-width: 860px) {
    :root { --header: 62px; }
    body { font-size: 18px; }
    .container { width: min(calc(100% - 32px), var(--container)); }
    .navbar { min-height: var(--header); grid-template-columns: 1fr auto; }
    .brand-text strong { font-size: 15px; }
    .menu-toggle { display: grid; flex: 0 0 auto; }
    .mobile-menu {
        top: calc(var(--header) + 8px);
        left: 12px;
        right: 12px;
        max-height: calc(100dvh - var(--header) - 24px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    .mobile-menu a, .mobile-search { min-height: 52px; font-size: 16px; }

    .hero { grid-template-columns: 1fr; gap: 22px; min-height: 0; padding-block: 40px 30px; }
    .hero-copy { max-width: 720px; }
    .hero h1 { font-size: clamp(50px, 10vw, 68px); }
    .hero-lead { max-width: 680px; font-size: 19px; }
    .profile-panel {
        width: 100%;
        display: grid;
        grid-template-columns: 180px minmax(0,1fr);
        align-items: stretch;
        border-radius: 20px;
    }
    .photo-frame { height: 220px; }
    .profile-panel-body { display: flex; flex-direction: column; justify-content: center; padding: 22px; }
    .profile-panel-body > div:first-child strong { font-size: 20px; }
    .profile-panel-body > div:first-child p { font-size: 15px; }
    .profile-education { grid-template-columns: 1fr; gap: 5px; }
    .profile-education b { text-align: left; }
    .highlights { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding-bottom: 30px; }
    .highlight { min-height: 112px; padding: 15px; }
    .highlight strong { font-size: 18px; }
    .highlight p { font-size: 13px; }

    .section { padding-block: 64px; }
    .section-title { margin-bottom: 30px; }
    .section-title h2 { font-size: clamp(39px, 7vw, 50px); }

    .featured-project { grid-template-columns: 1fr; }
    .featured-result { border-left: 0; border-top: 1px solid #dce5f6; }
    .pipeline-visual { grid-template-columns: repeat(5,minmax(0,1fr)); }
    .pipeline-node { min-width: 0; }
    .implementation-proof-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
    .project-card-wide, .project-card-regular { grid-column: auto; }
    .project-visual, .project-card-regular .project-visual { min-height: 170px; }

    .career-layout { grid-template-columns: 1fr; gap: 14px; }
    .career-column { padding: 24px; }
    .timeline-card p { max-width: 720px; }

    .skills-layout { grid-template-columns: 1fr !important; gap: 14px; }
    .skills-grid { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 14px; }
    .skill-feature { min-height: 0 !important; }
    .language-card { grid-column: 1 / -1 !important; }

    .research-grid { grid-template-columns: 1fr; gap: 14px; }
    .publication-volume, .patent-card { min-height: 0; }
    .publication-volume-head { grid-template-columns: 100px minmax(0,1fr); }
    .publication-cover { width: 100px; height: 138px; }
    .publication-article strong { font-size: 16px; }
    .publication-article small { font-size: 13px; }
    .patent-card { grid-column: auto; }

    .filters-wrap { top: calc(var(--header) + 6px); margin-inline: -4px; overflow: hidden; }
    .filters { width: 100%; padding-bottom: 1px; scroll-snap-type: x proximity; }
    .filter { min-height: 42px; font-size: 14px; scroll-snap-align: start; }
    .certificate-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .certificate-major { grid-column: span 2; }
    .certificate-year-section .certificate-card:not(.certificate-major) { display: flex; }
    .certificate-card-body h3, .certificate-major .certificate-card-body h3 { font-size: 17px; }
    .certificate-card-body small, .certificate-major .certificate-card-body small { font-size: 12px; }

    .contact-cta-inner { grid-template-columns: 52px minmax(0,1fr); gap: 16px; }
    .contact-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
    .footer-bottom { grid-template-columns: 1fr auto; gap: 14px; }
    .footer-links { grid-column: 1 / -1; grid-row: 2; }

    .search-dialog { width: min(94vw, 720px); }
    .document-dialog { width: min(96vw, 900px); }
}

@media (max-width: 640px) {
    body { font-size: 17px; }
    .container { width: min(calc(100% - 24px), var(--container)); }
    .brand-mark { width: 36px; height: 36px; }
    .brand-text strong { font-size: 14px; }

    .hero { padding-block: 28px 22px; gap: 18px; }
    .eyebrow { font-size: 11px; }
    .hero h1 { font-size: clamp(44px, 13.5vw, 58px); line-height: .96; }
    .hero-lead { display: none; }
    .hero-lead-mobile { display: block; margin-top: 16px; font-size: 17px; line-height: 1.48; }
    .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
    .hero-actions .button { width: 100%; min-width: 0; padding-inline: 12px; justify-content: center; font-size: 14px; }
    .stack-strip { margin-top: 20px; }
    .stack-strip > span { display: block; width: 100%; margin-bottom: 9px; font-size: 12px; }
    .stack-strip ul { gap: 6px; }
    .stack-strip li { min-height: 36px; padding-inline: 10px; font-size: 14px; }
    .stack-strip li small { display: none; }
    .profile-links { gap: 10px 14px; margin-top: 16px; }
    .profile-links a { font-size: 13px; }
    .profile-panel { grid-template-columns: 112px minmax(0,1fr); border-radius: 16px; }
    .photo-frame { height: 148px; }
    .photo-frame img { object-position: 50% 15%; }
    .profile-panel-body { padding: 14px; }
    .profile-panel-body > div:first-child strong { font-size: 17px; }
    .profile-panel-body > div:first-child p { margin-top: 4px; font-size: 13px; }
    .profile-education { margin-top: 9px; padding-top: 9px; }
    .profile-education span { font-size: 10px; }
    .profile-education b { font-size: 13px; line-height: 1.25; }

    .highlights { grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 22px; }
    .highlight { min-height: 100px; grid-template-columns: 36px 1fr; gap: 9px; padding: 12px; border-radius: 14px; }
    .highlight-icon { width: 36px; height: 36px; }
    .highlight > i { display: none; }
    .highlight strong { font-size: 15px; }
    .highlight p { font-size: 11px; line-height: 1.3; }

    .section { padding-block: 50px; }
    .section-title { margin-bottom: 24px; }
    .section-kicker { min-height: 30px; margin-bottom: 9px; font-size: 11px; }
    .section-kicker-icon { width: 30px; height: 30px; }
    .section-title h2 { font-size: clamp(33px, 9.5vw, 42px); line-height: 1.02; }

    .featured-project-copy, .featured-result { padding: 20px; }
    .featured-project h3 { font-size: clamp(30px, 8.6vw, 38px); }
    .featured-copy-block p { font-size: 16px; }
    .pipeline-visual { grid-template-columns: 1fr; gap: 7px; }
    .pipeline-node { min-height: 72px; flex-direction: row; justify-content: flex-start; text-align: left; gap: 10px; padding: 10px 12px; }
    .pipeline-node > span { margin: 0; }
    .pipeline-arrow { display: none; }
    .implementation-proof-grid { grid-template-columns: 1fr; }
    .project-grid { grid-template-columns: 1fr; gap: 10px; }
    .project-visual, .project-card-regular .project-visual { min-height: 145px; }
    .project-card-body { padding: 17px; }
    .project-card h3 { font-size: 22px; }
    .project-card > .project-card-body > p { font-size: 15px; }

    .career-column { padding: 18px; border-radius: 16px; }
    .column-title { font-size: 19px; }
    .timeline-rail { padding-left: 22px; }
    .timeline-card h4 { font-size: 19px; }
    .timeline-card strong { font-size: 14px; }
    .timeline-card p { font-size: 14px; }

    .skills-grid { grid-template-columns: 1fr !important; gap: 10px; }
    .language-card { grid-column: auto !important; }
    .skill-feature, .skill-block, .language-card { padding: 18px; border-radius: 16px; }
    .skill-feature h3 { font-size: 27px; }
    .skill-feature li, .skill-block li { font-size: 14px; }

    .publication-volume { padding: 15px; border-radius: 16px; }
    .publication-volume-head { grid-template-columns: 72px minmax(0,1fr); gap: 12px; }
    .publication-cover { width: 72px; height: 100px; }
    .publication-volume-title h3 { font-size: 17px; line-height: 1.25; }
    .publication-volume-meta { font-size: 10px; }
    .publication-article { grid-template-columns: minmax(0,1fr) 15px; gap: 8px; padding: 11px; }
    .publication-article > span { display: none; }
    .publication-article strong { font-size: 14px; line-height: 1.35; }
    .publication-article small { font-size: 12px; }
    .patent-card { padding: 18px; border-radius: 16px; }
    .patent-symbol { margin-bottom: 18px; }
    .patent-card > strong { font-size: 27px; }
    .patent-card h3 { font-size: 21px; }

    .filters-wrap { margin: 0 -2px 16px; padding: 6px; border-radius: 12px; }
    .filter { min-height: 40px; padding-inline: 11px; font-size: 13px; }
    .filter b { min-width: 23px; height: 23px; font-size: 10px; }
    .certificate-years { gap: 22px; }
    .certificate-year-heading { align-items: center; gap: 10px; }
    .certificate-year-heading h3 { font-size: 24px; }
    .certificate-year-heading span { font-size: 11px; text-align: right; }
    .certificate-grid { grid-template-columns: 1fr; gap: 8px; }
    .certificate-major { grid-column: auto; }
    .certificate-card, .certificate-major,
    .certificate-year-section .certificate-card:not(.certificate-major) {
        height: auto;
        display: grid;
        grid-template-columns: 102px minmax(0,1fr);
        align-items: stretch;
        border-radius: 13px;
    }
    .certificate-thumb, .certificate-major .certificate-thumb {
        min-height: 116px;
        height: 100%;
        aspect-ratio: auto;
        padding: 7px;
        border: 0;
        border-right: 1px solid var(--line);
    }
    .certificate-card-body, .certificate-major .certificate-card-body {
        min-height: 116px !important;
        display: flex !important;
        flex-direction: column;
        justify-content: center !important;
        padding: 11px 12px;
    }
    .certificate-card-body p { font-size: 10px; line-height: 1.3; }
    .certificate-card-body h3, .certificate-major .certificate-card-body h3 { margin-top: 5px; font-size: 14px; line-height: 1.28; }
    .certificate-card-body small, .certificate-major .certificate-card-body small { margin-top: 5px !important; padding-top: 0 !important; font-size: 10.5px; line-height: 1.3; }
    .certificate-thumb > span { display: none; }

    .contact-cta { padding: 34px 0; }
    .contact-cta-inner { grid-template-columns: 42px minmax(0,1fr); gap: 11px; padding: 17px; border-radius: 17px; }
    .contact-icon { width: 42px; height: 42px; border-radius: 12px; }
    .contact-copy h2 { font-size: 24px; }
    .contact-copy p { overflow-wrap: anywhere; font-size: 13px; }
    .contact-actions { display: grid; grid-template-columns: 1fr; gap: 7px; }
    .contact-actions .button { width: 100%; justify-content: center; }
    .footer-bottom { grid-template-columns: 1fr auto; gap: 10px; padding-block: 18px 24px; }
    .footer-links { gap: 10px; }

    .document-dialog { width: 100vw; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
    .document-dialog-bar { min-height: 58px; padding: 8px 10px; }
    .document-dialog-heading { min-width: 0; }
    .document-dialog-heading strong { max-width: 48vw; font-size: 13px; }
    .document-dialog-heading span { font-size: 11px; }
    .document-source { order: 3; width: 100%; min-height: 40px; justify-content: center; margin: 6px 0 0; }
    .document-dialog-body { max-height: calc(100dvh - 110px); padding: 8px; }
    .search-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
    .search-panel { max-height: calc(100dvh - 16px); }
    .search-input-wrap input { min-width: 0; font-size: 16px; }
    .search-hint > span:last-child { display: none; }
    .search-result { grid-template-columns: 68px minmax(0,1fr) 14px; gap: 9px; }
}

@media (max-width: 420px) {
    .container { width: min(calc(100% - 20px), var(--container)); }
    .hero h1 { font-size: clamp(41px, 13vw, 52px); }
    .hero-actions { grid-template-columns: 1fr; }
    .profile-panel { grid-template-columns: 96px minmax(0,1fr); }
    .photo-frame { height: 136px; }
    .profile-panel-body { padding: 12px; }
    .highlights { grid-template-columns: 1fr; }
    .highlight { min-height: 78px; grid-template-columns: 36px minmax(0,1fr); }
    .project-card-body { padding: 15px; }
    .publication-volume-head { grid-template-columns: 62px minmax(0,1fr); }
    .publication-cover { width: 62px; height: 88px; }
    .certificate-card, .certificate-major,
    .certificate-year-section .certificate-card:not(.certificate-major) { grid-template-columns: 88px minmax(0,1fr); }
    .certificate-thumb, .certificate-major .certificate-thumb,
    .certificate-card-body, .certificate-major .certificate-card-body { min-height: 108px !important; }
    .certificate-card-body h3, .certificate-major .certificate-card-body h3 { font-size: 13.5px; }
    .filter { min-height: 38px; font-size: 12.5px; }
}
