/* Personal research portfolio: identity, readable evidence, and direct navigation. */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); }
body { -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.65; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
a { text-decoration: none; }
.layout { max-width: 1280px; margin: auto; padding-inline: clamp(24px, 6vw, 80px); }
.site-header { min-height: 96px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--border); }
.wordmark { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; letter-spacing: -.4px; margin-right: auto; line-height: 1.3; }
.wordmark .site-mark-image { width: 36px; height: 36px; }
.header-nav { display: flex; gap: 24px; font-size: 14px; }
.header-nav a { padding-block: 12px; }
.header-controls { display: flex; gap: 6px; }
.header-controls button { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border); border-radius: 50%; width: 40px; height: 40px; color: var(--fg); cursor: pointer; font-size: 12px; }
.hero { padding-block: 56px 44px; display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 32px; align-items: start; }
.hero-portrait { padding-top: 8px; }
.hero-portrait img { display: block; border-radius: 50%; object-fit: cover; width: 128px; height: 128px; }
.hero-eyebrow { margin: 0 0 10px; font-size: 15px; font-weight: 500; }
.hero-eyebrow span { font-size: 13px; color: var(--fg-dim); font-weight: 400; margin-left: 8px; }
.hero h1 { margin: 0; font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -.055em; line-height: 1.15; font-weight: 500; text-wrap: balance; }
.hero-role { margin: 12px 0 0; font-size: 14px; color: var(--fg-dim); }
.hero-description { max-width: 630px; text-wrap: balance; font-size: 16px; margin: 20px 0 10px; line-height: 1.75; }
.hero-mission { margin: 0; font-size: 21px; letter-spacing: -.4px; color: var(--fg-2); }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; }
.hero-links a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: 14px; border-bottom: 1px solid var(--border); }
.hero-links .hero-primary { padding: 8px 16px; border-radius: 6px; background: var(--fg); color: var(--bg); border: 0; }
.featured-work { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 32px; padding: 26px 30px; border-radius: 10px; background: var(--bg-2); }
.featured-label { font-size: 14px; font-weight: 500; padding-top: 4px; }
.featured-label span { display: block; font-size: 12px; font-weight: 400; color: var(--fg-dim); margin-top: 6px; }
.featured-copy h2 { font-size: 23px; line-height: 1.3; letter-spacing: -.6px; font-weight: 500; margin: 0 0 10px; }
.featured-copy p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--fg-2); max-width: 660px; }
.featured-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
.featured-links a { display: inline-flex; gap: 12px; align-items: center; padding-block: 8px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.content-section { margin-top: 60px; scroll-margin-top: 24px; }
.section-header { margin-bottom: 0 !important; gap: 12px !important; flex-wrap: wrap; }
.section-header h2 { font-size: 28px !important; letter-spacing: -.8px !important; font-weight: 500 !important; margin: 0; }
.section-header > span[style*="height"] { display: none; }
.section-header > a { margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; font-size: 13px !important; color: var(--fg-2) !important; }
.section-description { font-size: 15px; line-height: 1.7; color: var(--fg-dim); margin: 10px 0 24px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-tile { display: flex; flex-direction: column; padding: 24px; border-radius: 8px; background: var(--bg-2); box-shadow: 0 0 0 1px rgb(13 44 84 / 5%); }
.project-meta { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; color: var(--fg-dim); font-size: 12px; line-height: 1.7; }
.project-meta > span { margin-right: auto; }
.project-tile :is(h2, h3) { font-size: 21px; line-height: 1.4; letter-spacing: -.5px; font-weight: 500; margin: 20px 0 10px; }
.project-tile p { font-size: 15px; line-height: 1.75; color: var(--fg-2); margin: 0 0 22px; }
.project-open { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding-top: 16px; border-top: 1px solid var(--border); }
.project-open > span { font-size: 18px; }
.research-row { display: grid; grid-template-columns: 132px minmax(0,1fr) 20px; align-items: start; gap: 24px; padding: 25px 0; border-top: 1px solid var(--border); }
.research-row:last-child { border-bottom: 1px solid var(--border); }
.research-venue { font-size: 14px; line-height: 1.6; padding-top: 2px; }
.research-venue small { display: block; font-size: 13px; color: var(--fg-dim); margin-top: 6px; }
.research-content :is(h2, h3) { font-size: 18px; line-height: 1.5; letter-spacing: -.3px; font-weight: 500; margin: 0 0 8px; }
.research-authors { font-size: 13px; line-height: 1.8; color: var(--fg-dim); display: block; }
.research-authors strong { font-weight: 500; color: var(--fg); }
.row-arrow { font-size: 20px; }
.about-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; border-top: 1px solid var(--border); padding-top: 40px; }
.about-label { font-size: 13px; font-weight: 500; letter-spacing: 1px; margin-bottom: 24px; }
.about-intro { container-type: inline-size; }
.about-intro h2 { font-size: 28px; letter-spacing: -.8px; font-weight: 500; margin: 18px 0 8px; }
.about-intro p { font-size: 15px; line-height: 1.8; }
.about-intro .about-role { color: var(--fg-2); font-size: 14px; }
.interest-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.interest-list > span { font-size: 12px !important; padding: 3px 9px !important; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; }
.contact-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 13px; }
.career h3 { font-size: 18px; font-weight: 500; margin: 0 0 18px; }
.career-row { display: grid; grid-template-columns: minmax(0,1fr); gap: 6px; border-top: 1px solid var(--border); padding: 18px 0; }
.career-date { font-size: 12px; line-height: 1.6; color: var(--fg-dim); }
.career-row h4 { font-size: 15px; font-weight: 500; margin: 0 0 4px; }
.career-org { font-size: 13px; color: var(--fg-dim); }
.career-row p { font-size: 14px; line-height: 1.7; color: var(--fg-2); margin: 6px 0 0; }
.career .education-title { margin-top: 28px; }
.page-footer { margin-top: 56px; border-top: 1px solid var(--border); padding-block: 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; color: var(--fg-dim); font-size: 13px; }
.page-footer a { white-space: nowrap; padding-block: 8px; }
.header-controls button, .project-tile, .hero-primary { transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease; }
.row-arrow, .project-open > span { transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .header-controls button:hover { background: var(--accent-soft); }
  a.project-tile:hover { box-shadow: 0 0 0 1px var(--fg-dim); transform: translateY(-2px); }
  .research-row:hover .row-arrow, .project-tile:hover .project-open > span { transform: translate(2px,-2px); }
  .header-nav a:hover, .contact-links a:hover, .hero-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
}
.header-controls button:active:not(:focus-visible), a.project-tile:active:not(:focus-visible), .hero-primary:active:not(:focus-visible) { transform: scale(.98); }
a:focus-visible, button:focus-visible { transition: none; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 10; padding: 12px 18px; border-radius: 8px; background: var(--fg); color: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
@media (max-width: 1000px) {
  .layout { padding-inline: 32px; }
  .header-nav { gap: 18px; }
  .hero { grid-template-columns: 100px minmax(0,1fr); gap: 24px; }
  .hero-portrait img { width: 100px; height: 100px; }
  .project-grid { grid-template-columns: minmax(0,1fr); }
  .project-tile :is(h2, h3) { margin-top: 16px; }
  .about-section { gap: 32px; }
}
@media (max-width: 760px) {
  .site-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0; padding-top: 18px; }
  .header-controls { grid-column: 2; grid-row: 1; }
  .header-nav { grid-column: 1 / -1; gap: 28px; font-size: 14px; margin-top: 12px; }
  .header-nav a { padding-block: 12px; }
  .wordmark { font-size: 15px; }
  .featured-work { grid-template-columns: minmax(0,1fr); padding: 24px; gap: 16px; }
  .featured-label { padding: 0; }
  .featured-label span { display: inline; margin-left: 12px; }
  .about-section { grid-template-columns: minmax(0,1fr); gap: 36px; }
}
@media (max-width: 640px) {
  .layout { padding-inline: 24px; }
  .wordmark .site-mark-image { width: 30px; height: 30px; }
  .header-controls button { width: 38px; height: 38px; }
  .hero { grid-template-columns: 72px minmax(0,1fr); gap: 14px; padding-block: 32px; }
  .hero-portrait { grid-row: 1; grid-column: 1; padding: 0; }
  .hero-portrait img { width: 72px; height: 72px; }
  .hero-bio { display: contents; }
  .hero-eyebrow { grid-column: 2; grid-row: 1; align-self: center; font-size: 15px; margin: 0; }
  .hero-eyebrow span { display: block; margin: 4px 0 0; font-size: 12px; }
  .hero h1, .hero-role, .hero-description, .hero-specialties, .hero-mission, .hero-links { grid-column: 1 / -1; margin: 0; }
  .hero h1 { font-size: clamp(34px, 8vw, 48px); margin-top: 6px; }
  .hero-role { font-size: 14px; margin-top: -6px; }
  .hero-description { font-size: 16px; margin-top: 4px; }
  .hero-mission { font-size: 20px; }
  .hero-links { gap: 8px 18px; margin-top: 6px; }
  .hero-links a { font-size: 13px; }
  .content-section { margin-top: 44px; }
  .section-header h2 { font-size: 25px !important; }
  .section-header { gap: 8px !important; }
  .section-description { font-size: 15px; margin-bottom: 20px; }
  .project-tile { padding: 22px; }
    .research-row { grid-template-columns: minmax(0,1fr) 18px; gap: 12px; padding-block: 22px; }
  .research-venue { grid-column: 1 / -1; display: flex; gap: 12px; align-items: baseline; }
  .research-venue small { margin: 0; }
  .research-content :is(h2, h3) { font-size: 17px; }
  .about-section { padding-top: 30px; }
  .page-footer { font-size: 12px; margin-top: 40px; }
}
@media (max-width: 360px) {
  .layout { padding-inline: 18px; }
  .wordmark { font-size: 13px; gap: 8px; }
  .featured-label span { display: block; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  a.project-tile:hover, a:active, button:active, .row-arrow, .project-open > span { transform: none !important; }
}

.hero-specialties { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: var(--fg-2); }
.hero-specialties li { white-space: nowrap; }
@media (max-width: 640px) { .hero-specialties { margin: -4px 0 2px; gap: 4px 14px; font-size: 13px; } }

html[lang="ja"] .hero h1 { font-weight: 600; letter-spacing: .025em; line-height: 1.35; }
html[lang="ja"] .hero-description { line-height: 1.9; text-wrap: pretty; }
html[lang="ja"] .section-header h2 { letter-spacing: 0 !important; }
html[lang="ja"] .about-intro h2 { letter-spacing: .02em; font-weight: 600; }

.research-section > .section-header { margin-bottom: 22px !important; }

/* Shared page surfaces: collections, articles, and 404. */
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
* { box-sizing: border-box; }
a { color: inherit; }
.mono { font-family: 'JetBrains Mono', 'Noto Sans JP', monospace; }
.layout { display: flex; flex-direction: column; min-height: 100svh; }
.layout > main { flex: 1; min-width: 0; }
.site-header, .page-footer { flex-shrink: 0; }
.header-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.archive-page, .detail-page { padding-top: 28px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-dim); margin-bottom: 28px; }
.breadcrumbs a { padding-block: 8px; }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-heading { margin-bottom: 32px; }
.page-heading h1, .detail-heading h1, .not-found-page h1 { font-weight: 500; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.3; letter-spacing: -.035em; margin: 0 0 16px; text-wrap: pretty; overflow-wrap: anywhere; }
.page-heading p { color: var(--fg-2); font-size: 16px; max-width: 700px; margin: 0; }
.paper-summary { display: block; font-size: 15px; line-height: 1.8; color: var(--fg-2); margin-top: 12px; }
.detail-page { width: 100%; max-width: 880px; }
.detail-heading { margin-bottom: 28px; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--fg-dim); font-size: 14px; margin-bottom: 20px; }
.detail-meta > .mono { color: var(--fg); }
.detail-meta > span:last-child { font-size: 12px !important; }
.detail-authors { font-size: 15px; line-height: 1.8; color: var(--fg-dim); }
.detail-authors strong { font-weight: 500; color: var(--fg); }
.detail-image { margin: 0 0 28px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-card); }
.detail-image img { display: block; width: 100%; height: auto; max-height: 540px; object-fit: contain; }
.detail-copy { font-size: 16px; line-height: 1.9; color: var(--fg-2); margin: 0 0 24px; white-space: pre-line; overflow-wrap: anywhere; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 32px; }
.action-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; background: var(--bg-card); transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; padding-top: 16px; border-top: 1px solid var(--border); width: 100%; }
.not-found-page { padding-block: 64px; }
.not-found-page > .mono { display: block; font-size: 14px; color: var(--fg-dim); margin-bottom: 20px; }
.not-found-page p { font-size: 16px; color: var(--fg-2); }
html[lang="ja"] .page-heading h1, html[lang="ja"] .not-found-page h1 { letter-spacing: .01em; font-weight: 600; }
html[lang="ja"] .detail-heading h1 { letter-spacing: 0; }
@media (hover: hover) and (pointer: fine) { .action-link:hover { background: var(--accent-soft); } }
.action-link:active:not(:focus-visible) { transform: scale(.98); }
@media (max-width: 640px) {
  .archive-page, .detail-page { padding-top: 16px; }
  .breadcrumbs { margin-bottom: 20px; }
  .page-heading { margin-bottom: 24px; }
  .page-heading h1, .detail-heading h1 { font-size: 30px; }
  .page-heading p { font-size: 15px; }
  .paper-summary { font-size: 15px; }
  .detail-authors { font-size: 14px; }
  .detail-copy { font-size: 16px; }
  .not-found-page { padding-block: 40px; }
}
@media (prefers-reduced-motion: reduce) { .action-link:active { transform: none; } }
