/* ============================================================
   MentisVR Lab — styles.css
   Same design system as MentisVR main site, lab-adapted
   ============================================================ */

/* ─── VARIABLES ─── */
:root {
  --bg:           #0a0a0f;
  --bg-2:         #0e0e16;
  --bg-3:         #13131e;
  --surface:      #1a1a28;
  --surface-2:    #22223a;
  --border:       rgba(255,255,255,0.08);
  --text:         #f0f0f8;
  --text-muted:   #8888aa;
  --accent:       #00d4ff;
  --accent-rgb:   0,212,255;
  --accent-2:     #7c3aed;    /* lab-specific purple */
  --accent-glow:  rgba(0,212,255,0.18);
  --accent-2-glow:rgba(124,58,237,0.18);
  --nav-h:        68px;
  --radius:       12px;
  --transition:   0.3s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="light"] {
  --bg:           #f5f5fa;
  --bg-2:         #eeeef7;
  --bg-3:         #e8e8f2;
  --surface:      #ffffff;
  --surface-2:    #f0f0fa;
  --border:       rgba(0,0,0,0.1);
  --text:         #0a0a1a;
  --text-muted:   #555577;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.1; }
.text-accent { color: var(--accent); }

/* ─── CONTAINER ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── SECTION ─── */
.section { padding: 100px 0; }
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: 'Space Grotesk', sans-serif;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 24px;
  line-height: 1.12;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: #000;
}
.btn--primary:hover { background: #33ddff; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,212,255,0.35); }
.btn--outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn--outline:hover { background: var(--accent); color: #000; }
.btn--ghost {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 8px 18px; font-size: 0.82rem; }
.btn--lg { padding: 16px 40px; font-size: 1rem; }

/* ─── CURSOR ─── */
.cursor-dot, .cursor-ring { display: none; }

body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M4 2 L4 24 L9 18 L13 28 L17 26 L13 16 L20 16 Z' fill='%2300d4ff'/%3E%3C/svg%3E") 4 2, auto;
}
a, button, [role="button"] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M4 2 L4 24 L9 18 L13 28 L17 26 L13 16 L20 16 Z' fill='%2300d4ff'/%3E%3C/svg%3E") 4 2, pointer;
}

/* ─── LOADER ─── */
.loader {
  position: fixed; inset: 0; background: #0a0a0f;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 10000; gap: 24px;
}
.loader__logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}
.loader__bar {
  width: 180px; height: 2px; background: var(--surface-2); border-radius: 2px; overflow: hidden;
}
.loader__progress {
  height: 100%; width: 0; background: var(--accent);
  animation: loaderFill 1.4s ease forwards;
}
@keyframes loaderFill { to { width: 100%; } }

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: #000;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: #000;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
[data-theme="light"] .nav { background: #f5f5f0; box-shadow: 0 1px 0 rgba(0,0,0,0.1); }
[data-theme="light"] .nav.scrolled { background: #f5f5f0; box-shadow: 0 1px 0 rgba(0,0,0,0.1); }
.nav__inner {
  display: flex; align-items: center; gap: 32px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
[data-theme="light"] .nav__logo-img {
  filter: invert(1) hue-rotate(180deg);
}
.nav__socials {
  display: flex; align-items: center; gap: 14px;
}
.nav__social-link {
  color: var(--text-muted); transition: color var(--transition);
  display: flex; align-items: center;
}
.nav__social-link:hover { color: var(--accent); }
.nav__links {
  display: flex; gap: 28px; margin-left: auto;
}
.nav__links a {
  font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--text); }
/* ─── LANGUAGE SWITCHER ─── */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-switcher__active {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--text);
  transition: border-color var(--transition);
}
.lang-switcher__active:hover { border-color: var(--accent); }
.lang-switcher__dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px;
  display: none;
  flex-wrap: wrap; gap: 4px;
  width: 136px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 200;
}
.lang-switcher.open .lang-switcher__dropdown { display: flex; }
.lang-btn {
  background: none; border: 1px solid transparent;
  border-radius: 8px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; cursor: pointer; line-height: 1; color: var(--text);
  transition: background var(--transition), border-color var(--transition);
}
.lang-btn:hover { background: var(--bg-3); }
.lang-btn.active { border-color: var(--accent); background: var(--bg-3); }

