@charset "utf-8";

:root {
  color-scheme: light;
  --page: #f4f8fb;
  --surface: #ffffff;
  --surface-soft: #f7faf9;
  --ink: #17253a;
  --muted: #586a80;
  --line: #dce7e9;
  --accent: #4d7074;
  --accent-strong: #35585c;
  --cyan: #6b9b9d;
  --shadow: 0 16px 44px rgba(35, 70, 112, 0.075);
  --radius: 22px;
  --radius-small: 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}
img, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-decoration: none; transition: color 140ms ease, background-color 140ms ease; }
a:hover { color: var(--accent-strong); }
a:focus-visible, summary:focus-visible { outline: 3px solid #7da4a1; outline-offset: 3px; border-radius: 5px; }
button, input, select, textarea { font: inherit; }

.site-wrap { width: min(100% - 2rem, 1120px); margin-inline: auto; padding-block: 30px 64px; }
.site-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.site-topline a { color: var(--ink); text-decoration: none; font-weight: 700; }
.site-topline a:hover { color: var(--accent); }
.site-topline .site-home { font-size: 0.96rem; letter-spacing: -0.02em; }
.site-topline .site-route { color: var(--muted); font-size: 0.9rem; font-weight: 500; }

/* Home */
.home-page {
  --accent: #50698f;
  --accent-strong: #394f77;
  --cyan: #8296b5;
  --muted: #5f7089;
  --line: #dce4ef;
  --surface-soft: #f5f7fb;
  --shadow: 0 16px 44px rgba(35, 55, 95, 0.075);
  background: var(--page);
}
.home-wrap { width: min(100% - 2rem, 1050px); padding-top: clamp(24px, 5vw, 58px); }
.home-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 250px);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(22px, 5vw, 56px);
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(35, 55, 95, 0.08);
}
.home-profile h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 680; letter-spacing: -0.055em; line-height: 1.08; }
.home-profile h1 span { color: var(--muted); font-size: 0.57em; font-weight: 520; letter-spacing: -0.02em; }
.home-tagline { margin: 17px 0 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.14rem); }
.home-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 43%;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(35, 55, 95, 0.12);
}
.home-links { margin: 20px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-links li { min-width: 0; }
.home-links a {
  min-height: 76px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: 0 7px 22px rgba(35, 55, 95, 0.05);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.home-links a:hover { border-color: #9aaac1; box-shadow: 0 13px 30px rgba(35, 55, 95, 0.14); transform: translateY(-2px); }
.home-links a:focus-visible { outline-offset: 2px; }
.home-page a:focus-visible { outline-color: #879ab7; }
.home-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 11px; background: #eef2f8; color: var(--accent); }
.home-icon svg { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-icon-video svg path:last-child { fill: currentColor; stroke: none; }
.home-footer { display: flex; justify-content: flex-end; padding: 22px 4px 0; color: var(--muted); font-size: 0.88rem; }
.home-footer p { margin: 0; }

/* Research / ARSLab */
.research-page { --accent: #50698f; --accent-strong: #394f77; --cyan: #8296b5; --muted: #5f7089; --line: #dce4ef; --surface-soft: #f5f7fb; --research-line: var(--line); }
.research-page .site-wrap { width: min(100% - 2rem, 1240px); padding-top: 34px; }
.research-page header { max-width: 790px; margin: 0 0 28px; }
.research-page header h1 { margin: 0; font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 650; letter-spacing: -0.045em; line-height: 1.15; }
.research-page header h1 a { color: var(--ink); text-decoration: none; }
.research-page header h1 a:hover { color: var(--accent); }
.research-page header p { max-width: 72ch; margin: 14px 0 0; color: var(--muted); font-size: 1.03rem; }
.research-page main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  align-items: start;
  gap: 16px;
}
.research-page #columnRight { grid-column: 2; grid-row: 1; float: none; width: auto; max-width: none; margin: 0; padding: 0; }
.research-page #news { grid-column: 1; grid-row: 1 / span 6; float: none; width: auto; max-width: none; min-width: 0; margin: 0; font-size: 0.96rem; line-height: 1.7; }
.research-page main > section:not(#news) { grid-column: 2; display: block; min-width: 0; max-width: none; margin: 0; padding: 19px 20px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); box-shadow: 0 8px 24px rgba(35, 55, 95, 0.055); font-size: 0.93rem; line-height: 1.65; }
.research-page #news > h2,
.research-page main > section:not(#news) > h2 { margin: 0 0 13px; padding-bottom: 9px; border-bottom: 1px solid var(--line); font-size: 1.25rem; font-weight: 650; letter-spacing: -0.025em; line-height: 1.3; }
.research-page #news ul { position: relative; margin: 0; padding: 0; list-style: none; }
.research-page #news ul::before { position: absolute; top: 7px; bottom: 10px; left: 8px; width: 2px; border-radius: 2px; background: var(--research-line); content: ""; }
.research-page #news ul > .bold { position: relative; z-index: 1; display: block; width: max-content; max-width: calc(100% - 20px); margin: 18px 0 7px -1px; padding: 3px 10px; border: 1px solid #d7e0ee; border-radius: 999px; background: #f2f5fa; color: #536b90; font-size: 0.83rem; font-weight: 700; line-height: 1.5; }
.research-page #news ul > li { position: relative; margin: 0 0 9px 28px; padding: 13px 16px 14px 17px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); box-shadow: 0 5px 16px rgba(35, 55, 95, 0.045); overflow-wrap: anywhere; }
.research-page #news ul > li::before { position: absolute; top: 19px; left: -29px; width: 12px; height: 12px; border: 3px solid var(--page); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); content: ""; }
.research-page #news ul ul { margin: 6px 0 0; padding-left: 20px; list-style: disc; }
.research-page #news ul ul::before { content: none; }
.research-page #news ul ul li { margin: 2px 0; padding: 0; border: 0; background: transparent; }
.research-page #news ul ul li::before { content: none; }
.research-page section img { box-shadow: none; }
.research-page #news .thumb { width: auto; max-width: 100%; margin: 12px 0 2px; padding: 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); box-shadow: none; text-align: center; }
.research-page #news .thumb img { display: inline-block; width: auto; max-width: 100%; height: auto; margin: 4px; border-radius: 8px; box-shadow: none; vertical-align: middle; }
.research-page #news .thumb .thumbIcon { width: auto; height: 1em; margin: 0; }
.research-page #news iframe,
.research-page #koldoraEmbed iframe,
.research-page #playhardEmbed iframe { display: block; width: 100%; max-width: 100%; border: 0; border-radius: 10px; }
.research-page #koldoraEmbed,
.research-page #playhardEmbed { max-width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; padding: 5px; background: #f5f7fb; text-align: center; }
.research-page #news iframe[src*="docs.google.com/presentation"] { height: 460px; }
.research-page #tools .tool-album { display: flex; flex-direction: column; gap: 3px; }
.research-page #tools .tool-card { display: grid; width: 100%; min-height: 52px; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); text-decoration: none; transition: background-color 150ms ease, color 150ms ease; }
.research-page #tools .tool-card:hover { background: #edf2f8; color: var(--accent-strong); }
.research-page #tools .tool-card:active { background: #e2eaf5; }
.research-page #tools .tool-card:focus-visible { outline-offset: 2px; }
.research-page #tools .tool-cover { display: grid; width: 38px; height: 38px; place-items: center; overflow: hidden; border: 0; border-radius: 8px; background: transparent; }
.research-page #tools .tool-cover img { display: block; width: 30px; height: 30px; border-radius: 6px; object-fit: contain; box-shadow: none; }
.research-page #tools .tool-name { display: block; color: inherit; font-size: 0.88rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.research-page #news a:not(.noLinkEffects):not(.tool-card),
.research-page #contact a,
.research-page header p a { color: var(--accent); font-weight: 580; text-decoration: none; }
.research-page #news a:not(.noLinkEffects):not(.tool-card):hover,
.research-page #contact a:hover,
.research-page header p a:hover { border-radius: 4px; background: #eef2f8; color: var(--accent-strong); }
.research-page #contact,
.research-page #mentalHealth { display: block; max-width: none; margin: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); box-shadow: 0 8px 24px rgba(35, 55, 95, 0.055); color: var(--ink); font-size: 0.9rem; }
.research-page #contact h3,
.research-page #mentalHealth h3 { margin: 0 0 8px; color: var(--ink); font-size: 1.08rem; font-weight: 650; }
.research-page #contact p { margin: 7px 0; padding: 0; text-indent: 0; }
.research-page #contact hr { height: 1px; margin: 14px 0; border: 0; background: var(--line); }
.research-page #contact img { display: inline; width: auto; height: 1em; vertical-align: -0.12em; }
.research-page .tag { display: inline-block; margin: 0 0.12em 0.18em 0; padding: 2px 8px; border: 1px solid transparent; border-radius: 999px; color: #4a6266; background: #f0f5f3; box-shadow: none; font-size: 0.77rem; font-weight: 700; line-height: 1.45; text-shadow: none; white-space: nowrap; }
.research-page .greenTag { color: #465e77; background: #eef2f6; border-color: #d9e2ea; }
.research-page .redTag { color: #9a3e39; background: #fff0ee; border-color: #f2d4d0; }
.research-page .goldTag { color: #785814; background: #fff7df; border-color: #efdfae; }
.research-page .navyTag { color: #50656d; background: #eff3f3; border-color: #dce6e5; }
.research-page footer { display: block; clear: both; margin-top: 30px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; text-align: right; }
.research-page footer p { margin: 0; }

/* CV  */
.cv-page { --page: #f5f8fc; --surface: #fff; --surface-soft: #fafbfd; --ink: #0a0e15; --muted: #373f4e; --line: #dfe3e8; --accent: #0a0e15; --accent-strong: #0a0e15; --shadow: 0 12px 36px rgba(25, 34, 50, 0.06); }
.cv-page .site-wrap { width: min(100% - 2rem, 1120px); }
.cv-header { padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.cv-header h1 { margin: 0; font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 680; letter-spacing: -0.055em; line-height: 1.08; }
.cv-tagline { margin: 11px 0 0; color: var(--ink); font-size: 1.02rem; font-weight: 600; }
.cv-contact { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 19px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.cv-contact span { min-width: 0; }
.cv-contact + .cv-contact { margin-top: 5px; }
.cv-quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin-top: 12px; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.cv-quick-links a { color: var(--ink); font-weight: 650; text-decoration: none; white-space: nowrap; }
.cv-quick-links a:hover { color: #405d61; }
.cv-quick-links span { color: var(--muted); }
.cv-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 290px); gap: 20px; align-items: start; margin-top: 20px; }
.cv-main, .cv-sidebar { min-width: 0; }
.cv-main > section, .cv-sidebar > section { margin-bottom: 16px; padding: 24px clamp(19px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); }
.cv-main h2, .cv-sidebar h2 { margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 1.23rem; font-weight: 680; letter-spacing: -0.025em; line-height: 1.3; }
.cv-main h3, .cv-sidebar h3 { margin: 18px 0 4px; color: var(--ink); font-size: 1.02rem; font-weight: 680; line-height: 1.4; }
.cv-main p, .cv-sidebar p { margin: 0 0 11px; }
.cv-main p:last-child, .cv-sidebar p:last-child { margin-bottom: 0; }
.cv-main ul, .cv-sidebar ul { margin: 7px 0 0; padding-left: 1.22rem; }
.cv-main li, .cv-sidebar li { margin: 0 0 7px; padding-left: 0.1rem; }
.cv-main li:last-child, .cv-sidebar li:last-child { margin-bottom: 0; }
.cv-meta { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.cv-entry + .cv-entry { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.cv-entry h3 { margin-top: 0; }
.cv-entry .cv-meta { margin-bottom: 8px; }
.cv-skills { display: grid; gap: 13px; margin: 0; }
.cv-skills div { display: grid; gap: 3px; }
.cv-skills dt { color: var(--ink); font-size: 0.9rem; font-weight: 700; }
.cv-skills dd { margin: 0; color: #212631; font-size: 0.9rem; line-height: 1.55; }
.cv-publications h3 { margin: 17px 0 8px; font-size: 0.91rem; }
.cv-publications ol { margin: 0; padding-left: 1.25rem; }
.cv-publications li { margin-bottom: 10px; padding-left: 0.2rem; overflow-wrap: anywhere; text-align: justify; text-justify: inter-word; }
.cv-publications li:last-child { margin-bottom: 0; }
.cv-publications .award-note { display: block; margin-top: 3px; margin-left: 0.45rem; color: var(--muted); font-size: 0.9rem; }
.cv-main a { color: var(--ink); }
.cv-sidebar a { color: var(--ink); }
.cv-section-links { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.cv-section-links a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 0.91rem; text-decoration: none; }
.cv-section-links li:last-child a { border-bottom: 0; }
.cv-secondary { margin-top: 20px; }
.cv-table-wrap { width: 100%; overflow-x: auto; }
.cv-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; line-height: 1.5; }
.cv-table th, .cv-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cv-table th { color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; }
.cv-details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.cv-details summary { padding: 11px 14px; color: var(--ink); cursor: pointer; font-weight: 650; }
.cv-details > div { padding: 0 16px 15px; }
.cv-footer { padding: 10px 2px 0; color: var(--muted); font-size: 0.85rem; text-align: right; }
.cv-footer a { color: var(--muted); }

@media (max-width: 900px) {
  .research-page main { grid-template-columns: minmax(0, 1fr) minmax(225px, 280px); }
  .cv-layout { grid-template-columns: minmax(0, 1fr) minmax(215px, 255px); gap: 14px; }
}

@media (max-width: 720px) {
  .home-profile { grid-template-columns: minmax(0, 1fr) 145px; gap: 20px; padding: 22px; }
  .home-portrait { width: 145px; border-width: 4px; border-radius: 16px; }
  .home-links { grid-template-columns: 1fr; gap: 9px; }
  .home-links a { min-height: 66px; }
  .research-page .site-wrap { width: min(100% - 1.25rem, 1240px); padding-top: 20px; }
  .research-page main { display: flex; flex-direction: column; gap: 12px; }
  .research-page #columnRight { order: 1; width: 100%; }
  .research-page #news { order: 2; width: 100%; }
  .research-page #news iframe[src*="docs.google.com/presentation"] { height: 360px; }
  .research-page main > section:not(#news) { order: 3; width: 100%; }
  .cv-page .site-wrap { width: min(100% - 1.25rem, 1120px); padding-top: 20px; }
  .cv-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cv-sidebar { display: contents; }
  .cv-sidebar > section:first-child { order: -1; }
  .cv-main > section, .cv-sidebar > section { padding: 21px 19px; }
}

@media (max-width: 470px) {
  .site-wrap, .home-wrap { width: min(100% - 1.25rem, 1120px); }
  .home-profile { grid-template-columns: 1fr; padding: 20px; }
  .home-portrait { grid-row: 1; width: min(190px, 66%); justify-self: center; }
  .home-profile h1 { font-size: 2rem; text-align: center; }
  .home-tagline { text-align: center; }
  .home-footer { justify-content: flex-start; }
  .cv-contact { display: grid; gap: 4px; }
  .cv-table { min-width: 620px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  :root, .cv-page { --page: #fff; --surface: #fff; --surface-soft: #fff; --shadow: none; }
  body { background: #fff; font-size: 9.5pt; }
  .cv-page .site-wrap { width: 100%; padding: 0; }
  .cv-page .site-topline, .cv-sidebar { display: none !important; }
  .cv-header, .cv-main > section { border-color: #b8bdc4; box-shadow: none; break-inside: avoid; }
  .cv-layout { display: block; margin-top: 12px; }
  .cv-main > section { padding: 14px 18px; }
  .cv-main h2 { margin-bottom: 10px; }
  .cv-footer { display: none; }
  a { color: inherit; text-decoration: none; }
}
