/* ============================================================
   BSP Lab — public site
   Theme: MODULABS orange (#FF6B35) on deep navy + warm light
   ============================================================ */

:root {
  --primary: #ff6b35;
  --primary-strong: #e8531f;
  --primary-soft: #ff8c5f;
  --ink: #0e1626;
  --ink-2: #1c2a42;
  --muted: #52627b;
  --line: #e4e9f2;
  --bg: #f7f9fc;
  --bg-alt: #eef2f8;
  --card: #ffffff;
  --hero-bg-1: #0a101f;
  --hero-bg-2: #101b33;
  --grad-primary: linear-gradient(135deg, #ff8c5f 0%, #ff6b35 45%, #f04e23 100%);
  --shadow-sm: 0 1px 2px rgba(14, 22, 38, 0.06), 0 2px 8px rgba(14, 22, 38, 0.06);
  --shadow-md: 0 2px 4px rgba(14, 22, 38, 0.05), 0 10px 24px rgba(14, 22, 38, 0.09);
  --shadow-lg: 0 4px 8px rgba(14, 22, 38, 0.06), 0 24px 48px rgba(14, 22, 38, 0.14);
  --shadow-glow: 0 8px 32px rgba(255, 107, 53, 0.35);
  --radius: 16px;
  --radius-lg: 22px;
  --font-head: "Sora", "Inter", sans-serif;
  --font-body: "Inter", "Roboto", sans-serif;
  --nav-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--ink); }
a { color: var(--primary-strong); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.6rem; border-radius: 999px; border: 0;
  font: 600 0.95rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255, 107, 53, 0.5); }