.theme-toggle {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text); transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="light"] .icon-sun { display: none; }
.icon-sun { display: none; }

/* Mobile nav */
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.nav__mobile {
  display: none; background: var(--bg-2);
  padding: 24px; border-bottom: 1px solid var(--border);
}
.nav__mobile ul { display: flex; flex-direction: column; gap: 16px; }
.nav__mobile a { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.nav__mobile.open { display: block; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(0, 0, 0, 0.65);
}
.hero__center { position: relative; z-index: 2; }
.hero__content { max-width: 860px; }
.hero__content--centered { text-align: center; margin: 0 auto; }
.hero__badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--accent);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  font-family: 'Space Grotesk', sans-serif;
}
.hero__headline {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero__stats {
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero__stat { text-align: center; }
.hero__stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.hero__stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  display: block;
}
.hero__scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(8px); } }

/* ─── REVEAL ANIMATIONS ─── */
.reveal, .fade-up {
  opacity: 0;
  transform: translateY(32px);
}
.reveal.in-view, .fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}


/* ─── PAPER CARD EXPAND ─── */
.paper-card__full {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
  opacity: 0;
  margin-top: 0;
}
.paper-card__full p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.paper-card__full p strong { color: var(--text); }
.paper-card.expanded .paper-card__full {
  max-height: 600px;
  opacity: 1;
  margin-top: 16px;
}
.paper-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  padding: 0;
  transition: color var(--transition);
}
.paper-card__toggle:hover { color: var(--accent); }
.toggle-chevron {
  transition: transform 0.35s ease;
}
.paper-card.expanded .toggle-chevron {
  transform: rotate(180deg);
}
.paper-card.expanded .paper-card__toggle { color: var(--accent); }
.paper-card__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 16px; }

/* ─── ABOUT ─── */
.about { background: var(--bg-2); }
.about__layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: center;
  margin-top: 40px;
}
.about__desc {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
  font-size: 1.02rem;
}
.about__pillars {
  display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap;
}
.pillar {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 120px;
}
.pillar__icon { font-size: 1.6rem; }
.pillar__label { font-size: 0.78rem; font-weight: 600; text-align: center; color: var(--text-muted); font-family: 'Space Grotesk', sans-serif; }

