/* =========================================================
   XX 课题组 官网样式
   风格：学术严谨 · 深蓝 + 白 + 灰 · 响应式
   修改主题色请编辑 :root 里的 CSS 变量
   ========================================================= */

:root {
  --navy:        #123a6b;   /* 主色：深蓝 */
  --navy-dark:   #0b2547;   /* 更深蓝（渐变/页脚） */
  --navy-light:  #2f6fb5;   /* 浅主色 */
  --accent:      #c9a227;   /* 点缀金 */
  --bg:          #ffffff;
  --bg-alt:      #f7f9fc;   /* 交替区块背景 */
  --text:        #1f2937;
  --text-soft:   #5b6672;
  --line:        #e3e8ef;
  --line-soft:   #eef1f6;
  --radius:      6px;
  --radius-sm:   4px;
  --shadow:      none;
  --shadow-lg:   none;
  --maxw:        1280px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; display: block; }
a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--navy); }
ul, ol { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ 顶部导航 ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 80px;                       /* 含 3px 下边线，总高 80px */
  background: #fff;
  border-bottom: 3px solid var(--navy);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .08); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; color: var(--navy); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 22px; font-weight: 900; letter-spacing: .5px; }
.brand-text i { font-size: 11px; color: var(--text-soft); font-style: normal; letter-spacing: 1.5px; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav-links a {
  position: relative; padding: 6px 0;
  color: var(--navy); font-size: 14.5px; font-weight: 700;
  transition: color .3s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--accent); transition: width .3s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.is-active { color: var(--accent); }
.nav-links a.is-active::after { width: 100%; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; padding: 11px 10px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 560px;
  /* 上内边距多出导航栏高度（80px），使文字在“导航栏以下”的可见区域里视觉居中 */
  padding: 184px 24px 104px; overflow: hidden;
  background: linear-gradient(170deg, #0c2544 0%, #16406f 100%);
  color: #fff;
}
.hero-bg { display: none; }
.hero::after { display: none; }
.hero-content { position: relative; z-index: 2; max-width: 860px; text-align: center; }
.hero h1 {
  margin: 0 0 14px; font-size: clamp(30px, 5vw, 50px); line-height: 1.2;
  letter-spacing: 2px; font-weight: 700;
}
.hero-slogan {
  margin: 0; font-size: clamp(12px, 1.7vw, 14px);
  letter-spacing: 3px; color: rgba(255,255,255,.62); text-transform: uppercase; font-weight: 500;
}

.hero-scroll { display: none; }

/* ============ 通用区块 ============ */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 38px; }
.eyebrow {
  margin: 0 0 6px; font-size: 12px; letter-spacing: 2.5px; font-weight: 700;
  color: var(--navy-light); text-transform: uppercase;
}
.eyebrow.light { color: rgba(255,255,255,.75); }
.section-head h2 {
  margin: 0; font-size: clamp(22px, 2.8vw, 30px); color: var(--navy-dark);
  letter-spacing: .5px; position: relative; display: inline-block; padding-bottom: 12px;
}
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 38px; height: 2px; background: var(--navy);
}
.section-sub { max-width: 780px; margin: 12px 0 0; color: var(--text-soft); font-size: 15px; }

/* ============ 照片占位 ============ */
.photo-ph {
  display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4;
  background: #e8eef6;
  color: #8d99a8; font-size: 13px; border-radius: var(--radius-sm);
  position: relative; overflow: hidden;
}
.photo-ph::before {
  content: attr(data-initial);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 40px; font-weight: 800; color: rgba(18,58,107,.28);
}
.photo-ph.round { aspect-ratio: 1 / 1; border-radius: 50%; width: 112px; margin: 0 auto 16px; }
.photo-ph.round::before { font-size: 34px; }
.photo-ph.wide { aspect-ratio: 4 / 3; }
.photo-ph img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* ============ 团队负责人 ============ */
.pi-grid { display: grid; gap: 24px; grid-auto-rows: 1fr; margin-bottom: 44px; }
.pi-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.pi-photo { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.pi-photo-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .35s ease;
}
.pi-photo.has-photo .pi-photo-img { opacity: 1; }
.pi-photo.has-photo .photo-ph { visibility: hidden; }
.pi-name { margin: 0 0 6px; font-size: 27px; color: var(--navy-dark); letter-spacing: 1px; }
.pi-title { margin: 0 0 6px; color: var(--navy-light); font-size: 14.5px; font-weight: 600; }
.pi-affil { margin: 0 0 16px; color: var(--text-soft); font-size: 14.5px; }
.pi-list { list-style: none; margin: 0 0 20px; }
.pi-list li { position: relative; padding-left: 20px; margin-bottom: 7px; color: var(--text); font-size: 15px; }
.pi-list li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}
.pi-contact { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--text-soft); }

