/* Shared editorial system for the English and Polish research profiles. */
:root {
  --type-section: clamp(2rem, 3.5vw, 2.8rem);
  --type-publication: clamp(20px, 2.3vw, 23px);
  color-scheme: light;
  --bg: #fafbfe;
  --surface: #f0f3f9;
  --text: #142036;
  --muted: #506078;
  --accent: #245bd6;
  --border: #d9e0ec;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101827;
  --surface: #162137;
  --text: #edf2fa;
  --muted: #acbdd3;
  --accent: #93b8ff;
  --border: #314059;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #101827;
    --surface: #162137;
    --text: #edf2fa;
    --muted: #acbdd3;
    --accent: #93b8ff;
    --border: #314059;
    }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 "Noto Sans", "Noto Sans KR", sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, blockquote { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
main:focus { outline: none; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 76px; border-bottom: 1px solid var(--border); }
h2 { font: 600 var(--type-section)/1.16 "Noto Sans", "Noto Sans KR", sans-serif; letter-spacing: -.035em; margin-bottom: 36px; }
h3 { font-size: 1.15rem; font-weight: 550; line-height: 1.45; }
p + p { margin-top: 22px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 20px; transform: translateY(-160%); padding: 12px 20px; background: var(--text); color: var(--bg); }
.skip-link:focus { transform: none; }
.page-nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
.page-nav > .container { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 24px; }
.brand-link { font-family: "Gotu", "Noto Sans", sans-serif; font-weight: 400; font-size: 20px; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.nav-links, .nav-meta, .language-switch { display: flex; align-items: center; }
.nav-links { gap: 28px; font-size: 13px; }
.nav-links > a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav-links > a:hover { text-decoration: underline; }
.nav-meta { gap: 16px; }
.language-switch { gap: 2px; border-left: 1px solid var(--border); padding-left: 12px; font-size: 12px; }
.language-switch > * { display: grid; place-items: center; min-height: 44px; min-width: 32px; }
.language-switch [aria-current] { color: var(--accent); font-weight: 700; }
.language-switch a { color: var(--muted); text-decoration: none; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: transparent; border: 1px solid var(--border); border-radius: 50%; color: var(--text); cursor: pointer; }
.theme-toggle:hover { background: var(--surface); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle[aria-pressed="true"] .icon-sun { display: block; }
.theme-toggle[aria-pressed="true"] .icon-moon { display: none; }
.nav-menu-toggle { display: none; }
.eyebrow, .section-index { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .15em; color: var(--accent); }
h1 { font: 600 clamp(32px, 4vw, 52px)/1.15 "Noto Sans", "Noto Sans KR", sans-serif; letter-spacing: -.03em; margin-top: 6px; }
h1 span { font-size: .5em; color: var(--muted); }
.section-index { margin-bottom: 16px; }
.focus-grid { counter-reset: focus; }
.focus-item { display: grid; grid-template-columns: 40px 1fr 1.6fr; gap: 22px; padding: 25px 0; border-top: 1px solid var(--border); }
.focus-item::before { counter-increment: focus; content: "0" counter(focus); font: 13px/1.8 ui-monospace, monospace; color: var(--accent); }
.focus-item p { color: var(--muted); max-width: 64ch; }
#publications { background: var(--surface); }
.section-intro { max-width: 660px; color: var(--muted); }
.publication-index { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-block: 30px 46px; }
.publication-index a { font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; text-decoration-color: var(--border); }
.publication-group { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 40px; border-top: 1px solid var(--border); padding-top: 28px; }
.group-label { font-size: 12px; font-weight: 650; color: var(--accent); text-transform: uppercase; letter-spacing: .09em; scroll-margin-top: 115px; }
.publication { padding-bottom: 28px; }
.publication + .publication { border-top: 1px solid var(--border); padding-top: 26px; }
.publication h3 { font: 600 var(--type-publication)/1.4 "Noto Sans", "Noto Sans KR", sans-serif; letter-spacing: -.015em; margin-bottom: 12px; }
.publication a { text-decoration: none; }
.publication a:hover { text-decoration: underline; }
.publication a::after { content: " ↗"; font-family: "Noto Sans", "Noto Sans KR", sans-serif; font-size: 16px; color: var(--accent); white-space: nowrap; }
.publication p { color: var(--muted); font-size: 14px; max-width: 80ch; }
.intro-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 80px; }
.bio-note { font-size: 18px; }
.work-question { font: 500 24px/1.5 "Noto Sans", "Noto Sans KR", sans-serif; color: var(--accent); padding-block: 30px; margin-block: 28px; border-block: 1px solid var(--border); }
.intro-grid p:not(.bio-note) { color: var(--muted); font-size: 15px; }
.fact-list { margin: 0; padding: 0; list-style: none; }
.fact-list li { font-size: 13px; padding: 20px 0; border-top: 1px solid var(--border); }
.fact-list strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; color: var(--muted); }
.fact-list a { text-decoration-color: var(--border); }
.section:not([id]) > .container > p:not(.section-index) { max-width: 760px; color: var(--muted); margin-bottom: 32px; }
.section:not([id]) .publication { max-width: 760px; border-left: 2px solid var(--accent); padding: 5px 0 5px 26px; }
#profiles { background: var(--surface); }
.profile-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); align-items: start; gap: 40px; }
.profile-grid p { color: var(--muted); max-width: 32ch; }
.profile-links { display: flex; flex-wrap: wrap; gap: 4px 20px; min-width: 0; }
.profile-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.profile-links a:first-child { width: 100%; margin-bottom: 15px; font: 500 22px/1.4 "Noto Sans", "Noto Sans KR", sans-serif; overflow-wrap: anywhere; color: var(--accent); }
.page-footer .container { display: flex; justify-content: space-between; gap: 24px; padding-block: 25px; font-size: 12px; color: var(--muted); }
.page-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.page-footer span { align-self: center; }
@media (max-width: 1000px) {
  .nav-links { gap: 18px; }
  .publication-group { grid-template-columns: 160px minmax(0,1fr); gap: 32px; }
  .intro-grid { gap: 40px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 88px; }
  .container { width: calc(100% - 40px); }
  .section { padding-block: 56px; }
  .page-nav > .container { min-height: 70px; flex-wrap: wrap; gap: 0; }
  .brand-link { font-size: 21px; }
  .nav-shell { display: contents; }
  .nav-links { width: 100%; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 18px; }
  .nav-meta { margin-left: auto; }
  .nav-ready .nav-links { display: none; }
  .nav-ready .nav-links.is-open { display: flex; }
  .nav-ready .nav-menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; align-items: center; height: 44px; width: 44px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
  .nav-menu-toggle span { width: 18px; height: 1px; background: currentColor; }
  .nav-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
  .nav-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
  h1 { font-size: 25px; }
  h1 span { font-size: 17px; }
  .focus-item { grid-template-columns: 26px minmax(0,1fr); gap: 10px 16px; }
  .focus-item p { grid-column: 2; font-size: 14px; }
  .publication-group { display: block; padding-top: 22px; }
  .group-label { margin-bottom: 22px; }
  .publication-index { gap: 0 22px; margin-bottom: 26px; }
  .intro-grid, .profile-grid { display: block; }
  .fact-list { margin-top: 36px; }
  .profile-links { margin-top: 24px; gap: 8px 24px; }
  .profile-links a:first-child { font-size: clamp(16px, 4.3vw, 21px); }
  .page-footer .container { align-items: flex-start; }
  .page-footer span { max-width: 180px; }
  .page-footer a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .page-nav, .publication-index, .page-footer, .skip-link { display: none; }
  :root { --bg: white; --surface: white; --text: black; --muted: #333; --accent: black; --border: #aaa; }
  .container { width: 100%; }
  .section { padding-block: 28px; }
  .publication { break-inside: avoid; }
}

/* Featured publications. */
.featured-publication { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 28px; }
.paper-visual { align-self: start; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; background: var(--bg); }
.paper-visual img { width: 100%; height: auto; }
.paper-visual span { display: block; padding: 9px 12px; color: var(--muted); font: 10px/1.5 ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .07em; }
.paper-copy { min-width: 0; }
.paper-copy > p { font-size: 13px; }
.nav-links > a[aria-current="location"] { color: var(--accent); text-decoration: underline; text-underline-offset: 8px; }
@media (min-width: 761px) {
  .publication-group:first-child { grid-template-columns: 1fr; gap: 20px; }
  .publication-group:first-child > div:last-child { padding-left: 0; }
  .publication-group:first-child .featured-publication { grid-template-columns: 240px minmax(0,1fr); gap: 40px; padding-block: 28px; }
  .publication-group:first-child .paper-copy { max-width: 720px; }
  .paper-copy > p { font-size: 15px; }
}

@media (max-width: 760px) {
  h1 { font-size: 29px; }
  h1 span { font-size: 15px; }
  .eyebrow { font-size: 9px; }
  .featured-publication { grid-template-columns: 1fr; gap: 18px; }
  .paper-visual { max-width: 100%; }
  .paper-visual img { height: 160px; object-fit: cover; }
  .paper-copy > p { font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease; }
}
@media print {
  .paper-visual { display: none; }
  .featured-publication { display: block; }
}

/* Discovery-first interactive research explorer. */
.cosmos-intro { max-width: 780px; }
.cosmos { margin: 36px 0 42px; background: #0c1728; color: #e7f1ff; border: 1px solid #2c405a; }
.cosmos-stage { position: relative; height: 340px; overflow: hidden; }
.cosmos-stage canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.cosmos [hidden] { display: none !important; }
.cosmos-caption { position: absolute; top: 24px; left: 26px; max-width: calc(100% - 52px); padding: 8px 12px; background: #0c1728e8; font-size: 18px; line-height: 1.5; pointer-events: none; }
.cosmos-caption span { font-size: 12px; color: #b3c3d8; }
.cosmos-fallback { padding: 150px 28px 40px; color: #b3c3d8; }
.cosmos-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding: 18px 26px; border-top: 1px solid #2c405a; }
.cosmos-controls button { padding: 10px 16px; min-height: 44px; border: 1px solid #405773; border-radius: 5px; background: #192d45; color: #e7f1ff; cursor: pointer; font-size: 12px; }
.cosmos-controls button:hover { background: #2c435e; }
.cosmos-controls label { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; flex: 1; min-width: 170px; color: #b3c3d8; font-size: 11px; }
.cosmos-controls input { accent-color: #71ddcb; min-height: 32px; flex: 1; min-width: 80px; width: 100%; }
.cosmos-controls output { min-width: 46px; font-family: ui-monospace, monospace; }
.cosmos figcaption { padding: 0 26px 20px; color: #a8bbd4; font-size: 11px; line-height: 1.7; }
.cosmos-status { padding: 0 26px 16px; color: #b3c3d8; font-size: 12px; }
.cosmos-status:empty { display: none; }
.cosmos :focus-visible { outline: 2px solid #71ddcb; outline-offset: 4px; }
.cosmos-paper { max-width: 850px; }
.cosmos-paper .section-index { font-size: 11px; color: var(--accent); margin-bottom: 12px; }
.publication .cosmos-paper-link { text-decoration: underline; display: inline-block; margin-top: 18px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .cosmos-stage { height: 290px; }
  .cosmos-caption { top: 16px; left: 12px; max-width: calc(100% - 24px); font-size: 16px; }
  .cosmos-controls { padding: 16px; gap: 12px; }
  .cosmos-controls label { order: 3; flex-basis: 100%; }
  .cosmos figcaption, .cosmos-status { padding-inline: 16px; }
}
@media print { .cosmos { display: none; } }
.discovery-hero { padding: 62px 0 32px; background: #0c1728; color: #f1f6ff; }
.discovery-hero .eyebrow { color: #7dded1; margin-bottom: 24px; }
.discovery-hero h1 { font: 550 clamp(42px, 5.5vw, 76px)/1.04 "Noto Sans", "Noto Sans KR", sans-serif; letter-spacing: -.055em; margin: 0 0 24px; }
.discovery-hero h1 span { font: inherit; color: #a8bbd4; }
.discovery-lead { max-width: 730px; color: #b3c3d8; font-size: 18px; line-height: 1.7; margin-bottom: 36px; }
.explorer { border-block: 1px solid #2c405a; }
.explorer-tabs { display: flex; padding-inline: 12px; gap: 30px; border-bottom: 1px solid #2c405a; }
.explorer-tabs button { position: relative; color: #a8bbd4; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 19px 0; cursor: pointer; font-size: 15px; }
.explorer-tabs button span { font: 11px ui-monospace, monospace; margin-right: 10px; color: #7894b5; }
.explorer-tabs button[aria-pressed="true"] { color: #f1f6ff; }
.explorer-tabs button[aria-pressed="true"]::after { content: ''; position: absolute; inset-inline: -10px; bottom: -2px; height: 2px; background: #71ddcb; pointer-events: none; }
.explorer-tabs button:hover { color: white; }
.explorer-tabs button:disabled { cursor: default; }
.explorer-body { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); }
.explorer-visual { min-width: 0; border-right: 1px solid #2c405a; }
.explorer-stage { position: relative; height: 430px; overflow: hidden; }
.explorer-stage canvas, .explorer-poster { display: block; width: 100%; height: 100%; object-fit: contain; }
.explorer-stage [hidden], .explorer [hidden] { display: none !important; }
.explorer-gl { touch-action: pan-y; cursor: grab; }
.explorer-gl:active { cursor: grabbing; }
.stage-label { position: absolute; left: 22px; top: 20px; color: #a6bdd8; font: 10px/1.5 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .055em; pointer-events: none; background: #0c1728d9; padding: 4px 7px; }
.explorer-controls { display: flex; gap: 16px; align-items: center; padding: 14px 22px; border-top: 1px solid #263b54; min-height: 75px; }
.explorer-controls button, .view-controls button, .mri-choices button { min-height: 44px; border: 1px solid #405773; border-radius: 5px; background: #192d45; color: #e7f1ff; padding: 8px 16px; cursor: pointer; font-size: 12px; }
.explorer-controls button { min-width: 90px; }
.explorer-controls button[aria-pressed="true"], .mri-choices button[aria-pressed="true"] { background: #26475d; border-color: #71ddcb; }
.explorer-controls button:hover, .view-controls button:hover, .mri-choices button:hover { background: #2c435e; }
.timeline-label { display: flex; flex: 1; flex-direction: column; gap: 2px; color: #a8bbd4; font-size: 10px; min-width: 0; }
.timeline-label input { min-width: 0; width: 100%; min-height: 30px; accent-color: #71ddcb; margin: 0; cursor: pointer; }
.explorer-controls output { color: #b3c5df; font: 11px ui-monospace, monospace; min-width: 52px; }
.view-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 0 22px 16px; color: #8fa9c7; font-size: 10px; }
.view-controls button { background: transparent; border: 0; padding-inline: 10px; color: #b9cce5; }
.drag-hint { margin-left: auto; }
.explorer-story { padding: 42px 34px; align-self: center; }
.data-label { font: 10px/1.6 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .12em; color: #71ddcb; margin-bottom: 18px; }
.explorer-story h2 { font-size: clamp(25px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -.03em; font-weight: 500; margin-bottom: 22px; }
.explorer-story p:not(.data-label) { color: #b3c3d8; font-size: 14px; line-height: 1.75; }
.explorer-story p.data-note { font-size: 11px; color: #8fa9c7; margin-top: 22px; }
.explorer-story a { display: inline-flex; min-height: 44px; align-items: center; color: #c6ddff; font-size: 13px; margin-top: 20px; text-decoration: none; }
.explorer-story a:hover { color: white; text-decoration: underline; }
.signal-key, .region-key { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; margin-top: 22px; color: #b3c3d8; }
.signal-key span::before, .region-key span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 7px; background: #62dccc; }
.signal-key .key-right::before { background: #88aaff; }
.region-key span:nth-child(2)::before { background: #ffbe82; }
.region-key span:nth-child(3)::before { background: #9cafff; }
.mri-choices { display: flex; gap: 8px; margin-top: 22px; }
.eye-mode-label { display: flex; flex-direction: column; gap: 8px; color: #a8bbd4; font-size: 11px; margin-top: 22px; }
.eye-mode-label select{background:#192d45;color:#e7f1ff;border:1px solid #405773;border-radius:5px;padding:10px;min-height:44px;font:13px "Noto Sans","Noto Sans KR",sans-serif;color-scheme:dark}.eye-mode-label select option{background:#192d45;color:#e7f1ff}
.explorer-status:empty { display: none; }
.explorer-story p.explorer-status { margin-top: 15px; font-size: 12px; }
.explorer :focus-visible, .discovery-next:focus-visible { outline: 2px solid #71ddcb; outline-offset: 4px; }
.discovery-next { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 64px; font-size: 13px; color: #afc4df; text-decoration: none; padding-top: 16px; }
.discovery-next:hover { color: #fff; }
.research-background .fact-list li:first-child { border-top: 0; padding-top: 0; }
.discovery-hero h1 { max-width: 1100px; text-wrap: balance; }
.signal-key .key-target::before { background: #ffc78e; }
.signal-key .key-gaze::before { background: #62dccc; }
.eye-mode-label input { width: 100%; min-height: 32px; margin: 0; accent-color: #71ddcb; cursor: pointer; }
.eye-mode-label output { color: #f1f6ff; font-family: ui-monospace, monospace; }
.explorer-tabs { flex-wrap: wrap; column-gap: clamp(16px, 3vw, 38px); row-gap: 0; }
@media (max-width: 1000px) {
  .explorer-body { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); }
  .explorer-story { padding: 28px 24px; }
  .drag-hint { width: 100%; margin-left: 0; }
  .explorer-stage { height: 390px; }
}
@media (max-width: 760px) {
  .discovery-hero { padding-top: 36px; padding-bottom: 16px; }
  .discovery-hero h1 { font-size: clamp(38px, 9.5vw, 60px); }
  .discovery-hero .eyebrow { font-size: 9px; letter-spacing: .08em; margin-bottom: 20px; }
  .discovery-lead { font-size: 15px; margin-bottom: 26px; }
  .explorer-tabs { padding-inline: 8px; column-gap: 16px; justify-content: space-between; }
  .explorer-tabs button { font-size: 13px; padding-block: 16px; }
  .explorer-tabs button[aria-pressed="true"]::after { inset-inline: -6px; }
  .explorer-tabs button span { font-size: 9px; margin-right: 4px; }
  .explorer-body { display: block; }
  .explorer-visual { border-right: 0; }
  .explorer-stage { height: 350px; }
  .explorer-controls { padding: 12px 0; gap: 10px; }
  .explorer-controls button { padding-inline: 12px; min-width: 78px; }
  .view-controls { padding: 0 0 12px; }
  .drag-hint { width: auto; margin-left: auto; font-size: 9px; }
  .stage-label { left: 0; top: 12px; font-size: 8px; }
  .explorer-story { border-top: 1px solid #2c405a; padding: 28px 0; }
  .explorer-story h2 br { display: none; }
  .explorer-story h2 { font-size: 28px; margin-bottom: 16px; }
  .explorer-story .data-label { margin-bottom: 10px; }
}
@media (max-width: 420px) {
  .explorer-tabs button span { display: none; }
  .explorer-tabs { column-gap: 6px; }
  .discovery-hero h1 { font-size: clamp(34px, 9vw, 38px); }
}
@media print {
  .discovery-hero { background: white; color: black; }
  .discovery-hero h1, .discovery-hero h1 span, .discovery-lead { color: black; }
  .explorer, .discovery-next { display: none; }
}

/* Research typography: expressive headings, readable text and controls. */
body { font-optical-sizing: auto; font-variation-settings: "wdth" 100; }
h1, h2, .discovery-hero h1 { font-family: "Gotu", "Noto Sans", sans-serif; font-weight: 400; letter-spacing: -.035em; line-height: 1.2; }
:lang(ko) { font-family: "Noto Sans KR", sans-serif; }
input, select, textarea { font-family: inherit; }

/* Feedback only: no looping or entrance animation on initial page load. */
@media (prefers-reduced-motion: no-preference) {
  .explorer button, .cosmos button { transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 120ms ease; }
  .explorer button:active, .cosmos button:active { transform: translateY(1px); }
  .nav-ready .nav-links.is-open { animation: menu-reveal 160ms ease-out; }
}
@keyframes menu-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