/* Brain Visual */
.about__visual { display: flex; align-items: center; justify-content: center; }
.brain-visual {
  position: relative; width: 300px; height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.brain-visual__ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ringPulse 4s ease-in-out infinite;
}
.ring--1 { width: 120px; height: 120px; opacity: 0.9; animation-delay: 0s; }
.ring--2 { width: 200px; height: 200px; opacity: 0.5; animation-delay: 0.7s; }
.ring--3 { width: 280px; height: 280px; opacity: 0.2; animation-delay: 1.4s; }
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: var(--o, 0.5); }
  50% { transform: scale(1.06); }
}
.brain-visual__core {
  font-size: 3.5rem; z-index: 2;
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ─── RESEARCH ─── */
.research__intro { color: var(--text-muted); max-width: 600px; line-height: 1.7; margin-bottom: 56px; font-size: 1.02rem; }
.research__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.research-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.research-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.research-card__icon { font-size: 2.2rem; margin-bottom: 20px; }
.research-card__title { font-size: 1.15rem; margin-bottom: 14px; }
.research-card__desc { color: var(--text-muted); line-height: 1.65; font-size: 0.9rem; margin-bottom: 20px; }
.research-card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.research-card__tags span {
  font-size: 0.7rem; font-weight: 600;
  padding: 4px 12px; border-radius: 50px;
  border: 1px solid var(--accent); color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
}

/* ─── PUBLICATIONS ─── */
.publications { background: var(--bg-2); }
.publications__intro { color: var(--text-muted); max-width: 680px; line-height: 1.7; margin-bottom: 56px; font-size: 1.02rem; }
.publications__list { display: flex; flex-direction: column; gap: 24px; }
.paper-card {
  display: flex; gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition);
}
.paper-card:hover { border-color: var(--accent); }
.paper-card__year {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 700;
  color: var(--border);
  flex-shrink: 0; width: 70px;
  line-height: 1;
  padding-top: 4px;
}
.paper-card__body { flex: 1; }
.paper-card__status {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 12px; border-radius: 50px; margin-bottom: 14px;
  font-family: 'Space Grotesk', sans-serif;
}
.paper-card__status--published { background: rgba(0,212,255,0.12); color: var(--accent); border: 1px solid var(--accent); }
.paper-card__status--review { background: rgba(255,165,0,0.12); color: #ffa500; border: 1px solid #ffa500; }
.paper-card__status--ongoing { background: rgba(124,58,237,0.12); color: #a78bfa; border: 1px solid #a78bfa; }
.paper-card__title { font-size: 1.08rem; margin-bottom: 8px; line-height: 1.4; }
.paper-card__authors { font-size: 0.82rem; color: var(--accent); margin-bottom: 12px; font-family: 'Space Grotesk', sans-serif; }
.paper-card__affiliations { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.paper-card__abstract { color: var(--text-muted); line-height: 1.65; font-size: 0.88rem; margin-bottom: 16px; }
.paper-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600; color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  transition: gap var(--transition);
}
.paper-card__link:hover { gap: 10px; }

/* ─── PARTNERS ─── */
.partners__intro { color: var(--text-muted); max-width: 620px; line-height: 1.7; margin-bottom: 56px; font-size: 1.02rem; }
.partners__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .partners__grid { grid-template-columns: 1fr; }
}
.partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.partner-card:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.partner-card__icon { font-size: 2rem; margin-bottom: 14px; }
.partner-card__name { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; font-family: 'Space Grotesk', sans-serif; }
.partner-card__focus { font-size: 0.78rem; color: var(--text-muted); }

/* ─── Logo partner cards ─── */
.partner-card--logo {
  background: #0d0d18;
  border: none;
  border-radius: 20px;
  padding: 36px 28px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
}

/* static subtle border */
.partner-card--logo::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.35s;
  pointer-events: none;
}

/* gradient border on hover */
.partner-card--logo::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent), #7c3aed, var(--accent-2, #f97316));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.partner-card--logo:hover::after { opacity: 1; }
.partner-card--logo:hover::before { opacity: 0; }
.partner-card--logo:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(var(--accent-rgb, 251,146,60), 0.12);
}

/* logo image container */
.partner-card__logo-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 110px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.partner-card__logo-wrap--dark {
  background: #111827;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.partner-card__logo-img {
  max-width: 100%; max-height: 72px;
  width: auto; height: auto;
  object-fit: contain;
}
.partner-card__dept {
  font-size: 1rem; font-weight: 600;
  color: rgba(255,255,255,0.75);
  font-family: 'Space Grotesk', sans-serif;
  text-align: center; line-height: 1.5;
  letter-spacing: 0.01em;
}
.partner-card__university {
  font-size: 0.85rem; font-weight: 400;
  color: rgba(255,255,255,0.42);
  font-style: italic;
}
.partner-card__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem; font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  margin-top: auto;
}
.partner-card__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,212,255,0.07);
}
.partners__note {
  font-size: 0.82rem; color: var(--text-muted); text-align: center;
}
.partners__note a { color: var(--accent); }

/* ─── TEAM ─── */
.team { background: var(--bg-2); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color var(--transition);
}
.team-card:hover { border-color: var(--accent); }
.team-card__avatar { display: flex; align-items: center; justify-content: center; }
.team-card__avatar-placeholder {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem; font-weight: 700; color: #fff;
}
.team-card__name { font-size: 1.1rem; margin-bottom: 4px; }
.team-card__role { font-size: 0.78rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-family: 'Space Grotesk', sans-serif; margin-bottom: 12px; }
.team-card__bio { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }
.team-card__socials { display: flex; gap: 12px; align-items: center; }
.team-card__socials a { color: var(--text-muted); transition: color var(--transition); }
.team-card__socials a:hover { color: var(--accent); }

