@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #121512;
  --bg-soft: #181c17;
  --surface: #1d211c;
  --ink: #eeeadd;
  --muted: #a7ada0;
  --quiet: #8c9486;
  --sage: #c5d4b4;
  --brass: #b69766;
  --line: rgba(218, 226, 204, .17);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --gutter: clamp(28px, 6.2vw, 112px);
  --max-width: 1600px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.8 var(--font); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
::selection { color: var(--bg); background: var(--sage); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; background: none; border: 0; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { padding: 0; }
img { display: block; max-width: 100%; }
svg, canvas { display: block; max-width: 100%; }
p, h1, h2, h3, h4 { margin: 0; }
button, input, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--sage); outline-offset: 7px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 200; padding: 12px 22px; background: var(--sage); color: var(--bg); }
.skip-link:focus { top: 12px; }
.reading-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 130; background: transparent; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; transform-origin: left; transform: scaleX(0); background: var(--sage); }
.site-header { height: 88px; padding: 0 var(--gutter); position: fixed; inset: 0 0 auto; z-index: 90; display: flex; align-items: center; gap: 38px; background: linear-gradient(to bottom, rgba(18,21,18,.97), rgba(18,21,18,.78)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(218,226,204,.05); }
.wordmark { font-family: Georgia, serif; font-size: 24px; letter-spacing: -.08em; font-weight: 700; line-height: 1; white-space: nowrap; }
.wordmark span { color: var(--sage); }
.desktop-nav { margin-left: auto; display: flex; gap: clamp(20px, 2.8vw, 44px); align-items: center; }
.desktop-nav a, .header-contact { font-size: 13px; color: var(--muted); transition: color .2s; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--ink); }
.desktop-nav a.active { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 9px; }
.header-contact { color: var(--ink); padding-left: 30px; border-left: 1px solid var(--line); }
.header-contact span { margin-left: 13px; color: var(--sage); }
.menu-toggle { display: none; }
.chapter-nav { position: fixed; right: 23px; top: 50%; transform: translateY(-50%); z-index: 70; display: grid; gap: 5px; }
.chapter-nav a { width: 25px; height: 28px; display: flex; align-items: center; justify-content: center; position: relative; }
.chapter-nav a span { width: 4px; height: 4px; background: #6f756b; border-radius: 50%; transition: background .25s, transform .25s; }
.chapter-nav a.active span { background: var(--sage); transform: scale(1.8); box-shadow: 0 0 0 4px rgba(197,212,180,.1); }
.chapter-nav a::before { content: attr(data-label); position: absolute; right: 32px; font-size: 12px; background: rgba(18,21,18,.92); color: var(--ink); padding: 2px 8px; white-space: nowrap; opacity: 0; transform: translateX(4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.chapter-nav a:hover::before, .chapter-nav a:focus-visible::before { opacity: 1; transform: none; }
.section { position: relative; padding: 132px var(--gutter); max-width: var(--max-width); margin-inline: auto; scroll-margin-top: 86px; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .13em; color: var(--sage); line-height: 1.7; }
.muted { color: var(--muted); }
.section-heading { margin-bottom: 65px; }
.section-heading h2 { font-size: clamp(34px, 3.9vw, 60px); letter-spacing: -.045em; line-height: 1.35; font-weight: 500; margin-top: 25px; }
.section-heading > p:last-child:not(.eyebrow) { color: var(--muted); margin-top: 28px; font-size: 15px; }
.split-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.split-heading > p:last-child { margin-bottom: 8px; max-width: 360px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 13px 23px; font-size: 14px; border: 1px solid transparent; line-height: 1.6; transition: background .2s, color .2s, transform .2s; }
.button-primary { background: var(--sage); color: #172012; }
.button-primary:hover { background: #dbe5cd; transform: translateY(-2px); }
.button span { font-size: 19px; }
.text-link { display: inline-flex; align-items: center; gap: 25px; font-size: 14px; padding: 12px 0; line-height: 1.7; border-bottom: 1px solid rgba(218,226,204,.28); transition: border-color .2s, color .2s; }
.text-link:hover { color: var(--sage); border-color: var(--sage); }
.text-link span { font-size: 19px; }
.action-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: flex-start; align-self: flex-start; width: max-content; max-width: 100%; min-height: 64px; padding: 7px 24px 7px 7px; gap: 18px; border: 1px solid rgba(218,226,204,.18); border-radius: 999px; color: var(--ink); background: transparent; font: 400 16px/1.4 var(--font); text-decoration: none; white-space: nowrap; transition: border-color .2s, background .2s; }
.action-button-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: #eba65e; color: #1b1c15; }
.action-button-icon svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.action-button-label { display: block; line-height: 1.4; }
.action-button:hover { border-color: rgba(235,166,94,.55); background: rgba(235,166,94,.035); }
.action-button:focus-visible { outline: 2px solid #eba65e; outline-offset: 4px; }
.project-copy > .action-button { margin-top: 12px; }
@media (max-width: 600px) {
  .action-button { min-height: 54px; padding: 6px 20px 6px 6px; gap: 14px; font-size: 14px; }
  .action-button-icon { flex-basis: 40px; width: 40px; height: 40px; }
  .action-button-icon svg { width: 19px; height: 19px; }
}

/* Compact opening with résumé rows and an interactive character portrait. */
.hero { min-height: max(700px, 100svh); display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; padding-top: 122px; padding-bottom: 95px; isolation: isolate; }
.hero-copy { position: relative; z-index: 3; min-width: 0; }
.hero h1 { margin: 0; font-size: clamp(64px, 6.1vw, 94px); letter-spacing: -.045em; line-height: 1.12; font-weight: 600; }
.english-name { display: block; margin-top: 18px; font-size: 23px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.hero-birth { margin-top: 12px; color: var(--muted); font-size: 16px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 19px; }
.hero-links a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 13px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); font-size: 12px; transition: color .2s, border-color .2s; }
.hero-links a:hover { color: var(--ink); border-color: var(--brass); }
.hero-links a span { color: var(--brass); font-size: 16px; }
.hero-overview { margin-top: 36px; border-bottom: 1px solid var(--line); }
.profile-row { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 20px; padding: 23px 0; border-top: 1px solid var(--line); }
.profile-label { display: flex; align-items: center; align-self: start; gap: 9px; font-size: 13px; font-weight: 400; line-height: 1.8; color: var(--muted); padding-top: 2px; white-space: nowrap; }
.profile-label svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--brass); }
.education-list { display: grid; gap: 19px; }
.education-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 12px; align-items: baseline; }
.education-entry h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; font-size: 17px; line-height: 1.5; font-weight: 600; }
.education-entry > p { grid-column: 1; font-size: 12px; color: var(--muted); }
.education-date { grid-column: 2; grid-row: 1 / 3; text-align: right; color: var(--quiet); font-size: 12px; font-variant-numeric: tabular-nums; }
.education-date > span { display: block; font-size: 11px; margin-top: 2px; }
.internship-period { display: flex; justify-content: space-between; padding-top: 9px; border-top: 2px solid var(--brass); color: var(--quiet); font-size: 11px; font-variant-numeric: tabular-nums; }
.internship-summary h3 { font-size: 18px; font-weight: 600; margin-top: 10px; }
.internship-role { font-size: 13px; color: #d5dacd; margin-top: 5px; }
.internship-detail { font-size: 12px; color: var(--quiet); margin-top: 1px; }
.hero-portrait { position: relative; width: 100%; max-width: 380px; aspect-ratio: 720 / 880; margin: 0 auto; display: grid; place-items: center; align-self: center; z-index: 1; }
#portrait-canvas { position: relative; width: 100%; height: 100%; object-fit: contain; opacity: 0; z-index: 2; transition: opacity .45s; mask-image: linear-gradient(#000 82%, transparent); -webkit-mask-image: linear-gradient(#000 82%, transparent); }
.canvas-ready #portrait-canvas { opacity: 1; }





.section-index { position: absolute; right: var(--gutter); bottom: 39px; font-family: "Courier New", monospace; color: var(--quiet); font-size: 12px; letter-spacing: .1em; }

/* The route is deliberately a spatial narrative, not a geographic basemap. */
.journey-section { border-top: 1px solid var(--line); }
.journey-section .section-heading { margin-bottom: 28px; }
.journey-layout { display: grid; grid-template-columns: 1.65fr 1fr; gap: 50px; align-items: center; }
.journey-visual { min-width: 0; }
.journey-map { width: 100%; color: var(--sage); }
.journey-map svg { width: 100%; height: auto; overflow: visible; }
.route-background { stroke: rgba(197,212,180,.1); stroke-width: 7; fill: none; }
.route-line { fill: none; stroke: url(#routeGradient); stroke-width: 1.5; stroke-dasharray: 5 6; }
.map-halo { fill: rgba(197,212,180,.03); stroke: rgba(197,212,180,.1); stroke-width: 1; }
.map-point { fill: #8c9486; transition: fill .4s; }
.map-point.active { fill: var(--sage); }
.map-point.active circle { stroke: rgba(197,212,180,.2); stroke-width: 13; paint-order: stroke; }
.map-point text { font-family: var(--font); font-size: 17px; }
.map-point .map-small { font-size: 12px; letter-spacing: .06em; }
.map-note { fill: var(--quiet); font-size: 12px; letter-spacing: .08em; }
.journey-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.journey-tabs button { position: relative; text-align: left; color: var(--quiet); padding: 22px 10px 10px 0; font-size: 13px; transition: color .2s; }
.journey-tabs button::before { content: ""; width: 7px; height: 7px; background: #454d40; border-radius: 50%; position: absolute; left: 0; top: -4px; transition: background .2s; }
.journey-tabs button span { display: block; font-family: Georgia, serif; font-size: 25px; line-height: 1.3; margin-bottom: 5px; }
.journey-tabs button[aria-selected="true"] { color: var(--ink); }
.journey-tabs button[aria-selected="true"]::before { background: var(--sage); box-shadow: 0 0 0 6px rgba(197,212,180,.07); }
.journey-tabs button:hover { color: var(--sage); }
.journey-detail { position: relative; min-height: 320px; border-left: 1px solid var(--line); padding: 13px 0 25px 38px; margin-top: 30px; overflow: hidden; }
.journey-detail .eyebrow { font-size: 12px; letter-spacing: .07em; color: var(--brass); }
.journey-detail h3 { font-size: clamp(25px, 2.3vw, 34px); line-height: 1.4; font-weight: 500; margin-top: 24px; }
.journey-degree { color: #d2d9c7; font-size: 14px; margin-top: 7px; }
#journey-description { color: var(--muted); margin-top: 25px; font-size: 14px; line-height: 1.9; max-width: 400px; }
.journey-tags { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; position: relative; z-index: 1; }
.journey-tags span { color: var(--sage); font-size: 12px; border-bottom: 1px solid rgba(197,212,180,.26); padding-bottom: 4px; }
.journey-number { position: absolute; right: 0; bottom: -27px; font: 150px/1 Georgia, serif; letter-spacing: -.08em; color: rgba(197,212,180,.035); pointer-events: none; }

/* Project switches preserve one large, readable story at a time. */
.research-section { background: var(--bg-soft); max-width: none; }
.research-section > * { max-width: calc(var(--max-width) - 2 * var(--gutter)); margin-inline: auto; }
.project-tabs { display: flex; border-bottom: 1px solid var(--line); margin-top: 60px; }
.project-tabs button { padding: 17px 0 20px; margin-right: 48px; color: var(--muted); font-size: 14px; position: relative; min-height: 58px; }
.project-tabs button span { color: var(--quiet); font: 12px/1 "Courier New", monospace; margin-right: 12px; }
.project-tabs button::after { content: ""; position: absolute; bottom: -1px; height: 2px; left: 0; right: 0; background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.project-tabs button[aria-selected="true"] { color: var(--ink); }
.project-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.project-tabs button:hover { color: var(--sage); }
.project-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5.2vw, 85px); margin-top: 42px; align-items: start; }
.project-image-wrap { position: relative; width: 100%; max-width: 480px; aspect-ratio: 4 / 3; overflow: hidden; background: #222b20; }
.project-image-wrap > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.65); transition: transform .45s, filter .45s; }
.project-image-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,16,9,.05) 45%, rgba(9,16,9,.73)); pointer-events: none; }
.image-label { position: absolute; bottom: 27px; left: 28px; right: 24px; font-size: 12px; letter-spacing: .08em; color: #f0f2e9; z-index: 1; }
.project-image-no { position: absolute; top: 18px; left: 25px; font: italic 65px/1 Georgia, serif; color: rgba(255,255,244,.7); mix-blend-mode: screen; }
.project-copy { padding: 13px 0 20px; display: flex; flex-direction: column; align-items: flex-start; }
.project-copy .eyebrow { color: var(--brass); font-size: 12px; }
.project-copy h3 { font-size: clamp(26px, 2.6vw, 37px); font-weight: 500; letter-spacing: -.035em; line-height: 1.5; margin-top: 19px; white-space: pre-line; }
.project-partner { font-size: 13px; color: var(--sage); margin-top: 12px; }
#project-summary { color: var(--muted); font-size: 14px; line-height: 1.95; margin-top: 25px; }
.project-methods { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; }
.project-methods span, .small-tags span { color: #bac5af; font-size: 12px; line-height: 1.8; border: 1px solid rgba(197,212,180,.2); padding: 3px 10px; }
.project-output { display: flex; gap: 55px; padding: 24px 0 21px; margin-top: auto; }
.project-output > div { display: flex; flex-direction: column; }
.project-output strong { font: 43px/1.2 Georgia, serif; color: var(--ink); font-weight: 400; letter-spacing: -.04em; }
.project-output span { color: var(--quiet); font-size: 12px; margin-top: 7px; }
.project-copy > .text-link { margin-top: 9px; }
.workflow { margin-top: 78px; padding-top: 28px; border-top: 1px solid var(--line); }
.workflow > .eyebrow { color: var(--quiet); font-size: 12px; }
.workflow ol { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(4,1fr); }
.workflow li { position: relative; padding-left: 25px; border-left: 1px solid var(--line); }
.workflow li:first-child { border-left: 0; padding-left: 0; }
.workflow li > span { font: 12px/1.5 "Courier New", monospace; color: var(--brass); display: block; margin-bottom: 10px; }
.workflow strong { font-size: 16px; font-weight: 400; }
.workflow li p { color: var(--quiet); font-size: 12px; margin-top: 4px; }

.publication-section { padding-top: 140px; padding-bottom: 140px; }
.publication-section .section-heading { margin-bottom: 55px; }
.publication-item { border-top: 1px solid var(--line); }
.publication-item:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.publication-item summary { display: grid; grid-template-columns: 105px minmax(0,1fr) auto 22px; gap: 26px; padding: 34px 0; align-items: center; }
.publication-no { font: 12px/1.6 "Courier New", monospace; letter-spacing: .05em; color: var(--quiet); }
.publication-item summary h3 { font-family: Georgia, "Microsoft YaHei", sans-serif; font-weight: 400; font-size: clamp(21px, 2.1vw, 31px); line-height: 1.35; letter-spacing: -.025em; }
.publication-item summary p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.publication-status { font-size: 12px; color: var(--sage); white-space: nowrap; }
.expand-icon { font-family: Georgia, serif; font-size: 25px; font-weight: 400; color: var(--sage); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; transition: transform .25s; }
details[open] > summary .expand-icon { transform: rotate(45deg); }
.publication-item summary:hover h3 { color: var(--sage); }
.publication-body { padding: 0 70px 35px 131px; max-width: 1030px; }
.publication-body p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.publication-body p + p { margin-top: 15px; }
.publication-body .paper-title { color: #d8decd; font: 19px/1.6 Georgia, serif; }

.beyond-section { padding-top: 115px; border-top: 1px solid var(--line); }
.experience-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 70px; align-items: start; }
.photo-frame { width: 100%; position: relative; display: block; overflow: hidden; background: var(--surface); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.65); transition: transform .6s, filter .6s; }
.project-image-wrap.is-pointer-active > img, .photo-frame.is-pointer-active img { transform: perspective(850px) rotateX(var(--photo-rx, 0deg)) rotateY(var(--photo-ry, 0deg)) translate(var(--photo-tx, 0px), var(--photo-ty, 0px)) scale(1.06); filter: saturate(1); transition: transform .16s ease-out, filter .4s; }
.project-image-wrap::after, .photo-frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--photo-x, 50%) var(--photo-y, 50%), rgba(255,241,209,.14), transparent 65%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.project-image-wrap.is-pointer-active::after, .photo-frame.is-pointer-active::after { opacity: 1; }

.experience-feature .photo-frame { aspect-ratio: 3 / 2; max-width: 440px; }
.experience-secondary { margin-top: 70px; }
.experience-secondary .photo-frame { aspect-ratio: 3 / 2; max-width: 380px; }
.experience-caption { padding-top: 26px; }
.experience-caption .eyebrow { color: var(--brass); font-size: 12px; letter-spacing: .08em; }
.experience-caption h3 { font-weight: 400; font-size: clamp(23px,2.2vw,31px); margin-top: 13px; line-height: 1.45; letter-spacing: -.03em; }
.experience-caption > p:not(.eyebrow) { font-size: 14px; color: var(--muted); margin-top: 15px; line-height: 1.95; }
.small-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.skills-section { display: grid; grid-template-columns: .85fr 1.5fr; gap: 80px; margin-top: 115px; padding-top: 50px; border-top: 1px solid var(--line); }
.skills-section h3 { font-weight: 400; font-size: clamp(28px,3vw,43px); line-height: 1.5; margin-top: 24px; letter-spacing: -.035em; }
.skill-list details { border-bottom: 1px solid var(--line); }
.skill-list details:first-child { border-top: 1px solid var(--line); }
.skill-list summary { display: flex; gap: 25px; align-items: center; font-size: 17px; padding: 23px 0; }
.skill-list summary > span:first-child { color: var(--brass); font: 12px/1.5 "Courier New", monospace; }
.skill-list .expand-icon { margin-left: auto; }
.skill-list details p { padding: 0 40px 25px 40px; color: var(--muted); line-height: 1.9; font-size: 14px; }

.contact-section { max-width: none; padding-top: 133px; padding-bottom: 0; background: #1c221a; }
.contact-section > * { max-width: calc(var(--max-width) - 2 * var(--gutter)); margin-inline: auto; }
.contact-section h2 { font-size: clamp(40px, 5.5vw, 82px); font-weight: 400; line-height: 1.4; letter-spacing: -.05em; margin-top: 29px; }
.contact-section h2 span { color: var(--sage); }
.contact-intro { color: var(--muted); font-size: 15px; margin-top: 31px; }
.contact-actions { display: flex; align-items: center; gap: 35px; margin-top: 36px; }
.contact-details { display: flex; gap: 70px; margin-top: 65px; margin-bottom: 100px; }
.contact-details > div > span { display: block; font: 12px/1.5 "Courier New", monospace; color: var(--quiet); letter-spacing: .15em; margin-bottom: 12px; }
.contact-details button, .contact-details a { font: 22px/1.4 Georgia, serif; color: #dfe5d7; display: inline-flex; gap: 25px; align-items: center; }
.contact-details button:hover, .contact-details a:hover { color: var(--sage); }
.contact-details button span, .contact-details a span { font: 20px/1 var(--font); color: var(--sage); }
footer { display: flex; align-items: center; gap: 30px; padding: 31px 0; border-top: 1px solid var(--line); }
footer p { margin-left: 18px; color: var(--quiet); font-size: 12px; }
footer p span { margin-left: 25px; }
footer > a:last-child { margin-left: auto; font-size: 12px; color: var(--muted); }

/* Native dialogs retain browser focus trapping and Escape behavior. */
dialog { padding: 0; background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); max-height: calc(100svh - 70px); box-shadow: 0 25px 100px rgba(0,0,0,.45); }
dialog::backdrop { background: rgba(5,8,5,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.project-dialog { width: min(760px, calc(100% - 48px)); }
.dialog-close { position: absolute; z-index: 3; right: 19px; top: 17px; width: 40px; height: 40px; font: 32px/1 Georgia, serif; color: var(--sage); background: rgba(18,21,18,.85); border-radius: 50%; }
.dialog-close:hover { color: var(--ink); background: #30392b; }
.dialog-content { padding: 56px 54px 55px; }
.dialog-content h2 { font-size: 30px; font-weight: 400; line-height: 1.5; letter-spacing: -.025em; margin-top: 18px; }
#dialog-lead { color: var(--muted); font-size: 14px; margin-top: 20px; }
#dialog-sections { margin-top: 30px; }
#dialog-sections h3 { font-size: 17px; font-weight: 500; margin: 26px 0 10px; color: var(--sage); }
#dialog-sections p, #dialog-sections ul { font-size: 14px; color: var(--muted); line-height: 1.9; }
#dialog-sections ul { padding-left: 20px; }
#dialog-sections li + li { margin-top: 9px; }
#dialog-sections img { margin-top: 25px; max-height: 420px; width: 100%; object-fit: contain; background: #10150f; }



.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 16px); padding: 12px 22px; background: var(--sage); color: var(--bg); font-size: 14px; z-index: 150; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 7px 30px rgba(0,0,0,.2); max-width: calc(100vw - 32px); text-align: center; }
.toast.visible, .toast.show, .toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s, transform .75s; }
.js-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 1600px) {
  .site-header { padding-inline: max(var(--gutter), calc((100vw - 1600px) / 2 + var(--gutter))); }
}

@media (max-width: 1100px) {
  :root { --gutter: 46px; }
  .site-header { gap: 24px; }
  .desktop-nav { gap: 25px; }
  .header-contact { padding-left: 22px; }
  .chapter-nav { right: 11px; }
  .journey-layout { gap: 25px; grid-template-columns: 1.4fr 1fr; }
  .journey-detail { padding-left: 25px; }
  .journey-detail h3 { font-size: 28px; }
  .project-panel { gap: 35px; }
  .project-copy h3 { font-size: 28px; }
  .project-output { gap: 35px; }
  .publication-item summary { grid-template-columns: 80px minmax(0,1fr) auto 20px; gap: 20px; }
  .publication-body { padding-left: 100px; }
  .publication-item summary h3 { font-size: 25px; }
  .experience-grid { gap: 40px; }
  .skills-section { gap: 55px; }
}

@media (max-width: 800px) {
  :root { --gutter: 32px; }
  .site-header { height: 74px; }
  .desktop-nav { display: none; }
  .header-contact { margin-left: auto; border: 0; padding-left: 0; }
  .menu-toggle { display: flex; width: 30px; height: 42px; flex-direction: column; justify-content: center; gap: 6px; }
  .menu-toggle span { width: 23px; height: 1px; background: var(--ink); transition: transform .25s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-nav { position: fixed; inset: 74px 0 auto; z-index: 85; background: #181d17; border-bottom: 1px solid var(--line); display: grid; padding: 17px var(--gutter) 25px; box-shadow: 0 30px 40px rgba(0,0,0,.25); }
  .mobile-nav a { padding: 13px 0; border-bottom: 1px solid rgba(218,226,204,.08); font-size: 17px; }
  .mobile-nav a:last-child { border-bottom: 0; }
  .chapter-nav { display: none; }
  .section { padding-top: 95px; padding-bottom: 95px; scroll-margin-top: 73px; }
  .section-heading h2 { font-size: 40px; }
  .split-heading { align-items: flex-start; gap: 25px; }
  .split-heading > p:last-child { font-size: 13px; padding-top: 41px; }
  .journey-layout { grid-template-columns: 1fr; gap: 45px; }
  .journey-map { max-width: 650px; margin-inline: auto; }
  .journey-detail { min-height: 240px; margin-top: 0; padding-top: 0; }
  .journey-detail h3 { margin-top: 16px; }
  #journey-description { max-width: 90%; margin-top: 17px; }
  .journey-number { right: 16px; }
  .project-panel { grid-template-columns: 1fr 1fr; gap: 28px; }
  .project-copy { padding-top: 0; }
  .project-copy h3 { font-size: 24px; }
  .project-copy .eyebrow { font-size: 12px; }
  .project-partner { font-size: 12px; }
  #project-summary { font-size: 13px; }
  .project-tabs button { margin-right: 35px; font-size: 13px; }
  .project-tabs button span { margin-right: 8px; }
  .project-output { gap: 25px; }
  .project-output strong { font-size: 35px; }
  .project-output span { font-size: 12px; }
  .image-label { left: 18px; font-size: 12px; }
  .workflow ol { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .workflow li:nth-child(3) { padding-left: 0; border-left: 0; }
  .publication-item summary { grid-template-columns: 64px minmax(0,1fr) 20px; gap: 15px; }
  .publication-item summary h3 { font-size: 24px; }
  .publication-status { grid-column: 2; grid-row: 2; margin-top: -8px; }
  .publication-item .expand-icon { grid-column: 3; grid-row: 1; }
  .publication-body { padding-left: 79px; padding-right: 30px; }
  .experience-grid { gap: 28px; }
  .experience-secondary { margin-top: 80px; }
  .experience-caption .eyebrow { font-size: 12px; }
  .experience-caption h3 { font-size: 23px; }
  .experience-caption > p:not(.eyebrow) { font-size: 13px; }
  .skills-section { gap: 35px; grid-template-columns: .8fr 1.4fr; margin-top: 80px; }
  .skills-section h3 { font-size: 30px; }
  .skill-list summary { font-size: 15px; gap: 17px; }
  .skill-list details p { padding-left: 31px; padding-right: 10px; font-size: 13px; }
  .contact-section { padding-bottom: 0; }
  .contact-section h2 { font-size: 53px; }
  .contact-details { gap: 45px; }
  .contact-details button, .contact-details a { font-size: 18px; gap: 13px; }
  footer p { margin-left: 0; }
  footer p span { display: none; }
}

@media (max-width: 600px) {
  :root { --gutter: 24px; }
  body { font-size: 14px; }
  .site-header { height: 70px; gap: 23px; }
  .wordmark { font-size: 23px; }
  .header-contact { font-size: 12px; }
  .header-contact span { margin-left: 8px; }
  .mobile-nav { top: 70px; }
  .section { padding-top: 80px; padding-bottom: 80px; scroll-margin-top: 69px; }
  .section-heading { margin-bottom: 39px; }
  .section-heading h2 { font-size: 34px; margin-top: 20px; line-height: 1.4; }
  .section-heading > p:last-child:not(.eyebrow) { font-size: 14px; margin-top: 21px; }
  .eyebrow { font-size: 12px; letter-spacing: .09em; }
  .split-heading { display: block; }
  .split-heading > p:last-child { padding-top: 0; }
  .split-heading > p:last-child br { display: none; }



  .journey-section .section-heading { margin-bottom: 5px; }
  .journey-layout { gap: 35px; }
  .journey-map { margin-top: 12px; }
  .journey-map svg { width: 100%; max-width: 100%; }
  .map-point text { font-size: 28px; }
  .map-point .map-small { font-size: 26px; }
  .map-note { font-size: 26px; }
  .journey-tabs button { font-size: 12px; padding-top: 20px; }
  .journey-tabs button span { font-size: 24px; }
  .journey-detail { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 0; min-height: 265px; }
  .journey-detail .eyebrow { font-size: 12px; }
  .journey-detail h3 { font-size: 28px; }
  .journey-degree { font-size: 13px; }
  #journey-description { max-width: 100%; font-size: 13px; }
  .journey-tags { gap: 10px 15px; }
  .journey-number { font-size: 120px; bottom: -15px; right: 0; }
  .project-tabs { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 11px; margin-top: 30px; }
  .project-tabs button { text-align: left; margin: 0; padding: 13px 0 15px; font-size: 12px; line-height: 1.6; }
  .project-tabs button span { display: block; margin: 0 0 7px; font-size: 12px; }
  .project-panel { grid-template-columns: 1fr; gap: 29px; margin-top: 27px; }
  .project-image-wrap { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .project-image-wrap > img { min-height: 0; width: 100%; height: 100%; }
  .image-label { bottom: 20px; left: 20px; font-size: 12px; }
  .project-image-no { font-size: 54px; left: 20px; top: 15px; }
  .project-copy { padding: 0; }
  .project-copy .eyebrow { font-size: 12px; }
  .project-copy h3 { font-size: 28px; margin-top: 15px; }
  .project-partner { font-size: 13px; }
  #project-summary { font-size: 14px; margin-top: 19px; }
  .project-methods { gap: 7px; margin-top: 19px; }
  .project-methods span { font-size: 12px; padding-inline: 9px; }
  .project-output { gap: 45px; padding-top: 28px; }
  .project-output strong { font-size: 40px; }
  .project-output span { font-size: 12px; }
  .workflow { margin-top: 45px; padding-top: 26px; }
  .workflow ol { gap: 25px 15px; }
  .workflow li { padding-left: 15px; }
  .workflow li strong { font-size: 15px; }
  .workflow li p { font-size: 12px; }
  .publication-item summary { grid-template-columns: minmax(0,1fr) 24px; gap: 12px; padding: 27px 0; }
  .publication-no { grid-column: 1; font-size: 12px; }
  .publication-item summary > div { grid-column: 1; }
  .publication-item summary h3 { font-size: 26px; line-height: 1.35; }
  .publication-item summary p { font-size: 13px; }
  .publication-status { grid-column: 1; grid-row: auto; margin-top: 0; font-size: 12px; }
  .publication-item .expand-icon { grid-column: 2; grid-row: 2; align-self: start; margin-top: 3px; }
  .publication-body { padding: 0 15px 29px 0; }
  .publication-body .paper-title { font-size: 17px; }
  .publication-body p { font-size: 13px; }
  .experience-grid { grid-template-columns: 1fr; gap: 44px; }
  .experience-feature .photo-frame { aspect-ratio: 3 / 2; }
  .experience-secondary { margin-top: 0; margin-left: 35px; }
  .experience-secondary .photo-frame { aspect-ratio: 3 / 2; }
  .experience-caption { padding-top: 22px; }
  .experience-caption .eyebrow { font-size: 12px; }
  .experience-caption h3 { font-size: 25px; }
  .experience-caption > p:not(.eyebrow) { font-size: 14px; }
  .skills-section { grid-template-columns: 1fr; gap: 30px; padding-top: 34px; margin-top: 66px; }
  .skills-section h3 { font-size: 30px; margin-top: 18px; }
  .skills-section h3 br { display: none; }
  .skill-list summary { font-size: 16px; gap: 16px; }
  .skill-list details p { font-size: 13px; padding-left: 31px; padding-right: 0; }
  .contact-section { padding-bottom: 0; }
  .contact-section h2 { font-size: clamp(34px, 9vw, 50px); margin-top: 24px; line-height: 1.45; }
  .contact-section h2 span { display: block; }
  .contact-intro { font-size: 14px; margin-top: 24px; }
  .contact-intro br { display: none; }
  .contact-actions { gap: 27px; margin-top: 29px; }
  .contact-actions .button { font-size: 13px; padding-inline: 17px; gap: 16px; }
  .contact-actions .text-link { font-size: 13px; gap: 10px; }
  .contact-details { display: grid; gap: 26px; margin-top: 43px; margin-bottom: 59px; }
  .contact-details > div > span { font-size: 12px; margin-bottom: 9px; }
  .contact-details button, .contact-details a { font-size: 23px; gap: 20px; }
  footer { flex-wrap: wrap; gap: 24px; padding: 27px 0 30px; }
  footer .wordmark { font-size: 23px; }
  footer p { font-size: 12px; order: 3; flex-basis: 100%; }
  footer p span { display: inline; margin-left: 20px; }
  footer > a:last-child { font-size: 12px; }
  .project-dialog { width: calc(100% - 24px); max-height: calc(100svh - 28px); }
  .dialog-content { padding: 56px 25px 33px; }
  .dialog-content h2 { font-size: 25px; }
  .dialog-close { top: 12px; right: 12px; }



}

@media (max-width: 359px) {
  :root { --gutter: 20px; }
  .section-heading h2 { font-size: 31px; }
  .contact-details button { font-size: 21px; }
  .map-point text { font-size: 32px; }
  .map-point .map-small, .map-note { font-size: 31px; }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1.8fr) minmax(220px, 1fr); gap: 32px; }
  .hero h1 { font-size: 72px; }
  .profile-row { grid-template-columns: 62px minmax(0,1fr); gap: 12px; }
  .education-entry h3 { font-size: 16px; }
  .education-entry > p { font-size: 12px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0,1fr) 240px; gap: 24px 32px; min-height: auto; padding-top: 122px; padding-bottom: 100px; }
  .hero-copy { display: contents; }
  .hero-identity { grid-column: 1; grid-row: 1; }
  .hero-overview { grid-column: 1 / -1; grid-row: 2; margin-top: 16px; }
  .hero-portrait { grid-column: 2; grid-row: 1; }
  .hero h1 { font-size: 68px; }
  .profile-row { grid-template-columns: 78px minmax(0,1fr); gap: 20px; }
  .education-entry { grid-template-columns: minmax(0,1fr) minmax(170px,1fr) auto; align-items: center; }
  .education-entry > p { grid-column: 2; }
  .education-date { grid-column: 3; grid-row: 1; }
}

@media (max-width: 600px) {
  .hero { grid-template-columns: minmax(0,1fr) 130px; gap: 22px 12px; padding-top: 110px; padding-bottom: 84px; }
  .hero h1 { font-size: clamp(44px, 12vw, 62px); }
  .english-name { font-size: 18px; margin-top: 13px; }
  .hero-birth { font-size: 14px; margin-top: 8px; }
  .hero-links { margin-top: 17px; gap: 7px; }
  .hero-links a { padding: 3px 10px; font-size: 11px; gap: 5px; }
  .hero-portrait { align-self: start; margin-top: 14px; }

  .hero-overview { margin-top: 8px; }
  .profile-row { grid-template-columns: 1fr; gap: 15px; padding: 22px 0; }
  .profile-label { font-size: 12px; }
  .education-entry { grid-template-columns: minmax(0,1fr) auto; gap: 3px 10px; }
  .education-entry h3 { font-size: 16px; }
  .education-entry > p { grid-column: 1; }
  .education-date { grid-column: 2; grid-row: 1 / 3; font-size: 11px; }
  .education-date > span { font-size: 10px; }
  .internship-summary h3 { font-size: 17px; margin-top: 9px; }
  .internship-period { font-size: 11px; }
}

@media (max-width: 359px) {
  .hero { grid-template-columns: minmax(0,1fr) 112px; gap: 20px 8px; }
  .hero h1 { font-size: 42px; }
  .english-name { font-size: 16px; }
  .hero-links a { padding-inline: 8px; }
}

@media (hover: none), (pointer: coarse) {

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-ready .reveal { opacity: 1; transform: none; }
}

@media print {
  :root { color-scheme: light; }
  body { background: white; color: #111; font-size: 12px; }
  .site-header, .chapter-nav, .reading-progress, .hero-portrait, .section-index, .menu-toggle, .contact-actions, footer, dialog, .toast { display: none !important; }
  .section { padding: 20px 0; max-width: none; break-inside: avoid; background: white; color: #111; }
  .hero { display: block; min-height: 0; }
  .hero h1 { font-size: 36px; }
  .hero h2, .section-heading h2 { font-size: 24px; }
  .hero-actions, .project-detail-button { display: none; }
  .hero-facts { margin-top: 20px; }
  .reveal, .js-ready .reveal { opacity: 1; transform: none; }
  .project-panel, .experience-grid { display: block; }
  .project-image-wrap, .photo-frame { max-height: 220px; }
  p, .muted, .hero-description, .project-partner, .publication-status, .eyebrow { color: #333 !important; }
  .section-heading { margin-bottom: 20px; }
  .contact-section h2 { font-size: 28px; }
}


/* Education details follow the updated résumé. */
.education-honors { color: var(--brass); font-size: 12px; font-weight: 400; white-space: nowrap; }
.education-entry > .education-lab { grid-column: 1 / -1; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.footprint-honors { color: var(--footprint-accent); font-size: 13px; margin-top: 10px; }
.footprint-lab { color: var(--muted); font-size: 12px; line-height: 1.75; margin-top: 12px; }
.photo-frame { cursor: default; }
