/* =====================================================
   LCDM Site — Bright Modern Theme
   ===================================================== */

:root {
  --blue:    #1d6fec;
  --blue-2:  #1e40af;
  --sky:     #0ea5e9;
  --indigo:  #6366f1;
  --white:   #ffffff;
  --hero-bg: #f5f8ff;
  --off:     #f0f6ff;
  --slate-1: #0f172a;
  --slate-2: #1e293b;
  --slate-3: #475569;
  --slate-4: #64748b;
  --slate-5: #cbd5e1;
  --slate-6: #e2e8f0;
  --section-pad: 100px;
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--slate-1);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =====================================================
   Scroll Reveal
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1),
              transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }

/* =====================================================
   Navbar
   ===================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(245, 248, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition),
              padding var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--slate-6);
  box-shadow: 0 2px 20px rgba(15,23,42,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-1);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.nav-logo img {
  height: 50px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--slate-3);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--slate-2);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 260px; height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transition: right var(--transition);
    box-shadow: -4px 0 40px rgba(15,23,42,0.1);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; color: var(--slate-2); }
}

/* =====================================================
   Hero — Light
   ===================================================== */
#hero {
  position: relative;
  min-height: 100vh;
  background: var(--hero-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Aurora blobs */
#hero::before,
#hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
#hero::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  top: -120px; left: -100px;
  animation: blobDrift 12s ease-in-out infinite alternate;
}
#hero::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,0.16) 0%, transparent 70%);
  bottom: -80px; right: -60px;
  animation: blobDrift 14s ease-in-out infinite alternate-reverse;
}
@keyframes blobDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.06); }
  100% { transform: translate(-20px, 40px) scale(0.97); }
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 820px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  border: 1.5px solid rgba(29,111,236,0.25);
  background: rgba(29,111,236,0.06);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  cursor: default;
  will-change: transform;
  transition: transform 0.08s ease-out;
  /* default gradient — overridden live by JS */
  background: linear-gradient(135deg, var(--slate-1) 0%, var(--blue-2) 50%, var(--sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--slate-3);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary-hero {
  background: var(--blue);
  color: var(--white);
  padding: 13px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(29,111,236,0.28);
}
.btn-primary-hero:hover {
  background: #2979f5;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29,111,236,0.42);
  color: var(--white);
}
.btn-ghost-hero {
  border: 1.5px solid var(--slate-5);
  color: var(--slate-2);
  padding: 13px 30px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.92rem;
  background: rgba(255,255,255,0.7);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.btn-ghost-hero:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(29,111,236,0.05);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
  margin: 0 auto;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.8; }
}

/* =====================================================
   Section labels & titles
   ===================================================== */
.section-label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.section-label.light { color: var(--white); opacity: 0.75; }

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--slate-1);
  margin-bottom: 56px;
  line-height: 1.18;
}
.section-title.light { color: var(--white); }

/* =====================================================
   About
   ===================================================== */
#about {
  padding: var(--section-pad) 24px;
  background: var(--white);
}
#about .container { max-width: 1100px; margin: 0 auto; }

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}

.about-photo-wrap {
  position: relative;
}
.about-photo-wrap img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: top;
}
.photo-accent {
  position: absolute;
  bottom: -14px; right: -14px;
  width: 100%; height: 100%;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.35;
  transition: transform var(--transition), opacity var(--transition);
}
.about-photo-wrap:hover .photo-accent {
  transform: translate(-5px, -5px);
  opacity: 0.6;
}

#about h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--slate-1);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.prof-role { color: var(--slate-4); font-size: 0.92rem; margin-bottom: 22px; font-weight: 500; }

.prof-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1.5px solid var(--slate-6);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--slate-3);
  background: var(--off);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.contact-chip:hover {
  border-color: var(--blue);
  background: rgba(29,111,236,0.05);
  color: var(--blue);
}
.chip-icon { font-style: normal; }

