:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #f1f5fb;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #0047ab;
  --accent-hover: #003787;
  --accent-soft: rgba(0, 71, 171, 0.085);
  --accent-soft-2: rgba(0, 71, 171, 0.14);
  --gold-bg: #fef7e0;
  --gold-text: #9a5b00;
  --gold-border: #f7d98b;
  --green-bg: #ecfdf5;
  --green-text: #047857;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.22);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #11192c;
  --surface-soft: #18233b;
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --border: #22304c;
  --border-strong: #33476b;
  --accent: #4d8eff;
  --accent-hover: #71a6ff;
  --accent-soft: rgba(77, 142, 255, 0.14);
  --accent-soft-2: rgba(77, 142, 255, 0.22);
  --gold-bg: rgba(245, 158, 11, 0.15);
  --gold-text: #fbbf24;
  --gold-border: rgba(245, 158, 11, 0.35);
  --green-bg: rgba(16, 185, 129, 0.15);
  --green-text: #34d399;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.58);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: border-color 0.18s, background 0.18s;
}

.icon-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Hero */
.hero {
  padding: 28px 0 12px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 28px;
  align-items: center;
}

.hero-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.hero-avatar {
  width: 82px;
  height: 106px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.pill-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.pill-gold {
  background: var(--gold-bg);
  color: var(--gold-text);
  border: 1px solid var(--gold-border);
}

.pill-green {
  background: var(--green-bg);
  color: var(--green-text);
}

.hero-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.hero-subtitle {
  margin: 5px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.hero-bio {
  margin: 0 0 18px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.16s ease;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-sub {
  font-size: 11px;
  opacity: 0.84;
  padding-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 8px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-tile {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
}

.stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

/* Sections */
.section {
  padding: 28px 0 14px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 21px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 11px;
  border-left: 4px solid var(--accent);
  line-height: 1.25;
}

.section-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.link-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

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

.count-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* Featured Grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Filter Bar */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tab-btn {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.media-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.media-pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.media-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.media-pill.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.search-box {
  position: relative;
  min-width: 260px;
  flex: 0 1 320px;
}

.search-box svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 7px 12px 7px 34px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.search-box input:focus {
  border-color: var(--accent);
}

/* Project Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.p-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: var(--shadow-sm);
}

.p-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.p-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.p-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.p-card:hover .p-thumb img {
  transform: scale(1.03);
}

.p-media-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.p-media-badge.is-video {
  background: rgba(0, 71, 171, 0.9);
}

.p-award-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.94);
  color: #1f1300;
}

.p-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.45), transparent 55%);
  transition: background 0.2s;
}

.p-play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0047ab;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease;
}

.p-play-btn svg {
  width: 19px;
  height: 19px;
  margin-left: 2px;
}

.p-card:hover .p-play-btn {
  transform: scale(1.1);
}

/* Text-only Blueprint Cover (Intentional Editorial Design) */
.p-blueprint {
  width: 100%;
  height: 100%;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 88% 18%, rgba(0, 71, 171, 0.22), transparent 52%),
    linear-gradient(135deg, #0f172a 0%, #162442 60%, #1c315a 100%);
  color: #e2e8f0;
  position: relative;
}

.p-blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.bp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.bp-code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.28);
  padding: 2px 8px;
  border-radius: 6px;
}

.bp-kind {
  font-size: 11px;
  color: #cbd5e1;
}

.bp-mid {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bp-metrics {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bp-metric {
  font-size: 11px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 5px;
}

.p-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.p-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
}

.p-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.code-tag {
  font-weight: 700;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}

.role-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-soft);
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-period {
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.p-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text);
}

.p-summary {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.p-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
}

/* Skills & Awards */
.awards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.award-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid #d97706;
  border-radius: 12px;
  padding: 15px 18px;
  box-shadow: var(--shadow-sm);
}

.award-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.award-title {
  font-size: 15px;
  font-weight: 700;
}

.award-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.skill-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
  color: var(--accent);
}

.skill-desc {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
}

.skill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-item {
  font-size: 12.5px;
  color: var(--text-2);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.skill-level {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 46px 20px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  color: var(--muted);
}

/* Footer */
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 28, 0.72);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: 92vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
}

.modal-header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-soft);
  padding: 2px 9px;
  border-radius: 6px;
}

.meta-muted {
  font-size: 12px;
  color: var(--muted);
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-title-wrap {
  margin-bottom: 16px;
}

.modal-title-wrap h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.modal-subtitle {
  margin: 5px 0 10px;
  font-size: 14px;
  color: var(--muted);
}

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Media Stage */
.media-stage {
  margin-bottom: 20px;
}

.video-shell {
  background: #070b14;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-shell video {
  width: 100%;
  max-height: 500px;
  display: block;
  background: #000000;
}

.video-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12.5px;
  flex-wrap: wrap;
}

.clip-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.clip-tab {
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.clip-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.gallery-section {
  margin-top: 12px;
}

.gallery-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.gallery-hero {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
}

.gallery-hero-img-wrap {
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.gallery-hero-img-wrap img {
  max-height: 440px;
  width: auto;
  object-fit: contain;
}

.gallery-hero-cap {
  padding: 9px 14px;
  font-size: 12.5px;
  color: var(--text-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.thumb-item {
  border: 2px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-soft);
  padding: 0;
  text-align: left;
  transition: border-color 0.15s;
}

.thumb-item:hover, .thumb-item.active {
  border-color: var(--accent);
}

.thumb-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.thumb-cap {
  padding: 5px 7px;
  font-size: 11px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-stage-banner {
  border-radius: 13px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-soft));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.text-stage-banner strong {
  color: var(--accent);
  font-size: 14px;
}

.text-stage-banner p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-2);
}

/* Modal Info Grid */
.modal-info-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
}

.info-main, .info-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.info-card h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--accent);
}

.prose {
  margin: 0;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.7;
}

.prose-sub {
  margin-top: 8px;
  color: var(--text-2);
}

.clean-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
}

.clean-list-accent li::marker {
  color: var(--accent);
}

.scale-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scale-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  padding-bottom: 5px;
  border-bottom: 1px dashed var(--border);
}

.scale-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.scale-k {
  color: var(--muted);
}

.scale-v {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-footer {
  padding: 12px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.9);
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lightbox-figure img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.lightbox-figure figcaption {
  color: #e2e8f0;
  font-size: 13px;
  text-align: center;
}

.lightbox-close, .lightbox-nav {
  position: fixed;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  font-size: 17px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 26px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: #0f172a;
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .featured-grid, .projects-grid, .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero-card {
    padding: 20px 18px;
  }
  .hero-profile {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-grid, .projects-grid, .skills-grid, .awards-row {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 8px;
  }
  .modal-body {
    padding: 14px 15px 18px;
  }
  .search-box {
    min-width: 100%;
    flex: 1 1 100%;
  }
}