.btn-ghost {
  color: #fff; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--primary-strong); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: #fff3ec; transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- navbar ---------- */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(10, 16, 31, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad-primary); color: #fff; font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.45);
}
.brand-name { font: 700 1.12rem var(--font-head); color: #fff; white-space: nowrap; transition: color 0.3s; }
.brand-x { color: rgba(255, 255, 255, 0.5); transition: color 0.3s; }
.brand-suffix { font: 700 1rem var(--font-head); color: var(--primary); white-space: nowrap; }
.navbar.scrolled .brand-name { color: var(--ink); }
.navbar.scrolled .brand-x { color: var(--muted); }

.nav-menu { display: flex; align-items: center; gap: 0.35rem; list-style: none; }
.nav-link {
  display: block; padding: 0.5rem 0.85rem; border-radius: 999px;
  font: 500 0.92rem var(--font-body); text-decoration: none;
  color: rgba(255, 255, 255, 0.82); transition: color 0.25s, background 0.25s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav-link.active { color: #fff; background: rgba(255, 107, 53, 0.28); }
.navbar.scrolled .nav-link { color: var(--ink-2); }
.navbar.scrolled .nav-link:hover { color: var(--primary-strong); background: #fff3ec; }
.navbar.scrolled .nav-link.active { color: var(--primary-strong); background: #ffe9dd; }
.nav-cta { background: var(--grad-primary) !important; color: #fff !important; margin-left: 0.35rem; box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; border-radius: 2px; background: #fff; transition: all 0.3s ease; }
.navbar.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 4rem) 0 6rem;
  background: radial-gradient(1200px 600px at 75% -10%, #22355e 0%, transparent 60%),
              linear-gradient(160deg, var(--hero-bg-2) 0%, var(--hero-bg-1) 70%);
  overflow: hidden; color: #fff;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: orbFloat 14s ease-in-out infinite; }
.hero-orb-1 { width: 420px; height: 420px; left: -120px; top: 8%; background: radial-gradient(circle, rgba(255, 107, 53, 0.55), transparent 70%); }
.hero-orb-2 { width: 380px; height: 380px; right: -100px; top: 30%; background: radial-gradient(circle, rgba(64, 110, 255, 0.4), transparent 70%); animation-delay: -5s; }
.hero-orb-3 { width: 300px; height: 300px; left: 38%; bottom: -140px; background: radial-gradient(circle, rgba(255, 140, 95, 0.4), transparent 70%); animation-delay: -9s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.08); }
}

.hero-ecg { position: absolute; left: 0; right: 0; top: 56%; width: 100%; height: 170px; opacity: 0.9; }
.ecg-path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ecg-line { stroke: var(--primary); stroke-width: 2.4; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: ecgDraw 7s linear infinite; }
.ecg-glow { stroke: rgba(255, 107, 53, 0.4); stroke-width: 7; filter: blur(5px); stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: ecgDraw 7s linear infinite; }
@keyframes ecgDraw {
  0% { stroke-dashoffset: 2400; opacity: 0; }
  6% { opacity: 1; }
  72% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 1.1rem; border-radius: 999px; margin-bottom: 1.6rem;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px); font: 500 0.88rem var(--font-body); color: #ffd9c7;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.hero-title { font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.hero-title-gradient {
  background: linear-gradient(100deg, #fff 10%, #ffd9c7 45%, var(--primary-soft) 75%, var(--primary) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title-plain { color: rgba(255, 255, 255, 0.95); }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255, 255, 255, 0.75); max-width: 640px; margin: 0 auto 2.2rem; }
.hero-buttons { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.2rem; }

.hero-stats {
  display: inline-flex; align-items: center; gap: 2.2rem; flex-wrap: wrap; justify-content: center;
  padding: 1.2rem 2.4rem; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.hero-stat { text-align: center; min-width: 110px; }
.hero-stat-value { font: 800 2.1rem var(--font-head); color: #fff; }
.hero-stat-suffix { color: var(--primary); font-weight: 800; }
.hero-stat-label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); margin-top: 0.15rem; }
.hero-stat-divider { width: 1px; height: 44px; background: rgba(255, 255, 255, 0.15); }
.hero-fade { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: 1; }

/* ---------- sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3.2rem; }
.section-label {
  display: inline-block; padding: 0.4rem 1rem; border-radius: 999px; margin-bottom: 1rem;
  background: #ffe9dd; color: var(--primary-strong);
  font: 600 0.8rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.8rem; }
.section-description { color: var(--muted); font-size: 1.02rem; }

/* ---------- 3D cards ---------- */
.card-3d {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}
.tilt { transform-style: preserve-3d; }
.tilt:hover { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 107, 53, 0.25), 0 14px 44px rgba(255, 107, 53, 0.12); border-color: rgba(255, 107, 53, 0.4); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease var(--d, 0ms), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms); }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.4rem; align-items: center; }
.about-text { padding: 2.4rem; }
.about-text h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.about-text p { color: var(--ink-2); margin-bottom: 1rem; }
.about-highlight {
  margin: 1.4rem 0 1rem; padding: 1.1rem 1.3rem; border-radius: 12px;
  background: linear-gradient(135deg, #fff3ec, #ffe9dd); border: 1px solid #ffd9c7;
  color: #8a3c17; font-weight: 500;
}
.signal-card { padding: 1.4rem; background: linear-gradient(165deg, #101b33, #0a101f); border: 1px solid rgba(255, 255, 255, 0.1); }
.signal-card-head { display: flex; align-items: center; gap: 6px; margin-bottom: 1rem; }
.signal-led { width: 10px; height: 10px; border-radius: 50%; background: #2c3c5e; }
.signal-led:nth-child(1) { background: #ff5f57; } .signal-led:nth-child(2) { background: #febc2e; } .signal-led:nth-child(3) { background: #28c840; }
.signal-title { margin-left: auto; font: 500 0.75rem ui-monospace, monospace; color: rgba(255, 255, 255, 0.45); }
.signal-wave { width: 100%; height: 130px; }
.wave-a { fill: none; stroke: #4f8cff; stroke-width: 2; opacity: 0.85; stroke-dasharray: 1200; animation: waveDash 9s linear infinite; }
.wave-b { fill: none; stroke: var(--primary); stroke-width: 2.2; stroke-dasharray: 1400; animation: waveDash 7s linear infinite reverse; }
@keyframes waveDash { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -2600; } }
.signal-meta { display: flex; gap: 1.4rem; margin-top: 1rem; flex-wrap: wrap; }
.signal-meta > div { display: flex; gap: 0.5rem; align-items: baseline; }
.meta-key { font: 600 0.72rem ui-monospace, monospace; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.08em; }
.meta-val { font: 600 0.8rem ui-monospace, monospace; color: #7ee2a0; }
.meta-val.accent { color: var(--primary-soft); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

/* ---------- research ---------- */
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.research-card { padding: 2rem 1.8rem; position: relative; overflow: hidden; }
.research-card::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.14), transparent 70%);
  transition: transform 0.4s ease; transform: scale(0.6); opacity: 0;
}
.research-card:hover::after { transform: scale(1.15); opacity: 1; }
.research-icon {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 1.2rem;
  background: var(--grad-primary); color: #fff; font-size: 1.35rem;
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.35);
}
.research-card h3 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.research-card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- members ---------- */
.members-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.members-grid-featured { grid-template-columns: repeat(3, 1fr); }
.member-card { padding: 1.7rem; display: flex; flex-direction: column; }
.member-featured { border-top: 3px solid var(--primary); }
.member-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.member-photo {
  width: 62px; height: 62px; flex: 0 0 62px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font-size: 1.5rem; color: #b8c4d6;
  background: linear-gradient(150deg, #eef2f8, #dde5f0); border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(14, 22, 38, 0.12);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-id h4 { font-size: 1.05rem; }
.member-role { color: var(--primary-strong); font-weight: 600; font-size: 0.85rem; }
.member-affiliation { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.8rem; }
.member-research { font-size: 0.88rem; color: var(--ink-2); }
.member-research-label {
  display: block; font: 600 0.72rem var(--font-body); letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--primary-strong); margin-bottom: 0.25rem;
}
.member-links { display: flex; gap: 0.6rem; margin-top: auto; padding-top: 1rem; }
.member-links a {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: var(--bg-alt); color: var(--ink-2); text-decoration: none; transition: all 0.25s ease;
}
.member-links a:hover { background: var(--grad-primary); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255, 107, 53, 0.35); }

.join-panel {
  position: relative; overflow: hidden; text-align: center;
  margin-top: 2.4rem; padding: 3rem 2rem;
  background: linear-gradient(160deg, #101b33, #0a101f); border: 1px solid rgba(255, 255, 255, 0.1);
}
.join-glow { position: absolute; width: 500px; height: 500px; left: 50%; top: -320px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 107, 53, 0.35), transparent 65%); filter: blur(30px); }
.join-panel h3 { position: relative; color: #fff; font-size: 1.5rem; margin-bottom: 0.9rem; }
.join-panel h3 i { color: var(--primary); margin-right: 0.4rem; }
.join-panel p { position: relative; color: rgba(255, 255, 255, 0.75); max-width: 640px; margin: 0 auto 1.8rem; }
.join-buttons { position: relative; display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.join-buttons .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.join-buttons .btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- publications ---------- */
.coming-soon { text-align: center; padding: 4rem 2rem; }
.coming-soon-icon { font-size: 3.4rem; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 1.4rem; }
.coming-soon h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.coming-soon p { color: var(--muted); max-width: 680px; margin: 0 auto; }
.coming-soon-note { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }

.pub-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.pub-tabs { display: inline-flex; gap: 0.4rem; padding: 0.35rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.pub-tab {
  border: 0; background: transparent; padding: 0.5rem 1.1rem; border-radius: 999px;
  font: 600 0.88rem var(--font-body); color: var(--muted); cursor: pointer; transition: all 0.25s ease;
}
.pub-tab.active { background: var(--grad-primary); color: #fff; box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35); }
.pub-year-filter select {
  padding: 0.55rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font: 600 0.88rem var(--font-body); color: var(--ink-2); cursor: pointer; box-shadow: var(--shadow-sm);
}
.pub-list { display: flex; flex-direction: column; gap: 1rem; }
.pub-item { display: grid; grid-template-columns: 86px 1fr; gap: 1rem; align-items: start; }
.pub-item.hidden-by-filter, .pub-item.hidden-by-more { display: none; }
.pub-year { position: sticky; top: calc(var(--nav-h) + 16px); }
.pub-year span {
  display: inline-block; padding: 0.45rem 0.8rem; border-radius: 12px;
  background: var(--grad-primary); color: #fff; font: 700 0.92rem var(--font-head);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}
.pub-body { padding: 1.3rem 1.5rem; }
.pub-tag { display: inline-block; font: 600 0.68rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; padding: 0.22rem 0.6rem; border-radius: 999px; margin-bottom: 0.55rem; }
.pub-tag-journal { background: #e8f0ff; color: #2456c4; }
.pub-tag-conf { background: #ffe9dd; color: #c2410c; }
.pub-title { font-size: 1.02rem; margin-bottom: 0.4rem; }
.pub-authors { color: var(--ink-2); font-size: 0.9rem; margin-bottom: 0.2rem; }
.pub-venue { color: var(--muted); font-size: 0.88rem; }
.pub-links { display: flex; gap: 0.9rem; align-items: center; margin-top: 0.7rem; flex-wrap: wrap; }
.pub-links:empty { display: none; }
.pub-award { color: #b45309; font-weight: 600; font-size: 0.85rem; }
.pub-award i { color: #f59e0b; }
.pub-link { font-weight: 600; font-size: 0.85rem; text-decoration: none; }
.pub-more-wrap { text-align: center; margin-top: 2rem; }
.pub-more-wrap.hidden { display: none; }

/* ---------- projects ---------- */
.projects-stat { text-align: center; padding: 3.6rem 2rem; }
.projects-stat-icon { font-size: 3rem; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 1rem; }
.projects-stat-number { font: 800 4.6rem var(--font-head); line-height: 1.1; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.projects-stat-suffix { font-size: 3.4rem; }
.projects-stat-label { font: 700 1.3rem var(--font-head); margin: 0.4rem 0 1.2rem; }
.projects-stat p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.projects-stat-note { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.project-card { padding: 2rem; }
.project-status { display: inline-block; padding: 0.28rem 0.8rem; border-radius: 999px; background: #dcfce7; color: #15803d; font: 600 0.78rem var(--font-body); margin-bottom: 0.9rem; }
.project-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.project-period { color: var(--muted); font-size: 0.86rem; margin-bottom: 0.7rem; }
.project-description { color: var(--ink-2); font-size: 0.94rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.tag { padding: 0.28rem 0.75rem; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); font: 500 0.78rem var(--font-body); }

/* ---------- news ---------- */
.news-list { display: flex; flex-direction: column; gap: 1.2rem; max-width: 860px; margin: 0 auto; }
.news-item { display: flex; gap: 1.4rem; padding: 1.5rem; align-items: flex-start; }
.news-date {
  flex: 0 0 76px; text-align: center; padding: 0.7rem 0.4rem; border-radius: 14px;
  background: var(--grad-primary); color: #fff; box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}
.news-day { font: 800 1.6rem var(--font-head); line-height: 1; }
.news-month { font-size: 0.72rem; font-weight: 600; opacity: 0.9; margin-top: 0.25rem; }
.news-body h3 { font-size: 1.12rem; margin-bottom: 0.45rem; }
.news-body p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0.5rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-card { padding: 1.6rem 1.4rem; text-align: center; }
.contact-icon {
  width: 50px; height: 50px; margin: 0 auto 0.9rem; display: grid; place-items: center;
  border-radius: 14px; background: var(--grad-primary); color: #fff; font-size: 1.15rem;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.32);
}
.contact-card h3 { font-size: 1rem; margin-bottom: 0.45rem; }
.contact-card p { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.4rem; word-break: break-word; }
.contact-form-wrap { padding: 2.2rem; }
.contact-form-wrap h3 { font-size: 1.25rem; margin-bottom: 1.4rem; }
.contact-form-wrap label { display: block; font: 600 0.84rem var(--font-body); color: var(--ink-2); margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form-wrap input, .contact-form-wrap textarea {
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg);
  font: 400 0.94rem var(--font-body); color: var(--ink); transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.contact-form-wrap input:focus, .contact-form-wrap textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15); background: #fff;
}
.form-status { margin-top: 0.9rem; font-weight: 600; font-size: 0.9rem; min-height: 1.3em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }

/* ---------- footer ---------- */
.footer { background: linear-gradient(180deg, #0d1730, var(--hero-bg-1)); color: rgba(255, 255, 255, 0.75); margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding: 3.6rem 0 2.4rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; }
.footer-brand strong { color: #fff; font: 700 1.1rem var(--font-head); }
.footer-about p { font-size: 0.92rem; }
.footer-link { display: inline-block; margin-top: 0.8rem; color: var(--primary-soft); text-decoration: none; font-weight: 600; }
.footer-link:hover { text-decoration: underline; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255, 255, 255, 0.65); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary-soft); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.4rem 0; text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }

.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--grad-primary); color: #fff; font-size: 1rem;
  box-shadow: var(--shadow-glow); opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .research-grid, .members-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0.2rem; padding: 1rem 1.2rem 1.4rem;
    background: rgba(10, 16, 31, 0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-130%); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .navbar.scrolled .nav-menu { background: rgba(255, 255, 255, 0.98); }
  .nav-menu.open { transform: none; }
  .nav-link { padding: 0.85rem 1rem; text-align: center; font-size: 1rem; }
  .nav-cta { margin-left: 0; }
}
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .container { width: calc(100% - 2.2rem); }
  .hero { min-height: auto; padding-bottom: 4.5rem; }
  .hero-stats { gap: 1.2rem; padding: 1rem 1.4rem; width: 100%; justify-content: space-around; }
  .hero-stat { min-width: 84px; }
  .hero-stat-divider { display: none; }
  .members-grid, .members-grid-featured, .research-grid, .contact-cards, .projects-grid, .form-row { grid-template-columns: 1fr; }
  .members-grid .member-card, .research-card { max-width: 520px; margin-inline: auto; width: 100%; }
  .pub-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .pub-year { position: static; }
  .news-item { flex-direction: column; }
  .news-date { align-self: flex-start; display: flex; align-items: baseline; gap: 0.45rem; padding: 0.5rem 0.9rem; }
  .news-day { font-size: 1.2rem; }
  .pub-controls { justify-content: center; }
}
@media (max-width: 480px) {
  body { font-size: 15px; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .about-text, .contact-form-wrap { padding: 1.6rem 1.3rem; }
  .brand-suffix { display: none; }
  .brand-x { display: none; }
}