.prof-section { margin-bottom: 26px; }
.prof-section h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--slate-6);
}
.prof-list { display: flex; flex-direction: column; gap: 9px; }
.prof-list li {
  font-size: 0.88rem;
  color: var(--slate-3);
  padding-left: 16px;
  position: relative;
  line-height: 1.65;
}
.prof-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  background: var(--sky);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-col { max-width: 280px; }
}

/* =====================================================
   Research
   ===================================================== */
#research {
  padding: var(--section-pad) 24px;
  background: var(--off);
}
#research .container { max-width: 1200px; margin: 0 auto; }

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.research-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--slate-6);
  transition: transform 0.4s ease, box-shadow 0.4s ease,
              opacity 0.5s ease;
  opacity: 0;
  transform: translateY(20px);
}
.research-card.visible { opacity: 1; transform: translateY(0); }
.research-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15,23,42,0.1);
}
.research-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.research-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.research-card:hover .research-img-wrap img { transform: scale(1.07); }
.research-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.05) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  transition: opacity var(--transition);
}
.research-card:hover .research-overlay { opacity: 1; }
.research-overlay a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 7px 16px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  transition: background var(--transition), border-color var(--transition);
}
.research-overlay a:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.research-info {
  padding: 16px 18px;
  border-top: 1px solid var(--slate-6);
}
.research-info p {
  font-size: 0.86rem;
  color: var(--slate-3);
  font-weight: 500;
  margin: 0;
}

/* =====================================================
   Members
   ===================================================== */
#members {
  padding: var(--section-pad) 24px;
  background: var(--white);
}
#members .container { max-width: 1200px; margin: 0 auto; }

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}
.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 14px 22px;
  border-radius: var(--radius);
  border: 1.5px solid var(--slate-6);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition), opacity 0.45s ease;
  opacity: 0;
  transform: translateY(16px);
}
.member-card.visible { opacity: 1; transform: translateY(0); }
.member-card:hover {
  border-color: rgba(29,111,236,0.35);
  box-shadow: 0 8px 28px rgba(29,111,236,0.1);
  transform: translateY(-4px);
}
.member-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid var(--slate-6);
  margin-bottom: 14px;
  transition: border-color var(--transition);
}
.member-card:hover .member-avatar { border-color: var(--sky); }
.member-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-1);
  margin-bottom: 7px;
  line-height: 1.35;
}
.member-role {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
  letter-spacing: 0.01em;
}
.member-role.alumni { background: var(--slate-4); }
.member-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--blue);
  font-weight: 500;
}
.member-link:hover { text-decoration: underline; }

/* =====================================================
   Contact — accent gradient (bright, not dark)
   ===================================================== */
#contact {
  padding: var(--section-pad) 24px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
#contact .container { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.contact-inner { text-align: center; }
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 44px;
}
.contact-card {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: background var(--transition), transform var(--transition);
}
.contact-card:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}
.contact-card-icon { font-size: 1.5rem; margin-bottom: 12px; }
.contact-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 7px;
}
.contact-card-value {
  font-size: 0.9rem;
  color: var(--white);
  word-break: break-all;
  line-height: 1.5;
}
.contact-card a { color: inherit; }
.contact-card a:hover { text-decoration: underline; }

/* =====================================================
   Footer
   ===================================================== */
#footer {
  background: var(--slate-1);
  padding: 26px 24px;
  text-align: center;
}
#footer p { font-size: 0.82rem; color: var(--slate-4); }

/* =====================================================
   Avatar — Cloud Placeholder
   ===================================================== */
.member-avatar-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid var(--slate-6);
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
  transition: border-color var(--transition);
}
.member-card:hover .member-avatar-placeholder { border-color: var(--sky); }
.member-avatar-placeholder svg { width: 44px; height: auto; opacity: 0.45; }

/* =====================================================
   Lightbox
   ===================================================== */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: lbFadeIn 0.2s ease;
}
.lb-overlay[hidden] { display: none; }