/* ─── CTA ─── */
.cta-section {
  position: relative; overflow: hidden;
  background: var(--bg-3);
}
.cta-section__bg { position: absolute; inset: 0; overflow: hidden; }
.cta-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.cta-orb--1 {
  width: 480px; height: 480px;
  background: var(--accent-glow);
  top: -100px; left: -100px;
  animation: orbDrift 12s ease-in-out infinite;
}
.cta-orb--2 {
  width: 360px; height: 360px;
  background: var(--accent-2-glow);
  bottom: -80px; right: -80px;
  animation: orbDrift 16s ease-in-out infinite reverse;
}
@keyframes orbDrift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,30px); } }
.cta-section__inner { position: relative; z-index: 1; max-width: 720px; }
.cta-section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12; margin-bottom: 16px;
}
.cta-section__sub { color: var(--text-muted); margin-bottom: 48px; font-size: 1.05rem; }
.cta-form { display: flex; flex-direction: column; gap: 16px; }
.cta-form__row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.cta-form input, .cta-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.cta-form input:focus, .cta-form textarea:focus {
  outline: none; border-color: var(--accent);
}
.cta-form input::placeholder, .cta-form textarea::placeholder { color: var(--text-muted); }
.cta-form textarea { resize: vertical; }

/* ─── FOOTER ─── */
.footer { background: var(--bg-3); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer__layout { display: flex; gap: 64px; margin-bottom: 48px; flex-wrap: wrap; }
.footer__brand { flex: 1; min-width: 200px; }
.footer__wordmark { display: flex; align-items: center; gap: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.footer__logo-img { height: 40px; width: auto; object-fit: contain; }
.footer__tagline { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px; }
.footer__socials { display: flex; gap: 14px; }
.social-link { color: var(--text-muted); transition: color var(--transition); }
.social-link:hover { color: var(--accent); }
.footer__nav { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__col h5 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 16px; font-family: 'Space Grotesk', sans-serif; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col li a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.footer__col li a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer__bottom .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 0.78rem; color: var(--text-muted);
}

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
  opacity: 0; pointer-events: none;
  transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
  background: var(--surface-2); border-top: 1px solid var(--border);
  padding: 16px 24px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner__content {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cookie-banner__text { font-size: 0.85rem; color: var(--text-muted); }
.cookie-banner__actions { display: flex; gap: 12px; }
.cookie-banner__accept {
  padding: 8px 20px; border-radius: 50px;
  background: var(--accent); color: #000;
  border: none; cursor: pointer; font-weight: 600; font-size: 0.82rem; font-family: 'Space Grotesk', sans-serif;
}
.cookie-banner__decline {
  padding: 8px 20px; border-radius: 50px;
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); cursor: pointer; font-size: 0.82rem;
}

/* ─── CARD-B (CINEMATIC RESEARCH CARDS) ─── */
.card-b {
  position: relative;
  background: #141824;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform .3s ease, border-color .3s ease;
  color: #f8f9fc;
}
.card-b:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }
.card-b .media { position: absolute; inset: 0; }
.card-b .media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-b .media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,20,0.1) 0%, rgba(10,10,20,0.55) 50%, rgba(8,8,18,0.97) 100%);
  pointer-events: none;
}
.card-b .top-left {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.cb-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.12em; padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 999px;
  color: rgba(255,255,255,0.7);
  background: rgba(10,10,20,0.4);
  backdrop-filter: blur(6px);
}
.cb-tag--live {
  color: var(--accent);
  border-color: rgba(0,212,255,0.4);
  background: rgba(0,212,255,0.08);
}
.cb-dot {
  width: 5px; height: 5px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}
.card-b .content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 24px 26px;
}
.card-b .proj-id {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--accent); letter-spacing: 0.14em; margin-bottom: 10px;
}
.card-b h3 {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem); line-height: 1.1;
  letter-spacing: -0.015em; max-width: 26ch; margin: 0 0 10px; color: #fff;
}
.card-b h3 em { color: var(--accent); font-style: italic; }
.card-b .desc {
  font-size: 0.82rem; line-height: 1.55; color: rgba(255,255,255,0.65);
  max-width: 54ch; margin: 0 0 16px;
}
.card-b .meta-strip {
  display: flex; gap: 20px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.09);
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.4); text-transform: uppercase;
}
.card-b .meta-strip b { color: #fff; font-weight: 500; }
.card-b .progress-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3;
  background: rgba(255,255,255,0.09);
}
.card-b .progress-bar .fill {
  height: 100%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transition: width .6s ease;
}

