@import url("https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/nanumsquare.css");

/* Force font-display swap for NanumSquare */
@font-face {
  font-family: "NanumSquare";
  font-display: swap;
  src: local("NanumSquare");
}

:root {
  --bg: #f4efec;
  --surface: #ffffff;
  --surface-soft: #f8f3f1;
  --surface-tint: #fcf8f6;
  --text: #2e2d29;
  --muted: #53565a;
  --line: #ddd4cf;
  --line-strong: #cdbfb8;
  --brand: #8c1515;
  --brand-strong: #6f1010;
  --brand-soft: #f5e8e6;
  --brand-soft-strong: #ead2cf;
  --chip: #f4ecea;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(46, 45, 41, 0.08);
  --font-ui: "NanumSquare", "Nanum Gothic", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --font-serif: "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-ui);
  color: var(--text);
  background: linear-gradient(180deg, #fbf8f6 0%, var(--bg) 100%);
  line-height: 1.6;
  animation: pageIn 0.35s ease;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

a {
  color: inherit;
}

.container {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
}

.container-wide {
  width: min(1440px, calc(100% - 2rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 251, 249, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
}

.site-nav a:hover {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.site-nav a.active {
  background: var(--brand-soft);
  border-color: var(--brand-soft-strong);
  color: var(--brand);
  font-weight: 600;
}

.main-home,
.page-main {
  padding: 1.55rem 0 2.6rem;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.45rem;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.1rem;
  border: 1px solid var(--brand-soft-strong);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(140, 21, 21, 0.12), transparent 34%),
    linear-gradient(180deg, #fffaf8 0%, #f7efec 100%);
  box-shadow: 0 18px 48px rgba(46, 45, 41, 0.12);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -12% -32% 48%;
  height: 260px;
  background: radial-gradient(circle, rgba(140, 21, 21, 0.14) 0%, rgba(140, 21, 21, 0) 72%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.section-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.hero .eyebrow {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--brand);
}

h1,
h2,
h3 {
  font-family: var(--font-ui);
  line-height: 1.2;
}

h1 {
  margin: 0.15rem 0 0.35rem;
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
}

.hero p {
  margin: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-photo {
  width: 240px;
  aspect-ratio: 521 / 670;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--brand-soft-strong), 0 16px 30px rgba(46, 45, 41, 0.14);
  justify-self: end;
}

.hero-role {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--brand-strong);
}

.hero-role-secondary {
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
  color: #5b4f49;
}

.hero-bridge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.08rem;
  padding: 0.34rem 0.62rem 0.36rem;
  border-left: 3px solid var(--brand);
  background: linear-gradient(90deg, rgba(140, 21, 21, 0.08) 0%, rgba(140, 21, 21, 0.02) 100%);
  font-size: 0.96rem;
  font-weight: 700;
  color: #6f1010;
  line-height: 1.52;
  letter-spacing: -0.01em;
}

.hero-summary {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.hero-summary p {
  margin: 0;
}

.hero-summary a {
  color: var(--brand-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(140, 21, 21, 0.38);
  text-underline-offset: 0.14em;
}

.hero-summary a:hover {
  text-decoration-color: currentColor;
}

.hero-badge-line {
  margin: 0.12rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  align-items: center;
  padding: 0.78rem 0.85rem;
  border: 1px solid var(--brand-soft-strong);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 232, 230, 0.92) 100%);
  box-shadow: 0 14px 28px rgba(46, 45, 41, 0.08);
}

.hero-badge-item {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.32rem 0.72rem;
  border: 1px solid var(--brand-soft-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
  color: #433b37;
  box-shadow: 0 6px 14px rgba(46, 45, 41, 0.05);
}

.hero-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-links .btn {
  text-align: center;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.btn-ghost {
  background: #fff;
  color: var(--brand);
}

.section-block {
  padding: 1.2rem 1.25rem;
  margin-bottom: 1.5rem;
}

.section-block h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.22rem, 2vw, 1.42rem);
}

.section-block > .timeline ~ h2,
.section-block > .entry-card ~ h2,
.section-block > .awards-list ~ h2,
.section-block > .skills-grid ~ h2 {
  margin-top: 2.2rem;
}

.main-home .section-block h2 {
  color: var(--brand);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.text-link {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.92rem;
}

.section-note {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-intro {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-block;
  background: var(--chip);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.86rem;
  color: #4f4641;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.news-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.6rem;
  padding: 0.55rem 0.62rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.news-list span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
}

.news-list p {
  margin: 0;
}

.news-emoji {
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 1rem;
  line-height: 1;
  vertical-align: -0.08em;
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.pub-card,
.detail-card,
.entry-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.pub-card,
.entry-card {
  padding: 0.8rem 0.88rem;
}

.pub-card h2,
.pub-card h3 {
  margin: 0;
  font-size: 0.98rem;
}

.pub-group + .pub-group {
  margin-top: 1.15rem;
}

.pub-group-title {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  color: var(--text);
}

.pub-group-count {
  color: var(--muted);
  font-size: 0.92em;
  font-weight: 600;
}

.pub-group-list .pub-card + .pub-card {
  margin-top: 0.65rem;
}

.pub-titleline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

.pub-titleline h2 {
  flex: 1 1 auto;
  min-width: 0;
}

.pub-type-badge {
  flex: 0 0 auto;
  align-self: flex-start;
  display: inline-block;
  border: 1px solid var(--brand-soft-strong);
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pub-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.pub-title-link:hover {
  color: var(--brand);
  border-bottom-color: rgba(140, 21, 21, 0.35);
}

.meta {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.authors {
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
  color: #4b4541;
}

.pub-links {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.pub-links a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 21, 21, 0.25);
}

.pub-links a:hover {
  border-bottom-color: rgba(140, 21, 21, 0.65);
}

.pub-card-clickable {
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.pub-card-clickable:hover {
  transform: translateY(-3px);
  border-color: var(--brand-soft-strong);
  box-shadow: 0 14px 32px rgba(46, 45, 41, 0.13);
}

.pub-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.pub-card-link,
.pub-card-link * {
  text-decoration: none !important;
}

.pub-card-link:hover h2 {
  color: var(--brand);
}

.detail-card {
  text-decoration: none;
  padding: 0.85rem;
  transition: transform 0.12s ease;
}

.detail-card strong {
  font-family: var(--font-ui);
}

.detail-card h3 {
  margin: 0;
  font-size: 0.98rem;
}

.detail-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.detail-card:hover {
  transform: translateY(-1px);
}

.detail-link {
  display: inline-block;
  margin-top: 0.65rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.detail-link:hover {
  text-decoration: underline;
}

.card-actions {
  margin-top: 0.8rem;
}

.project-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-detail-grid {
  margin-top: 0.7rem;
}

.page-title {
  margin: 0;
  font-size: 1.5rem;
}

.page-intro {
  margin: 0.45rem 0 0.9rem;
  color: var(--muted);
}

.entry-card + .entry-card {
  margin-top: 0.65rem;
}

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.entry-head h2,
.entry-head h3 {
  margin: 0;
  font-size: 1rem;
}

.entry-head-mark {
  align-items: flex-start;
}

.entry-title-with-mark {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  min-width: 0;
}

.entry-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 2px;
}

.entry-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.entry-card ul,
.simple-list {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
}

.simple-list li {
  margin-bottom: 0.35rem;
}

.research-figure {
  margin: 0.45rem 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.research-image {
  width: 100%;
  display: block;
}

.research-map-fallback-figure {
  margin-top: 0.85rem;
}

.research-map-fallback-image {
  background: linear-gradient(180deg, #fffaf8 0%, #f7efec 100%);
}

.research-figure figcaption {
  padding: 0.6rem 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.research-map-panel {
  margin-top: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(46, 45, 41, 0.06);
  overflow: auto;
  padding: 0.8rem;
}

.research-map-panel .mermaid {
  min-width: 100%;
}

.research-map-diagram {
  min-width: 100%;
}

.research-map-caption {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.research-map-summary {
  margin-top: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.85rem;
}

.roadmap-flow {
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.roadmap-stage {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf8 0%, #f8f2ef 100%);
  overflow: hidden;
}

.roadmap-stage > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.72rem 0.86rem;
}

.roadmap-stage > summary::-webkit-details-marker {
  display: none;
}

.roadmap-stage > summary::after {
  content: "▾";
  color: var(--muted);
  font-size: 0.86rem;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}

.roadmap-stage:not([open]) > summary::after {
  transform: rotate(-90deg);
}

.roadmap-stage-title {
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--text);
}

.roadmap-stage-meta {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.roadmap-content {
  border-top: 1px solid var(--line);
  padding: 0.62rem 0.86rem 0.78rem;
}

.roadmap-content p {
  margin: 0;
  color: #433b37;
}

.roadmap-content ul {
  margin: 0.42rem 0 0;
  padding-left: 1.05rem;
}

.roadmap-content li {
  margin-bottom: 0.2rem;
  color: #4b4541;
}

.roadmap-connector {
  align-self: center;
  color: #776d68;
  font-weight: 700;
}

.advanced-map-block {
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-tint);
  padding: 0.28rem 0.72rem 0.72rem;
}

.advanced-map-block > summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--brand);
  padding: 0.44rem 0.1rem;
}

.advanced-map-block > summary::-webkit-details-marker {
  display: none;
}

.advanced-map-block > summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 0.4rem;
  color: var(--muted);
  transition: transform 0.18s ease;
}

.advanced-map-block[open] > summary::before {
  transform: rotate(90deg);
}

.research-stage-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.research-stage-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-tint);
  padding: 0.62rem 0.72rem;
}

.research-stage-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

.research-stage-card p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: #4e4642;
}

.research-map-actions {
  margin-top: 0.72rem;
}

.research-map-detail-panel .mermaid {
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.research-map-detail-panel .research-map-diagram {
  min-width: 0;
  width: 100%;
}

.research-map-detail-panel {
  padding: 0.55rem;
  max-height: 80vh;
}

.research-map-detail-panel .mermaid svg,
.research-map-detail-panel .research-map-diagram svg {
  display: block;
  margin: 0 auto;
}

.research-map-placeholder {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.research-map-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  margin-top: 0.35rem;
}

.map-zoom-btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.map-zoom-btn:hover {
  background: var(--surface-soft);
}

.map-zoom-reset {
  margin-left: 0.15rem;
}

.map-zoom-level {
  min-width: 52px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.paper-page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.paper-kicker {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.paper-kicker a {
  color: var(--brand);
  text-decoration: none;
}

.paper-title {
  margin: 0.45rem 0 0;
  font-size: clamp(1.5rem, 2.9vw, 2.2rem);
}

.paper-meta-row {
  margin-top: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.paper-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  align-items: flex-start;
}

.paper-meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.paper-category {
  margin: 0;
  display: inline-block;
  align-self: flex-start;
  border: 1px solid var(--brand-soft-strong);
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 0.16rem 0.62rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.venue-badge {
  display: inline-block;
  width: auto;
  min-width: 132px;
  max-width: 176px;
  height: 56px;
  max-height: 56px;
  object-fit: contain;
  border: 1px solid var(--brand-soft-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fcf6f4 100%);
  padding: 0.45rem 0.75rem;
  box-shadow: 0 10px 24px rgba(46, 45, 41, 0.08);
}

.paper-section {
  margin-top: 1.25rem;
}

.paper-section h2 {
  margin: 0;
  font-size: 1.02rem;
}

.paper-section p {
  margin: 0.45rem 0 0;
  color: #403834;
}

.paper-section a {
  color: var(--brand);
  text-decoration: none;
}

.paper-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.paper-link-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--brand-soft-strong);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 0.22rem 0.62rem;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.paper-link-chip-placeholder {
  border-style: dashed;
  background: var(--surface-tint);
  color: var(--muted);
}

.paper-figure {
  margin: 0.5rem 0 0;
}

.paper-figure img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.paper-pdf-viewer {
  width: 100%;
  height: 560px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.paper-figure-caption {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.paper-figure-source {
  margin: 0.28rem 0 0;
  font-size: 0.88rem;
}

.paper-nav {
  margin-top: 1.6rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.paper-nav a {
  text-decoration: none;
  color: #413934;
  font-size: 0.9rem;
}

.paper-nav a:last-child {
  text-align: right;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    text-align: center;
  }

  .hero-photo {
    justify-self: center;
    width: 220px;
    height: auto;
    aspect-ratio: 521 / 670;
    order: -1;
  }

  .hero-copy {
    align-items: center;
  }

  .hero-badge-line {
    justify-content: center;
  }

  .research-area-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pub-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pillar-grid {
    grid-template-columns: 1fr 1fr;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 251, 249, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 0.75rem;
    flex-direction: column;
    gap: 0.25rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 16px rgba(46, 45, 41, 0.08);
  }

  .site-nav.open {
    display: flex;
  }

  .header-row {
    position: relative;
  }

  .hero {
    padding: 1.15rem;
  }

  .hero-photo {
    width: min(220px, 62vw);
    height: auto;
    aspect-ratio: 521 / 670;
  }

  .news-list li {
    grid-template-columns: 1fr;
  }

  .pub-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  #project-list .pub-group-list {
    grid-template-columns: 1fr;
  }

  .project-summary-grid,
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo {
    order: -1;
    justify-self: center;
  }

  .hero-copy {
    align-items: center;
  }

  .hero-badge-line {
    justify-content: center;
  }

  .hero-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .hero-actions {
    align-items: center;
  }

  .research-area-grid {
    grid-template-columns: 1fr;
  }

  .entry-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .entry-title-with-mark {
    width: 100%;
  }

  .entry-mark {
    width: 24px;
    height: 24px;
  }

  .paper-pdf-viewer {
    height: 360px;
  }

  .research-map-panel .mermaid,
  .research-map-panel .research-map-diagram {
    min-width: 100%;
  }

  .research-map-detail-panel .mermaid,
  .research-map-detail-panel .research-map-diagram {
    justify-content: center;
  }

  .research-stage-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-stage > summary {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .hero-links {
    grid-template-columns: 1fr;
  }
}

.project-card-clickable {
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.project-card-clickable:hover {
  transform: translateY(-3px);
  border-color: var(--brand-soft-strong);
  box-shadow: 0 14px 32px rgba(46, 45, 41, 0.13);
}

.project-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.project-card-link,
.project-card-link * {
  text-decoration: none !important;
}

.project-card-link:hover h2 {
  color: var(--brand);
}

.project-summary {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

#project-list .pub-group-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

#project-list .entry-card + .entry-card {
  margin-top: 0;
}

.project-chip-row {
  margin-top: 0.48rem;
}

.project-keyword {
  font-weight: 700;
  padding: 0.18rem 0.56rem;
}

.project-keyword--institution {
  background: rgba(83, 86, 90, 0.08);
  border-color: rgba(83, 86, 90, 0.18);
  color: #45484b;
}

.project-keyword--output {
  background: rgba(140, 21, 21, 0.08);
  border-color: rgba(140, 21, 21, 0.18);
  color: var(--brand-strong);
}

.project-keyword--partner {
  background: rgba(46, 45, 41, 0.05);
  border-color: rgba(46, 45, 41, 0.12);
  color: #4a433d;
}

.project-keyword--recognition {
  background: rgba(188, 147, 58, 0.1);
  border-color: rgba(188, 147, 58, 0.2);
  color: #7a5600;
}

.project-keyword--scope {
  background: rgba(140, 21, 21, 0.04);
  border-color: rgba(140, 21, 21, 0.1);
  color: #6f4f46;
}

.project-card-summary {
  margin: 0.58rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.58;
}

.project-card-cta {
  display: inline-block;
  margin-top: 0.72rem;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
}

.project-card-link:hover .project-card-cta {
  text-decoration: underline;
}

.project-meta-list {
  margin: 0.45rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-meta-list li {
  margin-bottom: 0.22rem;
}

.project-meta-list strong {
  color: var(--text);
}

.project-page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-affiliation {
  margin: 0.36rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.entry-related {
  margin: 0.7rem 0 0;
  color: #4f4641;
  font-size: 0.9rem;
}

.entry-related a {
  color: var(--brand);
  text-decoration: none;
}

.entry-related a:hover {
  text-decoration: underline;
}

/* 3-pillar grid */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.pillar-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 0.85rem;
}

.pillar-card h3 {
  margin: 0;
  font-size: 0.98rem;
}

.pillar-card p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: #4f4641;
}

.pillar-status {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.pillar-status.emerging {
  color: var(--muted);
}

.pillar-works {
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  font-style: italic;
}

.focus-note {
  margin: 0.8rem 0 0;
  color: #4f4641;
  font-size: 0.94rem;
}

/* Impact grid */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.impact-stat {
  text-align: left;
  padding: 0.85rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.impact-metric {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brand);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.impact-stat h3 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text);
}

.impact-stat strong {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  color: var(--brand);
  display: block;
}

.impact-stat p {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Directions list */
.directions-list {
  margin: 0;
  padding-left: 1.1rem;
}

.directions-list li {
  margin-bottom: 0.4rem;
  color: #4f4641;
}

/* Publication contribution line */
.pub-contribution {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.featured-pub-card {
  padding: 1rem 1rem 0.95rem;
  border-color: var(--line-strong);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-tint) 100%);
  overflow: hidden;
}

.featured-pub-venue-banner {
  margin: -1rem -1rem 0.95rem;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1rem 0.85rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(140, 21, 21, 0.08) 0%, rgba(140, 21, 21, 0.02) 100%),
    linear-gradient(180deg, #fffdfc 0%, #ffffff 100%);
}

.featured-pub-venue-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 56px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
}

.featured-pub-card h3 {
  font-size: 1.04rem;
}

.featured-pub-meta-row {
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.featured-pub-card .meta {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.featured-pub-card .pub-contribution {
  margin-top: 0.48rem;
  font-size: 0.93rem;
  font-style: normal;
  color: #4f4641;
}

@media (max-width: 720px) {
  .venue-badge {
    min-width: 118px;
    max-width: 152px;
    height: 48px;
    max-height: 48px;
    padding: 0.35rem 0.6rem;
  }

  .featured-pub-venue-banner {
    min-height: 76px;
    padding: 0.8rem 0.9rem 0.72rem;
  }

  .featured-pub-venue-image {
    height: 46px;
  }
}

.pub-read-more {
  margin: 0.7rem 0 0;
}

.pub-read-more a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.pub-read-more a:hover {
  text-decoration: underline;
}

/* Publication role badge */
.pub-role-badge {
  display: inline-block;
  border: 1px solid var(--brand-soft-strong);
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 0.35rem;
}

/* Publication status badges */
.pub-status-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 0.35rem;
}
.pub-status-published {
  border: 1px solid #cfd6cb;
  background: #f1f4ef;
  color: #475542;
}
.pub-status-accepted {
  border: 1px solid var(--brand-soft-strong);
  background: var(--brand-soft);
  color: var(--brand);
}
.pub-status-under-review {
  border: 1px solid #e0d4b8;
  background: #faf5e8;
  color: #8a6d2b;
}

/* Publication keyword tags */
.pub-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.pub-keyword {
  display: inline-block;
  background: var(--chip);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.12rem 0.48rem;
  font-size: 0.76rem;
  color: #4f4641;
}

/* ── Footer ── */
.site-footer {
  margin-top: 2rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--brand);
}

/* ── Hamburger toggle ── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 30;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile overrides (must come after base styles) ── */
@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 251, 249, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 0.75rem;
    flex-direction: column;
    gap: 0.25rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 16px rgba(46, 45, 41, 0.08);
  }

  .site-nav.open {
    display: flex;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .research-area-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Hero badge variants ── */
.hero-badge-item--venue {
  border-color: var(--brand-soft-strong);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.hero-badge-item--metric {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--muted);
}

/* ── News status indicator ── */
.news-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.45rem;
  vertical-align: middle;
  flex-shrink: 0;
}

.news-dot--accept {
  background: var(--brand);
}

.news-dot--collab {
  background: #5b7a3d;
}

/* ── Experience timeline ── */
.timeline {
  position: relative;
  padding-left: 2.2rem;
  margin-top: 0.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--line-strong) 100%);
  border-radius: 1px;
}

.timeline > .entry-card {
  position: relative;
}

.timeline > .entry-card::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 1.15rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px var(--brand-soft-strong);
  z-index: 1;
}

/* ── About page ── */
.about-story {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.5rem;
}

.about-chapter {
  display: flex;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}

.about-chapter:last-child {
  border-bottom: none;
}

.about-chapter-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  flex-shrink: 0;
  padding-top: 0.2rem;
}

.about-chapter-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

.about-chapter-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.25rem;
}

.about-chapter-body h2 {
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  margin: 0 0 0.6rem;
  color: var(--text);
}

.about-chapter-body p {
  margin: 0 0 0.7rem;
  line-height: 1.75;
  color: var(--text);
  font-size: 0.92rem;
}

.about-chapter-body p:last-child {
  margin-bottom: 0;
}

.about-chapter-body em {
  color: var(--brand);
  font-style: italic;
}

.about-chapter-body strong {
  color: var(--brand-strong);
}

@media (max-width: 600px) {
  .about-chapter {
    flex-direction: column;
    gap: 0.6rem;
  }
  .about-chapter-marker {
    flex-direction: row;
    gap: 0.5rem;
    align-items: baseline;
  }
  .about-chapter-number {
    font-size: 1.2rem;
  }
}

/* ── Research area cards (Home) ── */
.research-area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.research-area-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.research-area-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(46, 45, 41, 0.1);
}

.research-area-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.research-area-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.research-area-card > p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

.research-area-pubs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.research-area-pubs a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  padding: 0.2rem 0.55rem;
  background: var(--brand-soft);
  border-radius: 999px;
  transition: background 0.15s;
}

.research-area-pubs a:hover {
  background: var(--brand-soft-strong);
}

.ra-venue {
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--muted);
}

/* ── Project highlight cards (Home) ── */
.project-highlight-card {
  position: relative;
}

.project-highlight-header {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.2rem;
}

.project-highlight-count {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

.project-highlight-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.project-highlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.18rem 0.5rem;
  background: var(--chip);
  color: var(--text);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.project-tag:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.project-highlight-card h3 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
}

.project-highlight-card > p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ── Citation tooltips ── */
.cite {
  position: relative;
  text-decoration: none;
  color: var(--brand);
}

.cite sup {
  font-size: 0.7em;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  transition: color 0.15s;
}

.cite:hover sup {
  color: var(--brand-strong);
}

.cite::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  max-width: 340px;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.cite:hover::after {
  opacity: 1;
}

@media (max-width: 600px) {
  .cite::after {
    display: none;
  }
}

/* ── References list ── */
.references-title {
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.1rem, 2vw, 1.28rem);
}

.references-list {
  margin: 0.5rem 0 0;
  padding-left: 1.6rem;
  counter-reset: none;
}

.references-list li {
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.55;
}

.references-list li a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.references-list li a:hover {
  text-decoration: underline;
}

.ref-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── Awards list ── */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.5rem;
}

.award-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  gap: 1rem;
}

.award-item:last-child {
  border-bottom: none;
}

.award-name {
  font-size: 0.88rem;
  color: var(--text);
}

.award-meta {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Patent list ── */
.patent-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.patent-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  gap: 1.5rem;
}

.patent-item:last-child {
  border-bottom: none;
}

.patent-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.patent-meta {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .patent-item {
    flex-direction: column;
    gap: 0.15rem;
  }
}

/* ── Skills grid ── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

.skill-category-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.skill-chip {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.22rem 0.6rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-radius: 999px;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .award-item {
    flex-direction: column;
    gap: 0.15rem;
  }
}

/* ── Project CTA arrow ── */
.project-card-cta::after {
  content: " \2192";
}

/* ── Footer enhancement ── */
.site-footer {
  margin-top: 2.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-soft) 0%, var(--surface) 100%);
}

/* ── Final mobile overrides (must be last) ── */
@media (max-width: 920px) {
  .research-area-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .research-area-grid { grid-template-columns: 1fr; }
  .impact-metric { font-size: 1.1rem; }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo { order: -1; justify-self: center; }
  .hero-copy { align-items: center; }
  .hero-badge-line { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .impact-grid { grid-template-columns: 1fr 1fr; }
}