@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.lb-dialog {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 880px;
  height: min(88vh, 680px);
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(15,23,42,0.28);
  animation: lbDialogIn 0.26s cubic-bezier(0.34,1.15,0.64,1);
}
@keyframes lbDialogIn {
  from { transform: scale(0.93) translateY(14px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.lb-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 10;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(15,23,42,0.07);
  color: var(--slate-3);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.lb-close:hover { background: rgba(15,23,42,0.14); color: var(--slate-1); }

/* Left — photo panel */
.lb-left {
  display: flex;
  flex-direction: column;
  background: var(--off);
  border-right: 1px solid var(--slate-6);
  overflow: hidden;
}
.lb-photo-main {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off);
  min-height: 0;
}
.lb-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.lb-cloud-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--slate-4);
  padding: 32px;
  text-align: center;
  width: 100%;
}
.lb-cloud-placeholder svg { width: 96px; height: auto; opacity: 0.4; }
.lb-cloud-placeholder p { font-size: 0.8rem; font-weight: 500; }

.lb-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--slate-6);
  background: var(--white);
  flex-shrink: 0;
}
.lb-thumb {
  width: 50px; height: 50px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.lb-thumb:hover  { border-color: var(--slate-4); }
.lb-thumb.active { border-color: var(--blue); }

/* Right — profile panel */
.lb-right {
  overflow-y: auto;
  padding: 36px 30px;
  min-height: 0;
}

/* Markdown styles */
.markdown-body h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-1);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.markdown-body h2 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--slate-6);
}
.markdown-body h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-2);
  margin: 14px 0 6px;
}
.markdown-body p {
  font-size: 0.87rem;
  color: var(--slate-3);
  line-height: 1.75;
  margin-bottom: 10px;
}
.markdown-body strong { color: var(--slate-2); font-weight: 600; }
.markdown-body em { font-style: italic; }
.markdown-body ul, .markdown-body ol { padding-left: 18px; margin-bottom: 12px; }
.markdown-body li {
  font-size: 0.87rem;
  color: var(--slate-3);
  line-height: 1.7;
  margin-bottom: 4px;
}
.markdown-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.markdown-body hr { border: none; border-top: 1px solid var(--slate-6); margin: 20px 0; }
.markdown-body code {
  font-size: 0.82rem;
  background: var(--off);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--blue-2);
}

/* No-profile placeholder */
.lb-no-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  height: 100%;
  min-height: 280px;
}
.lb-no-profile-icon { font-size: 2.6rem; margin-bottom: 16px; opacity: 0.35; }
.lb-no-profile h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-3);
  margin-bottom: 8px;
}

/* Loading */
.lb-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 200px;
  color: var(--slate-4);
  font-size: 0.85rem;
}
.lb-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--slate-5);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: lbSpin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes lbSpin { to { transform: rotate(360deg); } }

@media (max-width: 680px) {
  .lb-dialog {
    grid-template-columns: 1fr;
    grid-template-rows: 240px 1fr;
    height: 92vh;
  }
  .lb-left { border-right: none; border-bottom: 1px solid var(--slate-6); }
  .lb-right { padding: 22px 18px; }
}

/* =====================================================
   Back to top
   ===================================================== */
#back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 42px; height: 42px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(29,111,236,0.35);
  z-index: 999;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover { background: #2979f5; }

/* =====================================================
   Container
   ===================================================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   Animations
   ===================================================== */
#animations {
  padding: var(--section-pad) 24px;
  background: var(--off);
}
#animations .container { max-width: 1140px; margin: 0 auto; }

.animations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.animation-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--slate-6);
}
.animation-iframe-wrap {
  position: relative;
  padding-top: 56.25%;
  background: var(--slate-1);
}
.animation-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.animation-info { padding: 22px 26px; }
.animation-info h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-1);
  margin-bottom: 6px;
  line-height: 1.4;
}
.animation-author {
  font-size: 0.84rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 10px;
}
.animation-desc {
  font-size: 0.84rem;
  color: var(--slate-3);
  line-height: 1.65;
  margin: 0;
}

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

@media (max-width: 600px) {
  :root { --section-pad: 64px; }
  .hero-title { font-size: 2.1rem; }
  .research-grid { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
}