:root {
  --ink: #12253a;
  --ink-strong: #0b1f35;
  --muted: #5a6b7d;
  --muted-light: #738397;
  --blue: #4278b5;
  --blue-deep: #235c93;
  --blue-dark: #174b7b;
  --blue-soft: #dcebf7;
  --sky: #eef6fc;
  --paper: #ffffff;
  --surface: #f7fafc;
  --line: #d8e3ed;
  --line-strong: #c7d6e4;
  --gold: #c9983e;
  --shadow-sm: 0 8px 24px rgba(21, 62, 99, 0.08);
  --shadow-lg: 0 22px 60px rgba(21, 62, 99, 0.13);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --shell: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(66, 120, 181, 0.17), transparent 29rem),
    radial-gradient(circle at 94% 18%, rgba(127, 187, 222, 0.14), transparent 25rem),
    linear-gradient(180deg, #f7fbfe 0%, #edf4fa 52%, #f6f9fc 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.68;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(66, 120, 181, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 120, 181, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-dark);
}

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(66, 120, 181, 0.44);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 0.6rem;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(199, 214, 228, 0.8);
  background: rgba(248, 251, 254, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(calc(100% - 2rem), var(--shell));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-strong);
  font-weight: 760;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 68% 30%, #9bc9e7 0 10%, transparent 11%),
    var(--blue-deep);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(35, 92, 147, 0.2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.62rem 0.9rem;
  color: #42556a;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.site-nav a:hover {
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--line);
  transform: translateY(-1px);
}