/* 邮箱：点击即复制，无提示文字 */
.email { cursor: pointer; display: inline-flex; align-items: center; transition: color .2s; }
.email:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.email.big { color: #fff; font-size: 15px; }
.email.big:hover { color: #fff; }

/* 复制后的临时浮层提示 */
.copy-toast {
  position: fixed; z-index: 300; transform: translate(-50%, -6px);
  padding: 5px 12px; border-radius: 4px; background: rgba(12, 37, 68, .92); color: #fff;
  font-size: 12.5px; font-weight: 600; pointer-events: none;
  opacity: 0; transition: opacity .18s ease, transform .18s ease;
}
.copy-toast.is-on { opacity: 1; transform: translate(-50%, -12px); }

/* ============ 研究方向（同参考站：两列卡片 + 左侧彩条） ============ */
.res-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.res-card {
  background: #fff; padding: 30px;
  border-left: 6px solid #ddd;                 /* 默认色，下面按方向覆盖 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, .04);
  transition: transform .3s;
}
.res-card:hover { transform: translateY(-5px); }
.res-title {
  display: flex; align-items: center; gap: 12px;
  margin: 0; font-size: 20px; font-weight: 700;  /* 颜色由卡片的 color 继承 */
}
.res-card p {
  margin: 15px 0 0; font-size: 15px; line-height: 1.7;
  color: #4a5568; text-align: justify;
}
/* 每个方向一种配色（标题色 + 左侧色条） */
.res-1 { color: #123a6b; border-left-color: #123a6b; }  /* 深海蓝 */
.res-2 { color: #00838f; border-left-color: #00838f; }  /* 蓝绿 */
.res-3 { color: #512da8; border-left-color: #512da8; }  /* 科技紫 */
.res-4 { color: #2e7d32; border-left-color: #2e7d32; }  /* 森林绿 */
.res-5 { color: #c62828; border-left-color: #c62828; }  /* 朱砂红 */
.res-6 { color: #e65100; border-left-color: #e65100; }  /* 创新橙 */

/* ============ 科研项目（平铺列表） ============ */
.project-list { list-style: none; display: grid; }
.project-item {
  display: grid; grid-template-columns: 1fr 240px 70px; gap: 16px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft);
}
.project-item:first-child { border-top: 1px solid var(--line); }
.project-name { font-weight: 500; color: var(--text); font-size: 15px; }
.project-source { color: var(--text-soft); font-size: 13.5px; }
.project-status { font-size: 12.5px; color: #98a2b3; text-align: right; white-space: nowrap; }
.project-status.status-active { color: #2f7a4d; }

/* 折叠 */
.project-list.is-collapsed .project-item:nth-child(n+6) { display: none; }

/* 展开按钮 */
.expand-btn {
  display: table; margin: 22px auto 0; padding: 6px 0;
  background: none; border: none; color: var(--navy);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: color .2s;
}
.expand-btn:hover { color: var(--navy-light); }
.expand-btn i { font-style: normal; margin-left: 6px; display: inline-block; transition: transform .3s; }
.expand-btn.is-open i { transform: rotate(180deg); }

/* ============ 奖项（平铺两栏） ============ */
.award-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px; }
.award-col h3 {
  margin: 0 0 16px; font-size: 16.5px; color: var(--navy-dark);
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.award-list { list-style: none; display: grid; gap: 12px; }
.award-list li { position: relative; padding-left: 16px; color: var(--text); font-size: 14.8px; }
.award-list li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--navy-light);
}

/* ============ 成果 Tabs ============ */
.tabs { display: flex; gap: 26px; margin-bottom: 22px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tab {
  padding: 8px 0; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: none; color: var(--text-soft); font-size: 14.5px; font-weight: 600;
  cursor: pointer; transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--navy); }
.tab.is-active { color: var(--navy); border-bottom-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.paper-list { list-style: none; display: grid; counter-reset: paper; }
.paper-item { padding: 16px 0; border-bottom: 1px solid var(--line-soft); position: relative; }
.paper-item:first-child { border-top: 1px solid var(--line); }
.paper-list[data-numbered] .paper-item { padding-left: 44px; counter-increment: paper; }
.paper-list[data-numbered] .paper-item::before {
  content: "[" counter(paper) "]"; position: absolute; left: 0; top: 17px;
  font-weight: 600; color: var(--navy-light); font-size: 14px;
}
.paper-venue { display: inline-block; font-size: 12px; font-weight: 700; margin-bottom: 4px; color: var(--navy-light); }
.paper-venue.jcr1 { color: #8a6d10; }
.paper-venue.ccf-a { color: #b03636; }
.paper-venue.jcr2 { color: var(--navy); }
.paper-title { margin: 0 0 6px; font-weight: 600; color: var(--text); font-size: 15.5px; }
.paper-meta { margin: 0; color: var(--text-soft); font-size: 13.5px; }
.paper-list.is-collapsed .paper-item:nth-child(n+6) { display: none; }

/* ============ 毕业去向 ============ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 28px; }
.stat { padding-top: 14px; border-top: 2px solid var(--navy); }
.stat b { display: block; font-size: 30px; color: var(--navy); line-height: 1.2; font-weight: 700; }
.stat span { color: var(--text-soft); font-size: 14px; }

.map-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); margin-bottom: 26px;
}
.career-map { width: 100%; min-height: 420px; display: grid; place-items: center; color: var(--text-soft); font-size: 14px; }
.map-tip { margin: 0; text-align: center; font-size: 12.5px; color: var(--text-soft); }
.map-tip code { background: var(--bg-alt); padding: 2px 6px; border-radius: 5px; font-size: 12px; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.career-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.career-table th, .career-table td { padding: 14px 20px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.career-table thead th { background: var(--bg-alt); color: var(--navy-dark); font-weight: 700; font-size: 14px; }
.career-table tbody tr:hover { background: rgba(47,111,181,.05); }
.career-table tbody tr:last-child td { border-bottom: none; }

/* 地图 + 毕业生表：左右排布、等高 */
.career-cols {
  --career-h: 520px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch;
}
.career-cols .map-wrap {
  margin-bottom: 0; height: var(--career-h);
  display: flex; flex-direction: column;
}
.career-cols .career-map { flex: 1; min-height: 0; }

/* 表格可上下滑动，但不显示滚动条 */
.career-cols .table-wrap {
  height: var(--career-h);
  overflow-x: hidden; overflow-y: auto;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* 旧版 Edge / IE */
}
.career-cols .table-wrap::-webkit-scrollbar { width: 0; height: 0; display: none; } /* Chrome / Safari */
.career-cols .career-table { min-width: 0; table-layout: fixed; }
.career-cols .career-table thead th { position: sticky; top: 0; z-index: 1; }
.career-cols .career-table th,
.career-cols .career-table td { padding: 13px 14px; word-break: break-word; }

/* ============ 合作单位（用各自 logo） ============ */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 30px 26px; }
.logo-item { margin: 0; text-align: center; }
.logo-item img {
  height: 54px; width: auto; max-width: 100%; object-fit: contain;
  margin: 0 auto 10px;
}
.logo-item figcaption { font-size: 13px; color: var(--text-soft); line-height: 1.5; }

/* ============ 团队风采（分类切换 + 相册网格） ============ */
.activity-switch-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 0 0 18px; font-size: 19px; font-weight: 700; line-height: 1.6;
}
.activity-jump {
  color: var(--navy-light); text-decoration: none; cursor: pointer;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
  scroll-margin-top: 110px;
}
.activity-jump:hover { color: var(--navy-dark); border-bottom-color: var(--navy-dark); }
.activity-jump.is-selected { color: var(--navy); border-bottom-color: var(--navy); }
.activity-separator { color: #c2cad6; font-weight: 400; }
.activity-panel[hidden] { display: none !important; }
.activity-desc { margin: 0 0 26px; font-size: 15px; color: var(--text-soft); line-height: 1.8; }

/* 12 列网格 + 尺寸单元 */
.act-grid-main { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 240px; gap: 20px; }
.f-big { grid-column: span 6; grid-row: span 2; }
.f-wide { grid-column: span 6; grid-row: span 1; }
.f-small { grid-column: span 4; grid-row: span 1; }

.act-final-item {
  position: relative; background: #eef2f7; overflow: hidden; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; cursor: zoom-in;
  transition: transform .35s cubic-bezier(.165,.84,.44,1), box-shadow .35s ease;
}
.act-final-item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(18,58,107,.14); z-index: 5; }
.act-final-item .photo-ph {
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0;
}
.act-final-img {
  position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .3s ease, transform .6s ease;
}
.act-final-item.has-photo .act-final-img { opacity: 1; }
.act-final-item.has-photo .photo-ph { visibility: hidden; }
.act-final-item:hover .act-final-img { transform: scale(1.05); }

.act-final-caption {
  position: absolute; left: 0; bottom: 0; width: 100%; z-index: 2;
  background: rgba(18, 58, 107, .72); padding: 14px 16px; color: #fff;
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.act-final-item:hover .act-final-caption { opacity: 1; transform: none; }
.act-final-text { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.5; text-align: center; }

/* 折叠区与切换按钮 */
.act-expand-box {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .7s cubic-bezier(.4,0,.2,1), opacity .5s ease, margin-top .3s ease;
}
.act-expand-box.is-active { opacity: 1; margin-top: 20px; }
.act-btn-container { display: flex; justify-content: flex-end; margin-top: 28px; }
.act-toggle-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--navy); font-size: 15px; font-weight: 700; font-family: inherit;
}
.act-toggle-btn:hover { color: var(--navy-light); text-decoration: underline; text-underline-offset: 5px; }
.act-toggle-btn i { font-style: normal; transition: transform .35s; }
.act-toggle-btn.is-open i { transform: rotate(180deg); }

.team-intro {
  margin: 44px 0 0; max-width: 880px;
  color: var(--text-soft); font-size: 15.5px; line-height: 2; text-indent: 2em;
}

/* ============ 研究生招生（平铺文字，同参考站） ============ */
.admission-body { max-width: 860px; }
.admission-body p { margin: 0 0 10px; color: var(--text); font-size: 15.5px; text-indent: 2em; }
.admission-body p.admission-note { color: var(--text-soft); font-size: 14.5px; text-indent: 0; }
.admission-body p.admission-contact { color: var(--text-soft); margin-top: 18px; text-indent: 0; }

/* ============ 页脚 ============ */
.site-footer { background: #0a1c33; color: rgba(255,255,255,.72); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding: 58px 24px 34px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand b { color: #fff; font-size: 17px; display: block; margin-bottom: 4px; }
.footer-brand p { margin: 0; font-size: 13.5px; }
.footer-nav h4, .footer-contact h4 { color: #fff; margin: 0 0 16px; font-size: 15px; letter-spacing: .5px; }
.footer-nav ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 20px; }
.footer-nav a, .footer-contact a { color: rgba(255,255,255,.72); font-size: 14px; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact p { margin: 0 0 10px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 24px; text-align: center; font-size: 13px; }
.footer-bottom p { margin: 0; }

/* ============ 返回顶部 ============ */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 40px; height: 40px; border-radius: 4px; border: none; cursor: pointer;
  background: var(--navy); color: #fff; font-size: 17px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy-light); }

/* ============ 灯箱 ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  place-items: center; background: rgba(8, 18, 34, .92); padding: 40px;
}
.lightbox.is-open { display: grid; }
.lb-content { max-width: 90vw; max-height: 86vh; }
.lb-content img, .lb-content .photo-ph { max-height: 86vh; width: auto; border-radius: 4px; }
.lb-content img { position: static; opacity: 1; object-fit: contain; }
.lb-close {
  position: absolute; top: 22px; right: 26px; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent;
  color: #fff; font-size: 26px; cursor: pointer; line-height: 1;
}
.lb-close:hover { background: rgba(255,255,255,.14); }

/* ============ 滚动出现动画 ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .brand-text b { font-size: 19px; }
  .brand-text i { font-size: 10px; letter-spacing: 1px; }
  .nav-links { gap: 11px; }
  .nav-links a { font-size: 13.5px; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 80px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(18,58,107,.10);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-links.is-open { max-height: 560px; }
  .nav-links a { padding: 13px 24px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
  .nav-links a::after { display: none; }
  .nav-links a.is-active { background: var(--bg-alt); }
  .res-grid-two { grid-template-columns: 1fr; gap: 20px; }

  .pi-card { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .pi-photo { max-width: 200px; }
  .pi-grid { grid-auto-rows: auto; }
  .award-cols { grid-template-columns: 1fr; gap: 34px; }
  .career-cols { grid-template-columns: 1fr; gap: 18px; --career-h: 420px; }
  .act-grid-main { display: flex; flex-direction: column; gap: 16px; }
  .act-final-item { height: 280px !important; }
  .act-final-caption { opacity: 1; transform: none; }
  .act-btn-container { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .res-grid-two, .logo-grid, .stats { grid-template-columns: 1fr; }
  .project-item { grid-template-columns: 1fr; gap: 4px; }
  .project-status { text-align: left; }
  .hero { min-height: 420px; padding: 168px 20px 88px; }
  .footer-nav ul { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { display: none; }
}
