:root {
  --paper: #f2f5f3;
  --white: #ffffff;
  --ink: #172126;
  --soft: #405158;
  --muted: #6e7b80;
  --deep: #123d49;
  --teal: #14766f;
  --coral: #c6533d;
  --yellow: #e0b755;
  --line: #d4dedb;
  --line-strong: #aebfbc;
  --shell: 1160px;
  --header: 70px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 22px); }
body { margin: 0; min-width: 320px; overflow-x: clip; color: var(--ink); background: var(--paper); font-family: "Noto Sans SC", "Yu Gothic", "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.7; letter-spacing: 0; text-rendering: optimizeLegibility; }
button, a { font: inherit; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, a, canvas { -webkit-tap-highlight-color: transparent; }
svg, canvas { display: block; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.lang-en, .lang-ja { display: none !important; }
html[data-language="en"] .lang-zh, html[data-language="en"] .lang-ja { display: none !important; }
html[data-language="en"] .lang-en { display: revert !important; }
html[data-language="ja"] .lang-zh, html[data-language="ja"] .lang-en { display: none !important; }
html[data-language="ja"] .lang-ja { display: revert !important; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1000; padding: 9px 13px; color: #fff; background: var(--deep); }
.skip-link:focus { top: 12px; }
.content-shell, .nav-shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 100; height: var(--header); border-bottom: 1px solid rgba(174,191,188,.72); background: rgba(242,245,243,.94); backdrop-filter: blur(14px); }
.nav-shell { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 180px; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; background: var(--deep); border-radius: 3px; font-size: 11px; font-weight: 800; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 14px; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.name-reading { margin-left: 0.35em; color: var(--teal); font-family: Consolas, "Yu Gothic", sans-serif; font-size: 0.25em; font-weight: 700; letter-spacing: 0.04em; vertical-align: middle; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 26px; margin-left: auto; }
.nav-links a { position: relative; color: var(--soft); font-size: 12px; font-weight: 700; }
.nav-links a::after { content: ""; position: absolute; right: 100%; bottom: -7px; left: 0; height: 2px; background: var(--coral); transition: right 180ms ease; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.language-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; }
.language-switch button { min-width: 31px; height: 29px; padding: 0 6px; border: 0; border-radius: 2px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.language-switch button[aria-pressed="true"] { color: #fff; background: var(--teal); }
.resume-button { height: 37px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; color: #fff; background: var(--deep); border-radius: 3px; font-size: 11px; font-weight: 800; }

.hero { position: relative; min-height: min(720px, calc(100svh - 104px)); overflow: hidden; border-bottom: 1px solid var(--line); background: #eaf0ed; }
#data-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .72; }
.hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(18,61,73,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(18,61,73,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to right, transparent 4%, #000 48%, #000 100%); }
.hero-layout { min-height: inherit; position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr); gap: 76px; align-items: center; padding-block: 64px 72px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--teal); font-family: Consolas, monospace; font-size: 10px; font-weight: 800; }
.eyebrow i { width: 54px; height: 1px; background: var(--coral); }
.hero h1 { margin: 0; color: var(--deep); font-family: Georgia, "Yu Mincho", serif; font-size: clamp(64px, 7.5vw, 108px); font-weight: 500; line-height: .95; letter-spacing: 0; }
.hero-role { margin: 24px 0 0; color: var(--ink); font-size: 27px; font-weight: 750; line-height: 1.32; }
.hero-intro { max-width: 660px; margin: 22px 0 0; color: var(--soft); font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 17px; border: 1px solid var(--deep); border-radius: 3px; font-size: 12px; font-weight: 800; transition: color 160ms ease, background 160ms ease, transform 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--deep); }
.button-primary:hover { background: var(--teal); border-color: var(--teal); }
.button-secondary { color: var(--deep); background: rgba(255,255,255,.7); }
.hero-status { align-self: center; min-width: 0; border: 1px solid rgba(18,61,73,.24); background: rgba(255,255,255,.7); backdrop-filter: blur(9px); box-shadow: 14px 14px 0 rgba(20,118,111,.08); }
.status-head { display: flex; align-items: center; gap: 9px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--teal); font-family: Consolas, monospace; font-size: 10px; font-weight: 800; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(198,83,61,.12); }
.hero-status ol { margin: 0; padding: 0; list-style: none; }
.hero-status li { display: grid; grid-template-columns: 32px 1fr auto; align-items: baseline; gap: 10px; padding: 18px; border-bottom: 1px solid var(--line); }
.hero-status li > span { color: var(--coral); font-family: Consolas, monospace; font-size: 10px; }
.hero-status strong { color: var(--deep); font-size: 17px; }
.hero-status small { color: var(--muted); font-size: 10px; text-align: right; }
.status-foot { display: flex; justify-content: space-between; gap: 15px; padding: 13px 18px; color: var(--muted); font-family: Consolas, monospace; font-size: 9px; }
.hero-coordinates { position: absolute; right: 24px; bottom: 15px; z-index: 2; color: #7d8b8f; font-family: Consolas, monospace; font-size: 9px; }

.signal-band { color: #fff; background: var(--deep); }
.signal-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.signal-item { min-height: 100px; display: grid; align-content: center; gap: 2px; padding: 20px 28px; border-inline: 1px solid rgba(255,255,255,.12); border-right: 0; }
.signal-item:last-child { border-right: 1px solid rgba(255,255,255,.12); }
.signal-item strong { color: #fff; font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.signal-item span { color: #aec5c7; font-size: 10px; font-weight: 700; text-transform: uppercase; }

.section-band { padding: 92px 0; }
.section-white { background: #fff; }
.section-heading { display: grid; grid-template-columns: 48px minmax(170px, .45fr) minmax(0, 1fr); align-items: baseline; margin-bottom: 44px; }
.section-number { color: var(--coral); font-family: Georgia, serif; font-size: 29px; }
.section-kicker { margin: 0; color: var(--teal); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.section-heading h2 { margin: 0; color: var(--deep); font-family: Georgia, "Yu Mincho", serif; font-size: 30px; font-weight: 500; line-height: 1.35; }
main, section, article, .hero-copy, .agent-copy, .section-heading h2 { min-width: 0; }

.focus-section { background: var(--paper); }
.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.focus-item { min-height: 270px; position: relative; padding: 34px 30px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: rgba(255,255,255,.46); }
.focus-index { position: absolute; top: 20px; right: 22px; color: var(--coral); font-family: Georgia, serif; font-size: 24px; }
.focus-item h3 { margin: 36px 0 18px; color: var(--deep); font-size: 18px; }
.focus-item p { margin: 0; color: var(--soft); font-size: 13px; line-height: 1.8; }

.agent-section { color: #fff; background: #102f39; }
.agent-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); gap: 80px; align-items: center; }
.agent-section .section-kicker { color: #78c2bb; }
.agent-copy h2 { margin: 10px 0 0; color: #fff; font-family: Georgia, serif; font-size: 58px; font-weight: 500; line-height: 1; }
.agent-subtitle { margin: 17px 0 22px !important; color: #f0c47c !important; font-size: 17px !important; font-weight: 700; }
.agent-copy > p { max-width: 650px; color: #c8d7d8; font-size: 14px; line-height: 1.85; }
.tech-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.tech-list span { padding: 5px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 2px; color: inherit; font-family: Consolas, monospace; font-size: 9px; }
.text-link { width: fit-content; display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: #8dd0ca; font-size: 11px; font-weight: 800; }
.benchmark { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); }
.benchmark-head { display: flex; justify-content: space-between; gap: 20px; padding: 16px 19px; border-bottom: 1px solid rgba(255,255,255,.15); color: #99b7b8; font-family: Consolas, monospace; font-size: 9px; }
.metric { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.metric > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.metric strong { color: #fff; font-family: Georgia, serif; font-size: 29px; font-weight: 500; }
.metric span { color: #b8c9ca; font-family: Consolas, monospace; font-size: 10px; }
.metric i { height: 3px; display: block; position: relative; margin-top: 13px; overflow: hidden; background: rgba(255,255,255,.12); }
.metric i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--score); background: var(--coral); }
.benchmark-note { padding: 14px 19px; color: #90acaf; font-size: 10px; text-align: right; }

.timeline { border-top: 1px solid var(--line-strong); }
.timeline-item { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--line); }
.timeline-date { padding: 31px 24px 31px 0; color: var(--teal); font-family: Consolas, monospace; font-size: 11px; font-weight: 700; }
.timeline-content { min-width: 0; padding: 28px 0 31px 34px; border-left: 1px solid var(--line); }
.entry-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.entry-type { margin: 0 0 3px; color: var(--coral); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.entry-header h3 { margin: 0; color: var(--deep); font-size: 20px; line-height: 1.45; }
.entry-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.entry-code { color: #94a2a5; font-family: Consolas, monospace; font-size: 9px; }
.timeline-content ul { margin: 18px 0 0; padding: 0; list-style: none; }
.timeline-content li { position: relative; margin: 7px 0; padding-left: 17px; color: var(--soft); font-size: 13px; }
.timeline-content li::before { content: ""; position: absolute; top: .72em; left: 0; width: 5px; height: 5px; background: var(--teal); }

.research-section { background: #e8efec; }
.research-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.research-item { min-width: 0; padding: 34px 38px 36px 0; }
.research-item + .research-item { padding-left: 38px; border-left: 1px solid var(--line-strong); }
.research-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--teal); font-family: Consolas, monospace; font-size: 10px; font-weight: 700; }
.research-item h3 { margin: 18px 0 13px; color: var(--deep); font-size: 19px; line-height: 1.45; }
.research-item p { margin: 0; color: var(--soft); font-size: 13px; line-height: 1.8; }
.research-item .tech-list span { color: var(--soft); border-color: var(--line-strong); background: rgba(255,255,255,.55); }
.project-link { display: inline-block; margin-top: 20px; color: var(--teal); font-family: Consolas, monospace; font-size: 10px; font-weight: 700; overflow-wrap: anywhere; }

.publication-list { margin: 0; padding: 0; border-top: 1px solid var(--line-strong); list-style: none; }
.publication-item { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.publication-index { color: var(--coral); font-family: Consolas, monospace; font-size: 11px; }
.publication-item h3 { max-width: 900px; margin: 0; color: var(--deep); font-family: Georgia, serif; font-size: 17px; font-weight: 600; line-height: 1.5; }
.publication-item p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.publication-item a { width: fit-content; display: flex; align-items: center; gap: 6px; margin-top: 9px; color: var(--teal); font-size: 10px; font-weight: 800; }
.publication-item .icon { width: 12px; height: 12px; }

.skills-section { background: #f1f4f1; }
.skills-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.skill-group { min-height: 190px; position: relative; padding: 28px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: rgba(255,255,255,.55); }
.skill-group > span { position: absolute; top: 18px; right: 18px; color: var(--coral); font-family: Consolas, monospace; font-size: 9px; }
.skill-group h3 { margin: 0 0 25px; color: var(--teal); font-size: 11px; text-transform: uppercase; }
.skill-group p { margin: 0; color: var(--deep); font-size: 15px; font-weight: 750; line-height: 1.8; }
.skill-group small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }
.education-strip { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 36px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.education-strip article { display: grid; gap: 4px; padding: 25px 30px 25px 0; }
.education-strip article + article { padding-left: 30px; border-left: 1px solid var(--line-strong); }
.education-strip time { color: var(--coral); font-family: Consolas, monospace; font-size: 9px; }
.education-strip strong { color: var(--deep); font-size: 15px; }
.education-strip article > span { color: var(--muted); font-size: 11px; }

.contact-section { padding: 76px 0; color: #fff; background: var(--deep); }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: end; }
.contact-section .section-kicker { color: #82c7c1; }
.contact-section h2 { max-width: 650px; margin: 10px 0 0; color: #fff; font-family: Georgia, "Yu Mincho", serif; font-size: 34px; font-weight: 500; line-height: 1.45; }
.contact-links { display: grid; gap: 10px; }
.contact-links > a { color: #dce8e7; font-size: 13px; }
.contact-resumes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.contact-resumes a { padding: 8px 10px; border: 1px solid rgba(255,255,255,.27); border-radius: 2px; color: #fff; font-size: 10px; font-weight: 750; }
.site-footer { color: #b6c4c6; background: #0c2832; }
.site-footer .content-shell { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer p, .site-footer a { margin: 0; font-size: 9px; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 560ms ease, transform 560ms ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero .reveal { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid rgba(198,83,61,.42); outline-offset: 3px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-layout { grid-template-columns: minmax(0,1.2fr) minmax(290px,.8fr); gap: 36px; }
  .hero-role { font-size: 23px; }
  .section-heading { grid-template-columns: 44px 150px 1fr; }
  .agent-layout { gap: 45px; }
  .timeline-item { grid-template-columns: 160px 1fr; }
  .research-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .research-item:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-top: 1px solid var(--line-strong); border-left: 0; }
}

@media (max-width: 720px) {
  :root { --header: 64px; }
  body { font-size: 15px; }
  .content-shell, .nav-shell { width: min(calc(100% - 32px), var(--shell)); }
  .brand { min-width: 0; }
  .brand-copy { display: none; }
  .nav-shell { gap: 10px; }
  .nav-actions { margin-left: auto; gap: 7px; }
  .language-switch button { min-width: 26px; height: 28px; padding: 0 4px; }
  .resume-button { display: none; }
  .resume-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero { min-height: auto; }
  .hero-layout { grid-template-columns: 1fr; gap: 38px; padding: 58px 0 70px; }
  .eyebrow { flex-wrap: wrap; margin-bottom: 18px; }
  .eyebrow i { width: 34px; }
  .hero h1 { font-size: 58px; }
  .hero-role { margin-top: 18px; font-size: 21px; }
  .hero-intro { margin-top: 17px; font-size: 13px; }
  .hero-actions { margin-top: 24px; }
  .button { min-height: 42px; padding: 0 13px; font-size: 11px; }
  .hero-status { box-shadow: 8px 8px 0 rgba(20,118,111,.08); }
  .hero-coordinates { display: none; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-item { min-height: 76px; grid-template-columns: 100px 1fr; align-items: center; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
  .signal-item strong { font-size: 21px; }
  .section-band { padding: 64px 0; }
  .section-heading { grid-template-columns: 38px 1fr; row-gap: 8px; margin-bottom: 29px; }
  .section-heading h2 { grid-column: 1 / -1; font-size: 25px; }
  .section-heading h2, .hero-role, .hero-intro, .focus-item p { overflow-wrap: anywhere; }
  .focus-grid, .skills-grid { grid-template-columns: 1fr; }
  .focus-item { min-height: 220px; }
  .agent-layout { grid-template-columns: 1fr; gap: 38px; }
  .agent-copy h2 { font-size: 48px; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-date { padding: 19px 0 0; }
  .timeline-content { padding: 13px 0 27px; border-left: 0; }
  .entry-header h3 { font-size: 17px; overflow-wrap: anywhere; }
  .entry-code { display: none; }
  .timeline-content li { font-size: 12px; }
  .research-grid { grid-template-columns: 1fr; }
  .research-item, .research-item + .research-item { grid-column: auto; padding: 27px 0; border-left: 0; }
  .research-item + .research-item { border-top: 1px solid var(--line-strong); }
  .publication-item { grid-template-columns: 34px 1fr; gap: 10px; }
  .publication-item h3 { font-size: 15px; overflow-wrap: anywhere; }
  .education-strip { grid-template-columns: 1fr; }
  .education-strip article, .education-strip article + article { padding: 22px 0; border-left: 0; }
  .education-strip article + article { border-top: 1px solid var(--line-strong); }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-section h2 { font-size: 27px; }
  .contact-links > a { overflow-wrap: anywhere; }
}

@media (max-width: 480px) {
  .hero-status li { grid-template-columns: 30px minmax(0, 1fr); }
  .hero-status small { display: none; }
  .status-foot { font-size: 8px; }
}

@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 .reveal { opacity: 1; transform: none; }
}
