/* Young-Lin Yoo — a shared editorial system for the academic site. */
:root {
  color-scheme: light;
  --bg: #f8f7f3; --bg-2: #efeee8; --surface: #fffefa; --surface-solid: #fffefa; --surface-2: #efeee8;
  --text: #202c2d; --text-2: #3e4948; --muted: #626965; --faint: #6e746e;
  --line: #dedfd6; --line-2: #babfb5; --accent: #8a4134; --accent-2: #8a4134;
  --cyan: #8a4134; --blue: #405c57; --teal: #405c57; --warn: #845c29;
  --font-sans: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: "Source Serif 4", "IBM Plex Sans KR", Georgia, serif;
  --font-mono: "JetBrains Mono", monospace;
  --shell: 1160px; --gutter: clamp(22px, 5vw, 64px); --header: 84px;
  --fs-small: 14px; --fs-lead: 19px; --radius: 2px; --radius-lg: 2px;
  --ease: ease; --ease-flow: ease;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.8 var(--font-sans); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.3; letter-spacing: -.045em; }
ul, ol { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #e4d8cb; }
.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); font-size: 12px; }
.eyebrow { font: 11px/1.6 var(--font-mono); color: var(--muted); letter-spacing: .09em; text-transform: uppercase; }
.muted, .section-note, .source-note { color: var(--muted); font-size: 13px; line-height: 1.9; }
.source-note { margin-top: 24px; }
.skip { position: fixed; z-index: 100; top: 12px; left: 16px; padding: 10px 16px; background: var(--text); color: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.inline-links { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 28px; font-size: 13px; }
.inline-links a, .text-link { text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.text-link { display: inline-block; font-size: 13px; }
.subhead { font-size: 16px; margin: 35px 0 16px; }
.section { padding: 56px 0 64px; }
.section > .shell { border-top: 1px solid var(--line-2); padding-top: 34px; }
.editorial-section { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; }
.editorial-section > * { min-width: 0; }
.section-label h2 { font-size: 25px; margin-top: 14px; }
.section-label .text-link { margin-top: 24px; }
.section-label .section-note { margin-top: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: start; gap: 36px; margin-bottom: 32px; }
.section-head h2 { font-size: 28px; margin-top: 10px; }
.section-head > p { max-width: 460px; font-size: 14px; color: var(--muted); }
.section-head--stack { display: block; }
.section-foot { margin-top: 24px; }
/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header); background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; height: 100%; align-items: center; gap: 30px; }
.brand { text-decoration: none; margin-right: auto; }
.brand__text { display: flex; align-items: baseline; gap: 13px; }
.brand__text strong { font-size: 17px; font-weight: 600; }
.brand__text small { font: 17px var(--font-display); }
.site-nav ul { display: flex; gap: 28px; }
.site-nav a { display: block; position: relative; text-decoration: none; font-size: 13px; color: var(--muted); padding-block: 8px; }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; border-bottom: 2px solid var(--accent); }
.site-nav small, .site-nav__flow { display: none; }
.site-header__tools { display: flex; align-items: center; gap: 10px; }
body:not([data-page="projects"]):not([data-page="theme"]) .motion { display: none; }
.motion { position: relative; }
.motion__toggle { display: flex; align-items: center; gap: 7px; background: transparent; border: 0; padding: 8px 0; font-size: 11px; color: var(--muted); }
.motion__toggle svg { width: 18px; }
.motion__label b { font-weight: 400; }
.motion__panel { position: absolute; top: 44px; right: 0; width: 290px; padding: 20px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 8px 24px #202c2d10; }
.motion__title { font-size: 14px; margin-bottom: 12px; }
.motion__options { display: grid; }
.motion__options button { display: grid; gap: 2px; background: none; text-align: left; border: 0; border-top: 1px solid var(--line); padding: 10px 0; }
.motion__options span, .motion__note { font-size: 11px; color: var(--muted); }
.motion__options [aria-pressed="true"] { color: var(--accent); }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-2); }
.menu-toggle__lines { display: grid; gap: 5px; width: 18px; margin: auto; }
.menu-toggle__lines i { height: 1px; background: currentColor; }
.menu-overlay { position: fixed; z-index: 45; inset: var(--header) 0 0; overflow-y: auto; background: var(--bg); padding: 40px var(--gutter); }
.menu-overlay__nav a { display: grid; grid-template-columns: 30px 1fr auto; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.menu-overlay__nav small, .menu-overlay__nav em { font: 11px var(--font-mono); color: var(--muted); }
.menu-overlay__nav span { font-size: 29px; }
.menu-overlay__nav [aria-current="page"] { color: var(--accent); }
.menu-overlay__foot { margin-top: 28px; font-size: 13px; }
.menu-open { overflow: hidden; }
/* Home: name, affiliation, research and bibliography */
.profile-hero { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 100px; padding-block: 88px 62px; }
.profile-hero h1 { font: 500 clamp(64px, 7.7vw, 100px)/.99 var(--font-display); letter-spacing: -.055em; margin-top: 28px; }
.profile-hero__ko { display: inline-block; vertical-align: baseline; font: 400 26px var(--font-sans); letter-spacing: -.05em; margin-left: 30px; }
.profile-hero__field { font-size: 20px; margin-top: 35px; letter-spacing: -.04em; }
.profile-hero__lead { max-width: 570px; margin-top: 17px; font-size: 15px; line-height: 2; color: var(--text-2); }
.profile-aside { align-self: end; border-top: 2px solid var(--text); padding-top: 18px; padding-bottom: 4px; }
.facts { margin: 20px 0 0; }
.facts > div { border-bottom: 1px solid var(--line); padding-block: 14px; }
.facts dt { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.facts dd { margin: 0; font-size: 14px; }
.facts--wide { margin: 0; }
.facts--wide > div { display: grid; grid-template-columns: 130px 1fr; padding-block: 20px; }
.facts--wide dd { font-size: 17px; }
.profile-aside__links { display: grid; gap: 10px; margin-top: 24px; font: 15px var(--font-display); }
.profile-aside__links a { display: flex; justify-content: space-between; text-decoration: none; }
.research-lines > li { border-bottom: 1px solid var(--line); }
.research-lines > li:first-child { margin-top: -18px; }
.research-lines a { display: grid; grid-template-columns: 30px minmax(0,1fr) 16px; gap: 16px; padding: 22px 0 25px; text-decoration: none; }
.research-lines__no { color: var(--accent); padding-top: 5px; }
.research-lines strong { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.035em; }
.research-lines__en { display: block; color: var(--muted); font: italic 16px/1.5 var(--font-display); margin-top: 3px; }
.research-lines__copy { display: block; margin-top: 12px; max-width: 650px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.research-lines a > span:last-child { color: var(--muted); }
.contact-text > p { font-size: 15px; color: var(--text-2); }
.contact-email { display: inline-block; margin: 14px 0 12px; font: 400 clamp(18px, 2.7vw, 30px)/1.5 var(--font-display); overflow-wrap: anywhere; }
/* Shared interior pages */
.page-hero, .theme-hero { padding: 72px 0 24px; }
.page-hero__inner { display: grid; justify-items: start; gap: 24px; }
.page-title { font-size: clamp(40px,5vw,60px); font-weight: 400; letter-spacing: -.055em; }
.page-title > span { display: block; font: italic 24px/1.6 var(--font-display); letter-spacing: -.02em; color: var(--muted); margin-top: 12px; }
.page-lead { max-width: 710px; font-size: 17px; line-height: 1.95; color: var(--text-2); }
.page-hero .inline-links { margin-top: 0; }
.subnav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 10px; font-size: 13px; }
.subnav a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.subnav b, .subnav .mono { margin: 0 6px; font-weight: 400; color: var(--muted); }
.research-detail__summary { font-size: 20px; line-height: 1.9; max-width: 700px; }
.research-detail__keywords { color: var(--muted); font: 12px/1.9 var(--font-mono); margin-top: 22px; }
/* Papers: restrained bibliographic rows, no placeholder cards */
.pubs { border-top: 1px solid var(--line-2); }
.pub { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.pub__year { font-size: 12px; padding-top: 2px; color: var(--muted); }
.pub__type { font-size: 10px; color: var(--accent); margin-bottom: 7px; }
.pub h3 { font: 500 22px/1.4 var(--font-display); letter-spacing: -.025em; }
.pub h3 a { text-decoration: none; }
.pub h3 a:hover { text-decoration: underline; }
.pub__authors { font-size: 12px; color: var(--muted); margin-top: 10px; }
.pub__authors b { font-weight: 500; color: var(--text); }
.pub__venue { font: italic 14px/1.7 var(--font-display); color: var(--muted); margin-top: 3px; }
.pub__summary { font-size: 13px; line-height: 1.8; margin-top: 12px; color: var(--text-2); }
.pub__doi { font-size: 10px; color: var(--muted); margin-top: 12px; overflow-wrap: anywhere; }
.pubs--selected > .pub:first-child { padding-top: 0; }
.pubs--selected { border-top: 0; }
.pubs--selected .pub__summary, .pubs--selected .pub__doi { display: none; }
/* Filters and projects */
.finder--plain > .chips + .chips { margin-top: 10px; }
.finder { margin-bottom: 30px; }
.finder__search { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-2); padding: 12px 0; margin-bottom: 16px; }
.finder__search svg { width: 20px; }
.finder__search input { min-width: 0; width: 100%; background: none; border: 0; outline-offset: 6px; font-size: 16px; }
.finder__filters { display: grid; gap: 12px; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { background: none; border: 1px solid var(--line); padding: 5px 12px; font-size: 12px; border-radius: 2px; }
.chip-btn:hover { border-color: var(--accent); }
.chip-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-btn--accent { color: var(--accent); }
.status { font: 11px/1.8 var(--font-mono); color: var(--muted); margin-top: 12px; }
.empty-note { font-size: 14px; color: var(--muted); margin-top: 22px; }
.empty-note button { background: none; border: 0; color: var(--accent); }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.project-card { display: flex; flex-direction: column; min-width: 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--text); }
.project-card__visual { position: relative; display: block; aspect-ratio: 16/10; background: var(--bg-2); overflow: hidden; }
.project-card__visual img { width: 100%; height: 100%; object-fit: cover; }
.project-card__tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; }
.project-card__tags span, .project-card__no { font-size: 10px; background: var(--surface); padding: 2px 6px; color: var(--text-2); }
.project-card__no { position: absolute; right: 10px; top: 10px; }
.project-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px 0; }
.project-title { font-size: 19px; font-weight: 500; }
.project-card__copy { font-size: 13px; color: var(--muted); }
.project-card__steps { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.project-card__steps span { font-size: 12px; color: var(--muted); }
.project-card__steps b { display: block; font-weight: 500; color: var(--text-2); }
.project-card__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 11px; }
.project-card__foot code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; color: var(--muted); }
.project-card__foot > span { flex: none; }
.project-card.is-spotlight { outline: 2px solid var(--accent); outline-offset: 8px; }
.theme-panels { display: grid; gap: 40px; }
.theme-panel { display: grid; grid-template-columns: 290px 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.theme-panel__viz, .theme-figure__frame { position: relative; background: var(--bg-2); overflow: hidden; min-height: 200px; }
.theme-panel__text { display: grid; justify-items: start; align-content: start; gap: 15px; }
.theme-panel__text h3 { font-size: 24px; }
.theme-panel__text h3 a { text-decoration: none; }
.theme-panel__text > p:not(.eyebrow) { font-size: 14px; color: var(--muted); }
.theme-panel__viz canvas, .theme-panel__viz .flow-under, .theme-figure__frame canvas, .theme-figure__frame .flow-under, .g-media canvas, .g-media .flow-under, .lightbox__media canvas, .lightbox__media .flow-under, .figure__frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-tag { position: absolute; bottom: 10px; left: 12px; right: 12px; font-size: 9px; color: var(--muted); }
.mini-list { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.others { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.others > p:not(.eyebrow) { font-size: 14px; margin: 10px 0; }
.button { display: inline-block; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 30px; }
.theme-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.theme-hero__grid > *, .theme-body__grid > *, .theme-panel > *, .notes__grid > * { min-width: 0; }
.theme-hero__text > * + * { margin-top: 18px; }
.page-title--theme { font-size: 40px; }
.theme-figure__frame { width: 100%; min-height: 0; aspect-ratio: 16/10; }
.theme-figure figcaption, .figure figcaption { font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 10px; }
.theme-body__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 60px; }
.theme-body h2 { font-size: 24px; margin: 10px 0 20px; }
.theme-question__text { font-size: 18px; }
.approach li { display: grid; grid-template-columns: 25px 1fr; gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.approach .mono { grid-row: span 2; color: var(--accent); }
.approach strong { font-size: 15px; font-weight: 500; }
.approach p { font-size: 13px; color: var(--muted); }
.caution { grid-column: 1/-1; border-left: 2px solid var(--line-2); padding: 12px 20px; font-size: 13px; color: var(--muted); }
.caution b { font-weight: 500; }
.group + .group { margin-top: 42px; }
.group__head { display: flex; justify-content: space-between; margin-bottom: 18px; }
.group__head h3 { font-size: 20px; }
.group__head > span { color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 20px; padding-block: 32px 70px; }
.pager__link { min-width: 0; flex: 1; display: grid; gap: 8px; text-decoration: none; }
.pager__link--next { text-align: right; }
/* Gallery and its accessible dialog */
.g-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 28px; }
.g-tile { display: flex; flex-direction: column; width: 100%; text-align: left; background: none; border: 0; padding: 0; }
.g-media { display: block; position: relative; width: 100%; aspect-ratio: 4/3; background: var(--bg-2); overflow: hidden; }
.g-media img { width: 100%; height: 100%; object-fit: cover; }
.g-label { display: block; font-size: 10px; color: var(--muted); margin-top: 10px; }
.g-caption { display: grid; gap: 3px; padding: 3px 0 12px; border-bottom: 1px solid var(--line); width: 100%; }
.g-caption strong { font-size: 16px; font-weight: 500; }
.g-caption span { font-size: 11px; color: var(--muted); }
.lightbox { position: fixed; width: min(1100px,calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); }
.lightbox::backdrop { background: #202c2daa; }
.lightbox__inner { display: grid; grid-template-columns: 1.5fr 1fr; min-height: 500px; }
.lightbox__media { position: relative; min-height: 260px; background: var(--bg-2); }
.lightbox__media img { width: 100%; height: 100%; position: absolute; object-fit: contain; }
.lightbox__text { padding: 30px 30px 90px; display: grid; gap: 16px; align-content: start; }
.lightbox__text h2 { font-size: 28px; }
.lightbox__label, .lightbox__count { font-size: 11px; color: var(--muted); }
.lightbox__copy { font-size: 14px; }
.lightbox__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.lightbox__nav { position: absolute; right: 25px; bottom: 25px; display: flex; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--line-2); background: var(--bg); }
/* Notes, external links and long-form text */
.notes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.blog-card { display: grid; gap: 12px; position: relative; padding: 25px 0; border-block: 1px solid var(--line-2); text-decoration: none; }
.blog-card strong { font-size: 26px; font-weight: 500; }
.blog-card > span:not(.mono) { font-size: 14px; color: var(--muted); }
.blog-card i { font-style: normal; }
.blog-card__lines { display: none; }
.ext-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; }
.ext-grid--stack { grid-template-columns: 1fr; }
.ext-grid a { display: grid; position: relative; gap: 5px; padding: 20px 25px 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.ext__kind { font-size: 10px; color: var(--accent); }
.ext-grid strong { font-size: 17px; font-weight: 500; }
.ext__copy { font-size: 12px; color: var(--muted); }
.ext__arrow { position: absolute; right: 0; top: 22px; }
.note-list { border-top: 1px solid var(--line-2); }
.note-row a { display: grid; grid-template-columns: 84px minmax(0,1fr) 12px; gap: 15px; border-bottom: 1px solid var(--line); padding: 24px 0; text-decoration: none; }
.note-row time { color: var(--muted); font-size: 10px; }
.note-row__main { display: grid; gap: 10px; }
.note-row strong { font-size: 20px; font-weight: 500; line-height: 1.6; }
.note-row__main > span:last-child { font-size: 13px; color: var(--muted); }
.note-row__meta { display: flex; gap: 10px; font-size: 10px; color: var(--muted); }
.chip--draft { color: var(--warn); }
.contact-cards { margin-top: 24px; }
.contact-cards a { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 13px; }
.contact-cards .mono { color: var(--muted); overflow-wrap: anywhere; }
.article__head { padding-block: 65px 40px; max-width: 850px; }
.article__title { font-size: clamp(32px,4.5vw,52px); margin: 20px 0; }
.article__summary { font-size: 18px; color: var(--text-2); }
.article__meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; color: var(--muted); font-size: 11px; }
.draft-banner { margin-top: 24px; font-size: 13px; color: var(--muted); border-left: 2px solid var(--warn); padding-left: 16px; }
.article__layout { display: grid; grid-template-columns: 200px minmax(0,720px); gap: 60px; padding-bottom: 60px; }
.article__layout > * { min-width: 0; }
.toc { position: sticky; top: 115px; font-size: 12px; }
.toc summary { margin-bottom: 16px; cursor: pointer; }
.toc a { display: flex; gap: 12px; padding: 8px 0; text-decoration: none; color: var(--muted); }
.toc [aria-current="true"] { color: var(--accent); }
.toc .mono { font-size: 10px; }
.prose { font-size: 16px; line-height: 2; color: var(--text-2); }
.prose > * + * { margin-top: 1.3em; }
.prose h2 { font-size: 25px; margin-top: 2.5em; border-top: 1px solid var(--line); padding-top: 25px; }
.prose h3 { font-size: 20px; margin-top: 1.8em; }
.prose ul, .prose ol { list-style: revert; padding-left: 1.3em; }
.prose math[display="block"] { overflow-x: auto; max-width: 100%; padding: 18px 0; }
.prose pre { overflow-x: auto; padding: 22px; background: var(--bg-2); font-size: 12px; line-height: 1.7; }
.prose code { font-family: var(--font-mono); font-size: .85em; }
.prose .figure__frame { position: relative; min-height: 260px; background: var(--bg-2); }
.article__foot { padding-bottom: 70px; }
.related { display: flex; gap: 30px; margin: 20px 0 30px; }
.related a { display: grid; gap: 8px; text-decoration: none; }
.related strong { font-size: 14px; font-weight: 500; }
.read-progress { position: fixed; z-index: 51; top: var(--header); left: 0; right: 0; height: 2px; }
.read-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.copy-btn { float: right; background: none; border: 1px solid var(--line-2); font-size: 11px; }
/* Footer */
.site-footer { border-top: 1px solid var(--line-2); padding: 36px 0 25px; margin-top: 35px; }
.footer-line { display: flex; justify-content: space-between; align-items: baseline; gap: 30px; }
.footer-name { font-size: 14px; text-decoration: none; }
.footer-name span { font: 15px var(--font-display); margin-left: 12px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav small { display: none; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 32px; font-size: 11px; color: var(--muted); }
.footer-base a { text-decoration: none; }
.flow-dye, .flow-under { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.viz-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .35; }
html[data-motion="off"] canvas[data-flow], html[data-motion="off"] .flow-under, html[data-motion="off"] .flow-dye { visibility: hidden; }
/* Responsive type and content order stay the same across all tabs. */
@media (max-width: 1050px) {
  .site-nav ul { gap: 18px; }
  .brand__text small { display: none; }
  .profile-hero { gap: 55px; grid-template-columns: minmax(0,1fr) 250px; }
  .editorial-section { grid-template-columns: 180px minmax(0,1fr); gap: 35px; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  :root { --header: 68px; --gutter: 24px; }
  .site-nav { display: none; }
  .brand__text small { display: inline; }
  .menu-toggle { display: block; }
  .site-header__inner { gap: 12px; }
  .profile-hero { grid-template-columns: 1fr; gap: 45px; padding-block: 52px 22px; }
  .profile-hero h1 { font-size: clamp(64px,14vw,90px); }
  .profile-hero__ko { font-size: 22px; margin-left: 22px; }
  .profile-hero__field { font-size: 18px; margin-top: 28px; }
  .profile-hero__lead { font-size: 14px; }
  .profile-aside { max-width: none; }
  .profile-aside .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .profile-aside .facts > div:last-child { grid-column: 1/-1; }
  .profile-aside__links { display: flex; gap: 25px; font-size: 14px; }
  .profile-aside__links a { gap: 15px; }
  .section { padding: 32px 0; }
  .section > .shell { padding-top: 26px; }
  .editorial-section { grid-template-columns: 1fr; gap: 30px; }
  .section-label h2 { font-size: 24px; margin-top: 8px; }
  .section-label .section-note br { display: none; }
  .section-label .section-note { margin-top: 10px; }
  .section-label .text-link { margin-top: 12px; }
  .research-lines a { gap: 12px; grid-template-columns: 22px minmax(0,1fr) 14px; }
  .research-lines strong { font-size: 19px; }
  .research-lines__copy { font-size: 13px; }
  .page-hero, .theme-hero { padding: 45px 0 20px; }
  .page-hero__inner { gap: 20px; }
  .page-title { font-size: 42px; }
  .page-lead { font-size: 15px; }
  .section-head { display: grid; gap: 16px; }
  .section-head h2 { font-size: 25px; }
  .section-head > p { font-size: 13px; }
  .research-detail__summary { font-size: 17px; }
  .pub { grid-template-columns: 38px minmax(0,1fr); gap: 13px; padding-block: 22px; }
  .pub h3 { font-size: 20px; }
  .pub__authors { font-size: 11px; }
  .pub__venue { font-size: 13px; }
  .notes__grid, .theme-panel, .theme-hero__grid, .theme-body__grid { grid-template-columns: 1fr; gap: 30px; }
  .theme-panel__viz { min-height: 180px; }
  .card-grid, .g-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .project-card__steps, .project-card__foot code { display: none; }
  .project-title { font-size: 17px; }
  .project-card__copy { font-size: 12px; }
  .project-card__tags span:last-child { display: none; }
  .project-card__tags { left: 6px; top: 6px; }
  .project-card__no { right: 6px; top: 6px; }
  .lightbox__inner { grid-template-columns: 1fr; }
  .lightbox__media { min-height: 230px; }
  .lightbox__text { padding: 24px 24px 75px; }
  .lightbox__text h2 { font-size: 24px; }
  .article__head { padding-top: 45px; }
  .article__layout { grid-template-columns: 1fr; gap: 25px; }
  .article__summary { font-size: 16px; }
  .toc { position: static; border-block: 1px solid var(--line); padding-block: 15px; }
  .toc summary { margin-bottom: 0; }
  .related { display: grid; gap: 20px; }
  .note-row a { grid-template-columns: 1fr 12px; gap: 10px; }
  .note-row time { grid-column: 1/-1; }
  .footer-line { display: grid; gap: 24px; }
  .site-footer__nav { gap: 16px; }
  .site-footer { margin-top: 25px; }
}
@media (max-width: 420px) {
  .brand__text { gap: 10px; }
  .brand__text small { font-size: 15px; }
  .motion__label { display: none; }
  .ext-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .facts--wide > div { grid-template-columns: 90px 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

html:not(.js) .menu-toggle, html:not(.js) .motion { display: none; }
@media (max-width: 760px) {
  html:not(.js) .site-header { height: auto; position: static; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 14px; }
  html:not(.js) .site-nav { display: block; width: 100%; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; gap: 6px 22px; }
}