/* ─── PROJECT WRAP DROPDOWN ─── */
.project-wrap { display: flex; flex-direction: column; }
.card-b__toggle-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 4px; align-self: flex-start;
  transition: opacity 0.2s;
}
.card-b__toggle-btn:hover { opacity: 0.7; }
.card-b__toggle-btn .cb-chevron { transition: transform 0.3s ease; flex-shrink: 0; }
.project-wrap.open .cb-chevron { transform: rotate(180deg); }
.card-b__full {
  display: none;
  background: #141824;
  border: 1px solid rgba(255,255,255,0.09);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 18px 22px;
  font-size: 0.875rem; line-height: 1.68;
  color: rgba(255,255,255,0.65);
  margin-top: -4px;
}
.project-wrap.open .card-b__full { display: block; }

/* ─── ONGOING PROJECTS ─── */
.ongoing__intro {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 48px;
}
.ongoing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.project-card {
  background: #0d0d18;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: rgba(255,255,255,0.07);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent), #7c3aed, var(--accent-2, #f97316));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  z-index: 1;
}
.project-card:hover::after { opacity: 1; }
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(var(--accent-rgb,0,212,255),0.10);
}
.project-card__img-wrap {
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, #0e0e22 0%, #1a0a2e 50%, #0a1a2e 100%);
  position: relative;
  flex-shrink: 0;
}
.project-card__img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(0,212,255,0.09) 0%, transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(124,58,237,0.09) 0%, transparent 60%);
  pointer-events: none;
}
.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}
.project-card:hover .project-card__img { transform: scale(1.04); }
.project-card__body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.project-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
}
.project-card__tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.65); }
}
.project-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-top: 2px;
}
.project-card__abstract {
  font-size: 0.875rem;
  color: rgba(240,240,248,0.5);
  line-height: 1.65;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .paper-card { flex-direction: column; gap: 16px; }
  .paper-card__year { width: auto; font-size: 1.2rem; color: var(--accent); opacity: 0.6; }
  .cta-form__row { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__inner { gap: 12px; }
  /* hide "Collaborate" btn in nav — it lives in mobile menu */
  .nav__inner > .btn--outline { display: none; }
}
@media (max-width: 700px) {
  .ongoing__grid { grid-template-columns: 1fr; }
  .project-card__img-wrap { height: 180px; }
  .card-b h3 { font-size: 1.3rem; }
  .card-b .content { padding: 18px 20px; }
  .card-b .meta-strip { gap: 12px; flex-wrap: wrap; font-size: 9px; }
  .partners__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .card-b__full { padding: 14px 16px; font-size: 0.82rem; }
  .card-b__toggle-btn { font-size: 10px; }
  .section { padding: 64px 0; }
  .hero { min-height: 100svh; }
  .hero__stats { gap: 20px; }
  .hero__stat-num { font-size: 1.9rem; }
  /* 2-column stat grid on small phones */
  .hero__stat { flex: 0 0 calc(50% - 10px); }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .footer__layout { flex-direction: column; gap: 32px; }
  .footer__nav { flex-direction: column; gap: 24px; }
  .footer__bottom .container { flex-direction: column; gap: 6px; text-align: center; }
  .cookie-banner { bottom: 0; border-radius: 0; left: 0; right: 0; transform: translateY(100%); }
  .cookie-banner__content { flex-direction: column; gap: 12px; }
  .cta-form input, .cta-form textarea { font-size: 16px; /* prevent iOS zoom */ }
  .paper-card__actions { flex-wrap: wrap; }
  .lang-switcher__dropdown { right: auto; left: 0; }
}
@media (max-width: 480px) {
  .nav__socials { display: none; }
}
@media (max-width: 380px) {
  .nav__inner { padding: 0 14px; gap: 8px; }
  .nav__logo-img { height: 34px; }
  .lang-switcher__active, .theme-toggle { width: 32px; height: 32px; }
  .hero__headline { font-size: clamp(2rem, 9vw, 2.8rem); }
}