.site-nav a[aria-current="page"] {
  color: var(--blue-dark);
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.35fr);
  gap: clamp(1.5rem, 4vw, 3.1rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.15rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(243, 249, 253, 0.94)),
    var(--paper);
  border: 1px solid rgba(199, 214, 228, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero::after {
  position: absolute;
  right: -8rem;
  bottom: -11rem;
  width: 28rem;
  height: 28rem;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(66, 120, 181, 0.17);
  border-radius: 50%;
  box-shadow:
    0 0 0 3.2rem rgba(66, 120, 181, 0.035),
    0 0 0 6.4rem rgba(66, 120, 181, 0.025);
}

.hero-copy,
.hero-portrait {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero-affiliation {
  margin: 1rem 0 1.3rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-intro {
  max-width: 48rem;
  margin: 0 0 1.4rem;
  color: #394d61;
  font-size: 1.03rem;
}

.contact-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  min-height: 48px;
  padding: 0.72rem 0.9rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.contact-row dt {
  color: var(--ink-strong);
  font-weight: 750;
}

.contact-row dd {
  min-width: 0;
  margin: 0;
  color: #42566a;
  overflow-wrap: anywhere;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.pill-link,
.filter-chip,
.tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 40px;
  padding: 0.52rem 0.8rem;
  color: var(--blue-dark);
  background: var(--sky);
  border: 1px solid #cfe0ed;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.pill-link:hover,
.tab-link:hover {
  background: #fff;
  border-color: #9dbbd3;
}

.hero-portrait {
  align-self: center;
  margin: 0;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(216, 227, 237, 0.95);
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(29, 73, 112, 0.16);
}

.hero-portrait img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.photo-credit {
  margin: 0.55rem 0.35rem 0.05rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: right;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.7rem, 4vw, 3rem);
  background: linear-gradient(125deg, #fff 0%, #f4f9fd 68%, #e7f2fa 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.page-hero::after {
  position: absolute;
  top: -8rem;
  right: -5rem;
  width: 22rem;
  height: 22rem;
  content: "";
  border: 1px solid rgba(66, 120, 181, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 2.7rem rgba(66, 120, 181, 0.035);
}

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

.page-hero h1 {
  font-size: clamp(2.25rem, 4.4vw, 3.8rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 45rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.55rem 0.82rem;
  color: #38536b;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
}

.hero-stat strong {
  color: var(--blue-dark);
  font-size: 1rem;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

.content-stack {
  min-width: 0;
  display: grid;
  gap: 1.25rem;
}

.section-card,
.toc-card,
.member-card,
.photo-card,
.toolbar {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.section-card {
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: var(--radius-md);
}

.section-card > :first-child {
  margin-top: 0;
}

.section-card > :last-child {
  margin-bottom: 0;
}

.hero-intro,
.page-hero p:not(.eyebrow),
.section-card p:not(.feature-label),
.clean-list li,
.record-list li,
.publication-card .pub-venue,
.photo-caption p {
  text-align: justify;
  text-justify: inter-word;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--ink-strong);
  font-size: 1.28rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.section-heading::before {
  width: 0.28rem;
  height: 1.25em;
  flex: 0 0 auto;
  content: "";
  background: linear-gradient(var(--blue), #74afd1);
  border-radius: 999px;
}

.subheading {
  margin: 1.8rem 0 0.75rem;
  color: var(--ink-strong);
  font-size: 1.05rem;
}

.toc-card {
  position: sticky;
  top: 96px;
  padding: 1rem;
  border-radius: 18px;
}

.toc-title {
  margin: 0 0 0.75rem;
  color: var(--ink-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.toc-card nav {
  display: grid;
  gap: 0.32rem;
}

.toc-card a {
  display: block;
  padding: 0.58rem 0.7rem;
  color: #53667a;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.toc-card a:hover,
.toc-card a.is-active {
  color: var(--blue-dark);
  background: var(--sky);
  border-color: #d3e2ee;
}

.clean-list,
.record-list,
.publication-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list {
  display: grid;
  gap: 0.55rem;
}

.clean-list li {
  position: relative;
  padding-left: 1.25rem;
}

.clean-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0.1rem;
  width: 0.42rem;
  height: 0.42rem;
  content: "";
  background: var(--blue);
  border-radius: 50%;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.research-tags span {
  padding: 0.52rem 0.78rem;
  color: #285475;
  background: var(--sky);
  border: 1px solid #d3e4ef;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-card {
  padding: 1rem;
  background: linear-gradient(145deg, #f9fcfe, #eef6fb);
  border: 1px solid #d8e7f1;
  border-radius: 16px;
}

.feature-label {
  margin: 0 0 0.35rem;
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1rem;
  line-height: 1.45;
}

.feature-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 10.4rem minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1rem 0;
  border-top: 1px solid #e3ebf2;
}

.timeline li:first-child {
  padding-top: 0;
  border-top: 0;
}

.timeline-date {
  color: var(--blue-deep);
  font-size: 0.86rem;
  font-weight: 750;
}

.timeline-content strong {
  color: var(--ink-strong);
}

.timeline-content p {
  margin: 0.22rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 0.45rem;
  padding: 0.18rem 0.5rem;
  color: #1d5d40;
  background: #e9f6ee;
  border: 1px solid #c9e7d4;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
}

.service-note {
  padding: 1rem;
  color: #44596d;
  background: var(--surface);
  border: 1px solid #e0e8ef;
  border-radius: 14px;
}

.service-note strong {
  color: var(--ink-strong);
}

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

.member-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 1rem;
  border-radius: 17px;
}

.member-avatar {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(35, 92, 147, 0.17);
  font-size: 0.86rem;
  font-weight: 800;
}

.member-photo {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: cover;
  object-position: center 25%;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(35, 92, 147, 0.18);
}

.member-card h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1rem;
}

.member-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.name-ko {
  color: var(--muted-light);
  font-weight: 600;
}

.toolbar {
  position: sticky;
  top: 86px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 18px;
  backdrop-filter: blur(16px);
}

.result-count {
  min-width: 6.7rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.photo-filter-bar {
  grid-template-columns: auto minmax(10rem, 1fr) auto auto;
  align-items: center;
}

.photo-filter-title {
  color: var(--ink-strong);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.active-photo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  min-width: 0;
  min-height: 38px;
}

.photo-filter-placeholder {
  color: var(--muted);
  font-size: 0.875rem;
}

.photo-clear-all {
  min-height: 38px;
  padding: 0.45rem 0.72rem;
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 750;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.photo-clear-all:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.publication-group {
  display: grid;
  gap: 0;
}

.publication-year {
  margin: 0.75rem 0 0.3rem;
  color: var(--ink-strong);
  font-size: 1.13rem;
}

.publication-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.72rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #dfe8ef;
  border-radius: 0;
  box-shadow: none;
}

.publication-card:hover {
  border-bottom-color: #c9dae6;
  box-shadow: none;
  transform: none;
}

.publication-card.is-unnumbered {
  grid-template-columns: minmax(0, 1fr);
}

.pub-number {
  width: 1.7rem;
  height: auto;
  display: grid;
  place-items: start;
  padding-top: 0.18rem;
  color: var(--blue-deep);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 800;
}

.pub-title {
  display: inline;
  margin: 0;
  color: var(--ink-strong);
  font-size: 0.98rem;
  font-weight: 760;
  line-height: 1.52;
}

.pub-title::after {
  content: " ";
}

.pub-title a {
  color: inherit;
  text-decoration-color: #abc7da;
}

.pub-authors,
.pub-venue {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.pub-authors {
  display: inline;
  margin: 0;
  line-height: 1.52;
}

.pub-authors-prefix {
  color: var(--muted-light);
}

.coauthor-name {
  color: var(--blue-deep);
  font-weight: 650;
  text-decoration-color: #a8c6da;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.coauthor-name:hover {
  color: var(--blue-dark);
  text-decoration-color: currentColor;
}

.pub-venue {
  color: #3e556a;
}

.pub-arxiv {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.12rem 0.45rem;
  color: var(--blue-dark);
  background: var(--sky);
  border: 1px solid #d4e4ef;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.data-status {
  margin: 1rem 0 0;
  padding: 1rem 1.15rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}

.data-status[hidden] {
  display: none;
}

.data-status.is-error {
  color: #8c2f2f;
  background: #fff7f7;
  border-color: #e4baba;
}

.empty-state {
  display: none;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
}

.empty-state.is-visible {
  display: block;
}

.activity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.year-group {
  margin-top: 0.75rem;
  background: var(--surface);
  border: 1px solid #dee8f0;
  border-radius: 14px;
}

.year-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  color: var(--ink-strong);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.year-group summary::-webkit-details-marker {
  display: none;
}

.year-group summary::after {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  content: "+";
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 600;
}

.year-group[open] summary::after {
  content: "−";
}

.year-group .record-list {
  padding: 0 0.9rem 0.85rem;
}

.record-list li {
  position: relative;
  padding: 0.72rem 0 0.72rem 1rem;
  color: #43586c;
  border-top: 1px solid #e1e9f0;
}

.record-list li::before {
  position: absolute;
  top: 1.38rem;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  content: "";
  background: var(--blue);
  border-radius: 50%;
}

.record-list strong,
.record-list a {
  color: var(--ink-strong);
  font-weight: 720;
}

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

.photo-card {
  overflow: hidden;
  border-radius: 18px;
}

.photo-card[hidden] {
  display: none;
}

.photo-card a {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 300ms ease;
}

.photo-card > a:hover img,
.photo-carousel-slide:hover img {
  transform: scale(1.025);
}

.photo-card.is-portrait img {
  aspect-ratio: 4 / 3;
  object-position: center 35%;
}

.photo-carousel {
  position: relative;
  overflow: hidden;
  background: #edf3f8;
  border-bottom: 1px solid #e0e8ef;
}

.photo-carousel-slide[hidden] {
  display: none;
}

.photo-carousel-slide:focus-visible {
  outline-offset: -4px;
}

.photo-carousel-slide.is-portrait img {
  object-fit: cover;
  object-position: center 40%;
}

.photo-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(11, 31, 53, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(11, 31, 53, 0.2);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 180ms ease, transform 180ms ease;
}

.photo-carousel-prev {
  left: 0.7rem;
}

.photo-carousel-next {
  right: 0.7rem;
}

.photo-carousel-arrow span {
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-0.05em);
}

.photo-carousel-arrow:hover {
  background: var(--blue-deep);
  transform: translateY(-50%) scale(1.04);
}

.photo-carousel-status {
  position: absolute;
  right: 0.7rem;
  bottom: 0.65rem;
  z-index: 2;
  padding: 0.25rem 0.55rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(11, 31, 53, 0.74);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.photo-caption {
  padding: 1rem;
}

.photo-caption h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1rem;
  line-height: 1.42;
}

.photo-heading-row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  justify-content: space-between;
}

.photo-count {
  flex: none;
  padding: 0.22rem 0.55rem;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.photo-caption p {
  margin: 0.38rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.photo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e4ebf2;
}

.photo-tag {
  appearance: none;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.32rem 0.65rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 720;
  line-height: 1.2;
  background: #f5f7fa;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.photo-tag:hover {
  border-color: var(--blue);
  box-shadow: 0 5px 14px rgba(35, 92, 147, 0.12);
  transform: translateY(-1px);
}

.photo-tag-year {
  color: var(--blue-deep);
  background: var(--blue-soft);
  border-color: var(--line-strong);
}

.photo-tag-country {
  color: #2e6270;
  background: #edf8fa;
  border-color: #d3e9ed;
}

.photo-tag-person {
  color: #506276;
  background: #f7f9fb;
  border-color: #dfe6ed;
}

.photo-tag[aria-pressed="true"] {
  color: #fff;
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  box-shadow: 0 5px 14px rgba(35, 92, 147, 0.2);
}

.active-photo-tag {
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(35, 92, 147, 0.1);
}

.active-photo-tag-remove {
  display: grid;
  width: 1rem;
  height: 1rem;
  margin-right: -0.12rem;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.72;
}

.active-photo-tag:hover .active-photo-tag-remove {
  opacity: 1;
}

.year-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.updated {
  margin: 1.35rem 0 0;
  color: var(--muted-light);
  font-size: 0.82rem;
  text-align: right;
}

.site-footer {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  color: var(--muted-light);
  border-top: 1px solid rgba(199, 214, 228, 0.9);
  font-size: 0.82rem;
}

.footer-inner a {
  color: inherit;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-portrait {
    max-width: 35rem;
  }

  .page-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc-card {
    position: static;
    grid-row: 1;
  }

  .toc-card nav {
    display: flex;
    flex-wrap: wrap;
  }

  .toc-card a {
    background: var(--surface);
    border-color: #e0e8ef;
  }

}

@media (max-width: 780px) {
  .nav-shell {
    position: relative;
    min-height: 66px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    text-align: center;
  }

  .page-shell {
    padding-top: 1rem;
  }

  .feature-row,
  .member-grid,
  .photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.28rem;
  }

  .toolbar {
    position: static;
    grid-template-columns: minmax(0, 1fr);
  }

  .result-count {
    text-align: left;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 0.98rem;
  }

  .page-shell,
  .nav-shell,
  .site-footer {
    width: min(calc(100% - 1.25rem), var(--shell));
  }

  .hero,
  .page-hero {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.1rem);
  }

  .contact-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }

  .section-card {
    padding: 1.1rem;
    border-radius: 18px;
  }

  .photo-heading-row {
    flex-direction: column;
    gap: 0.55rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media print {
  body {
    background: #fff;
  }

  body::before,
  .site-header,
  .toc-card,
  .toolbar,
  .site-footer {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .hero,
  .page-hero,
  .section-card,
  .publication-card,
  .member-card {
    box-shadow: none;
    break-inside: avoid;
  }

  .page-grid {
    display: block;
  }
}
