/* ==========================================================================
   API Lab - public website theme ("Smart AI" teal / indigo / violet)
   ========================================================================== */
:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --bg: #f5f9f8;
  --surface: #ffffff;
  --line: #e2e8f0;
  --primary: #0f766e;
  --primary-2: #14b8a6;
  --indigo: #4f46e5;
  --violet: #8b5cf6;
  --lime: #a3e635;
  --ai-grad: linear-gradient(135deg, #14b8a6 0%, #6366f1 55%, #a855f7 100%);
  --deep-grad: linear-gradient(135deg, #042f2e 0%, #0b3b3a 40%, #1e1b4b 100%);
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 25px 60px -20px rgba(15, 23, 42, .35);
}

* { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, .font-display { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; color: var(--ink); letter-spacing: -.02em; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--indigo); }
::selection { background: rgba(99, 102, 241, .25); }

.text-gradient { background: var(--ai-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bg-deep { background: var(--deep-grad); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ai-grad); color: #fff; font-size: .875rem; font-weight: 500;
  padding: .5rem 0; position: relative; overflow: hidden;
}
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.announce .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); display: inline-block; margin-right: .5rem; box-shadow: 0 0 0 0 rgba(163,230,53,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(163,230,53,.7);} 70% { box-shadow: 0 0 0 10px rgba(163,230,53,0);} 100% { box-shadow: 0 0 0 0 rgba(163,230,53,0);} }

/* ---------- Navbar ---------- */
.site-nav {
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .8); z-index: 1030;
}
.site-nav .brand-logo { width: 52px; height: 52px; object-fit: contain; }
.site-nav .brand-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--ink); line-height: 1.1; font-size: 1.05rem; }
.site-nav .brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.site-nav .nav-link { white-space: nowrap; font-weight: 600; font-size: .9rem; color: var(--ink-2); padding: .55rem .8rem !important; border-radius: 10px; transition: all .2s; }
.site-nav .nav-link:hover, .site-nav .nav-link.active, .site-nav .show > .nav-link { color: var(--primary); background: rgba(20, 184, 166, .08); }
.site-nav .dropdown-menu {
  border: 1px solid var(--line); border-radius: 14px; padding: .5rem; box-shadow: var(--shadow-lg);
  min-width: 240px; margin-top: .35rem;
}
.site-nav .dropdown-item { border-radius: 9px; padding: .5rem .8rem; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.site-nav .dropdown-item:hover { background: linear-gradient(90deg, rgba(20,184,166,.12), rgba(99,102,241,.08)); color: var(--primary); }
@media (min-width: 992px) {
  /* Hover-to-open dropdowns on desktop */
  .site-nav .dropdown:hover > .dropdown-menu { display: block; animation: dropIn .18s ease-out; }
  .site-nav .dropdown > .dropdown-menu { margin-top: 0; }
  .site-nav .dropdown > .dropdown-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
}
@keyframes dropIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }
.btn-ai {
  background: var(--ai-grad); color: #fff !important; border: 0; font-weight: 600; border-radius: 12px;
  padding: .6rem 1.15rem; box-shadow: 0 8px 22px -8px rgba(99, 102, 241, .7); transition: transform .2s, box-shadow .2s;
}
.btn-ai:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(99, 102, 241, .8); }
.btn-soft { background: rgba(20, 184, 166, .1); color: var(--primary); border: 0; font-weight: 600; border-radius: 12px; }
.btn-soft:hover { background: rgba(20, 184, 166, .18); color: var(--primary); }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.icon-btn:hover { color: var(--primary); border-color: var(--primary-2); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--deep-grad); color: #e2e8f0; overflow: hidden; padding: 6rem 0 7rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1.08; }
.hero .lead { color: #cbd5e1; font-size: 1.12rem; max-width: 620px; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 14s ease-in-out infinite; }
.hero .blob.b1 { width: 420px; height: 420px; background: #14b8a6; top: -120px; right: -60px; }
.hero .blob.b2 { width: 360px; height: 360px; background: #6366f1; bottom: -140px; left: 10%; animation-delay: -5s; }
.hero .blob.b3 { width: 260px; height: 260px; background: #a855f7; top: 30%; right: 30%; animation-delay: -9s; opacity: .35; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(30px,-30px) scale(1.08);} }
.hero .grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: .4rem .9rem; font-size: .82rem; color: #e2e8f0; backdrop-filter: blur(6px); }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 440px; margin-left: auto; }
.orb { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 40%), var(--ai-grad); box-shadow: 0 0 80px rgba(99,102,241,.6), inset 0 0 60px rgba(255,255,255,.15); animation: spin 18s linear infinite; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.25); animation: spin 40s linear infinite reverse; }
.orb-ring.r2 { inset: 6%; border-style: solid; border-color: rgba(20,184,166,.3); animation-duration: 25s; }
@keyframes spin { to { transform: rotate(360deg);} }
.orb-chip { position: absolute; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 14px; padding: .55rem .85rem; font-size: .8rem; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .45rem; animation: float 8s ease-in-out infinite; }
.orb-chip i { font-size: 1.05rem; }
.orb-chip.c1 { top: 8%; left: -4%; } .orb-chip.c2 { top: 46%; right: 0; animation-delay: -3s; } .orb-chip.c3 { bottom: 6%; left: 6%; animation-delay: -6s; }
.hero-icon-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 5.5rem; color: rgba(255,255,255,.92); text-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* ---------- Stats ---------- */
.stats-wrap { margin-top: -3.5rem; position: relative; z-index: 2; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 1.4rem 1.25rem; box-shadow: var(--shadow); border: 1px solid var(--line); height: 100%; }
.stat-card .num { font-family: "Space Grotesk", sans-serif; font-size: 2.1rem; font-weight: 700; line-height: 1; }
.stat-card .lbl { color: var(--muted); font-size: .85rem; font-weight: 500; margin-top: .35rem; }
.stat-card .ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; background: var(--ai-grad); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); background: rgba(20,184,166,.1); padding: .35rem .8rem; border-radius: 999px; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; margin: .8rem 0 .6rem; }
.section-sub { color: var(--muted); max-width: 640px; }

.card-smart {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  height: 100%; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden;
}
.card-smart:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-smart::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--ai-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s; pointer-events: none; }
.card-smart:hover::after { opacity: 1; }
.card-smart .ic { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; background: rgba(20,184,166,.1); color: var(--primary); margin-bottom: 1rem; }
.research-item { display: flex; gap: 1rem; align-items: flex-start; }
.research-item .num { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; background: var(--ai-grad); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: "Space Grotesk"; font-size: .9rem; }
.research-item h6 { font-size: .98rem; font-weight: 600; color: var(--ink); line-height: 1.45; margin: 0; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: rgba(99,102,241,.1); color: var(--indigo); }
.tag.teal { background: rgba(20,184,166,.12); color: var(--primary); }

/* Team */
.member-card { text-align: center; }
.avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1rem; object-fit: cover; display: flex; align-items: center; justify-content: center; font-family: "Space Grotesk"; font-weight: 700; font-size: 1.8rem; color: #fff; background: var(--ai-grad); box-shadow: 0 10px 25px -10px rgba(99,102,241,.7); border: 4px solid #fff; outline: 2px solid rgba(20,184,166,.25); }
.avatar.lg { width: 150px; height: 150px; font-size: 2.8rem; }
.member-card h5 { font-size: 1.02rem; font-weight: 700; margin-bottom: .2rem; }
.member-card .role { font-size: .82rem; color: var(--muted); }

/* Page header */
.page-hero { background: var(--deep-grad); color: #cbd5e1; padding: 4rem 0 3.5rem; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.page-hero .blob { position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(80px); background: #6366f1; opacity: .35; top: -160px; right: -80px; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: #94a3b8; font-size: .85rem; }
.page-hero .breadcrumb-item.active { color: #e2e8f0; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: #64748b; }
.prose { font-size: 1.03rem; line-height: 1.8; color: var(--ink-2); }
.prose h2, .prose h3 { margin-top: 2rem; margin-bottom: .8rem; font-size: 1.4rem; }
.prose ul li { margin-bottom: .35rem; }
.prose img { max-width: 100%; height: auto; border-radius: 14px; }
.prose blockquote { border-left: 4px solid var(--primary-2); padding: .5rem 1.2rem; background: rgba(20,184,166,.06); border-radius: 0 12px 12px 0; }
.content-card { background: #fff; border-radius: 22px; border: 1px solid var(--line); padding: clamp(1.4rem, 4vw, 3rem); box-shadow: var(--shadow); }

/* Timeline (former members / trainees) */
.year-chip { position: sticky; top: 90px; display: inline-block; background: var(--ai-grad); color: #fff; font-family: "Space Grotesk"; font-weight: 700; border-radius: 12px; padding: .45rem 1rem; }
.timeline-item { border-left: 2px solid rgba(20,184,166,.3); padding: 0 0 1.25rem 1.4rem; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--primary-2); }

/* Gallery */
.gallery-tile { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; background: var(--deep-grad); cursor: zoom-in; display: block; border: 0; padding: 0; width: 100%; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-tile:hover img { transform: scale(1.07); }
.gallery-tile .cap { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem .9rem; background: linear-gradient(transparent, rgba(2,6,23,.85)); color: #fff; text-align: left; }
.gallery-tile .cap h6 { color: #fff; margin: 0; font-size: .95rem; font-weight: 600; }
.gallery-tile .cap small { color: #cbd5e1; font-size: .78rem; }
.gallery-tile .placeholder-ic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(255,255,255,.55); }
.chip-filter { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .45rem 1rem; font-weight: 600; font-size: .86rem; color: var(--ink-2); }
.chip-filter.active, .chip-filter:hover { background: var(--ai-grad); color: #fff; border-color: transparent; }

/* Forms */
.form-control, .form-select { border-radius: 12px; border-color: var(--line); padding: .7rem .95rem; }
.form-control:focus, .form-select:focus { border-color: var(--primary-2); box-shadow: 0 0 0 .25rem rgba(20,184,166,.15); }
.form-label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* CTA */
.cta { background: var(--deep-grad); border-radius: 28px; padding: clamp(2rem, 5vw, 4rem); color: #cbd5e1; position: relative; overflow: hidden; }
.cta h2 { color: #fff; }
.cta .blob { position: absolute; width: 300px; height: 300px; border-radius: 50%; filter: blur(70px); background: #14b8a6; opacity: .4; right: -60px; bottom: -120px; }

/* Footer */
.site-footer { background: #020617; color: #94a3b8; padding: 4rem 0 1.5rem; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: var(--primary-2); }
.site-footer .footer-logo { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 16px; padding: 6px; }
.site-footer .social a { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); color: #cbd5e1; margin-right: .4rem; }
.site-footer .social a:hover { background: var(--ai-grad); color: #fff; }

/* ---------- Smart search overlay ---------- */
.search-overlay .modal-content { border-radius: 22px; border: 0; overflow: hidden; box-shadow: var(--shadow-lg); }
.search-overlay .search-input { border: 0; font-size: 1.15rem; padding: 1.2rem 1.2rem 1.2rem 3.2rem; box-shadow: none !important; }
.search-overlay .search-ic { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--primary); }
.search-result { display: block; padding: .85rem 1.2rem; border-top: 1px solid var(--line); color: var(--ink-2); }
.search-result:hover { background: rgba(20,184,166,.06); }
.search-result strong { color: var(--ink); }

/* ---------- AI chat widget ---------- */
.ai-fab { position: fixed; right: 22px; bottom: 22px; z-index: 1060; width: 62px; height: 62px; border-radius: 20px; border: 0; background: var(--ai-grad); color: #fff; font-size: 1.6rem; box-shadow: 0 14px 34px -10px rgba(99,102,241,.8); transition: transform .2s; }
.ai-fab:hover { transform: scale(1.06) rotate(-4deg); }
.ai-fab::before { content: ""; position: absolute; inset: -4px; border-radius: 24px; background: var(--ai-grad); opacity: .35; filter: blur(10px); z-index: -1; animation: glow 3s ease-in-out infinite; }
@keyframes glow { 0%,100% { opacity: .25; } 50% { opacity: .6; } }
.ai-panel { position: fixed; right: 22px; bottom: 98px; width: min(390px, calc(100vw - 32px)); height: min(580px, calc(100vh - 140px)); z-index: 1060; background: #fff; border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(15,23,42,.45); display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.ai-panel.open { display: flex; animation: dropIn .22s ease-out; }
.ai-panel .ai-head { background: var(--deep-grad); color: #fff; padding: 1rem 1.1rem; display: flex; align-items: center; gap: .75rem; }
.ai-panel .ai-head .bot { width: 42px; height: 42px; border-radius: 14px; background: var(--ai-grad); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.ai-panel .ai-head small { color: #a5b4fc; font-size: .75rem; }
.ai-panel .ai-head .btn-close { filter: invert(1); opacity: .8; }
.ai-body { flex: 1; overflow-y: auto; padding: 1rem; background: linear-gradient(180deg, #f8fafc, #fff); }
.ai-body::-webkit-scrollbar { width: 8px; } .ai-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
.msg { max-width: 86%; padding: .7rem .95rem; border-radius: 16px; margin-bottom: .7rem; font-size: .9rem; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink-2); }
.msg.user { background: var(--ai-grad); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.msg a { font-weight: 600; }
.typing span { width: 7px; height: 7px; background: var(--primary-2); border-radius: 50%; display: inline-block; margin-right: 3px; animation: bounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity: .5;} 30% { transform: translateY(-5px); opacity: 1;} }
.ai-suggest { display: flex; gap: .4rem; flex-wrap: wrap; padding: 0 1rem .6rem; }
.ai-suggest button { border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: .76rem; padding: .3rem .7rem; color: var(--ink-2); font-weight: 600; }
.ai-suggest button:hover { border-color: var(--primary-2); color: var(--primary); }
.ai-foot { border-top: 1px solid var(--line); padding: .7rem; display: flex; gap: .5rem; }
.ai-foot input { border-radius: 14px; }
.ai-foot button { border-radius: 14px; width: 46px; flex: 0 0 auto; }
.ai-mode { font-size: .68rem; text-align: center; color: var(--muted); padding-bottom: .5rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .blob, .orb, .orb-ring, .orb-chip { animation: none !important; } }


.site-nav .dropdown-item.active-child { background: rgba(20,184,166,.1); color: var(--primary); }

/* ==========================================================================
   Responsive layer - laptop, tablet, phone
   ========================================================================== */
img, video, iframe { max-width: 100%; }
.prose { overflow-wrap: anywhere; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose table td, .prose table th { border: 1px solid var(--line); padding: .45rem .7rem; }
.prose pre { white-space: pre-wrap; }
.brand-wrap { min-width: 0; flex: 1 1 0; overflow: hidden; margin-right: .5rem; }
.brand-text { min-width: 0; overflow: hidden; }
.brand-name, .brand-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-hint i { vertical-align: -1px; }
.sticky-lg { position: static; }
@media (min-width: 992px) { .sticky-lg { position: sticky; top: 100px; } }
.chip-row::-webkit-scrollbar { display: none; }

/* Collapsed (hamburger) navigation: below 992px */
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { max-height: calc(100vh - 130px); overflow-y: auto; border-top: 1px solid var(--line); margin-top: .6rem; }
  .site-nav .navbar-nav { gap: .15rem; }
  .site-nav .nav-link { padding: .7rem .9rem !important; font-size: .95rem; }
  .site-nav .nav-item.dropdown > div { gap: .5rem; }
  .site-nav .dropdown-menu { border: 0; box-shadow: none; background: rgba(20,184,166,.05); margin: .15rem 0 .4rem .9rem; min-width: 0; }
  .site-nav .dropdown-menu.show { animation: dropIn .18s ease-out; }
  .hero-visual { max-width: 340px; }
}

/* Tablet */
@media (max-width: 991.98px) {
  .section { padding: 3.75rem 0; }
  .hero { padding: 4.5rem 0 6rem; }
  .page-hero { padding: 3rem 0 2.75rem; }
  .content-card { border-radius: 18px; }
  .year-chip { position: static; }
  .cta { border-radius: 22px; text-align: left; }
}

/* Phone */
@media (max-width: 575.98px) {
  body { font-size: .95rem; }
  .announce { font-size: .76rem; padding: .45rem 0; }
  .site-nav .brand-logo { width: 42px; height: 42px; }
  .site-nav .brand-name { font-size: .92rem; }
  .site-nav .brand-sub { font-size: .66rem; }
  .icon-btn { width: 38px; height: 38px; border-radius: 10px; }
  .hero { padding: 3rem 0 5rem; }
  .hero .lead { font-size: 1rem; }
  .hero .btn-lg { width: 100%; justify-content: center; display: inline-flex; align-items: center; font-size: 1rem; }
  .hero-badge { font-size: .75rem; }
  .stats-wrap { margin-top: -3rem; }
  .stat-card { padding: 1rem .85rem; flex-direction: column; align-items: flex-start !important; gap: .6rem !important; }
  .stat-card .num { font-size: 1.6rem; }
  .stat-card .ic { width: 38px; height: 38px; font-size: 1.05rem; border-radius: 11px; }
  .stat-card .lbl { font-size: .78rem; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.55rem; }
  .card-smart { padding: 1.15rem; border-radius: 16px; }
  .card-smart:hover { transform: none; }
  .research-item .num { width: 32px; height: 32px; font-size: .8rem; }
  .avatar { width: 76px; height: 76px; font-size: 1.4rem; }
  .avatar.lg { width: 120px; height: 120px; font-size: 2.2rem; }
  .member-card h5 { font-size: .9rem; }
  .member-card .role { font-size: .75rem; }
  .page-hero { padding: 2.25rem 0 2rem; }
  .page-hero h1 { font-size: 1.65rem; }
  .content-card { padding: 1.25rem; }
  .prose { font-size: .97rem; line-height: 1.7; }
  .chip-row { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: .25rem; margin-right: -12px; scrollbar-width: none; }
  .chip-row .chip-filter { flex: 0 0 auto; white-space: nowrap; }
  .timeline-item { padding-left: 1rem; }
  .gallery-tile .cap { padding: 2rem .7rem .6rem; }
  .gallery-tile .cap h6 { font-size: .82rem; }
  .cta .btn-lg { width: 100%; }
  .site-footer { padding: 3rem 0 1.25rem; }
  .ai-fab { right: 14px; bottom: 14px; width: 54px; height: 54px; border-radius: 17px; font-size: 1.35rem; }
  .ai-panel { right: 8px; left: 8px; width: auto; bottom: 78px; height: calc(100vh - 100px); height: calc(100dvh - 100px); border-radius: 20px; }
  .ai-foot input { font-size: 16px; } /* prevents iOS zoom on focus */
  .form-control, .form-select { font-size: 16px; }
}

/* ---------- Logo (SVC emblem) & compact menu ---------- */
.site-nav .brand-logo { border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(190,148,56,.25); }
.site-footer .footer-logo { border-radius: 50%; padding: 3px; }
@media (min-width: 992px) {
  .site-nav .navbar-nav { gap: .25rem !important; }
  .site-nav .nav-link { padding: .55rem .95rem !important; }
  .site-nav .nav-item-cta { margin-left: .5rem; }
  .site-nav .nav-cta { background: var(--ai-grad); color: #fff !important; border-radius: 11px; box-shadow: 0 8px 20px -10px rgba(99,102,241,.8); }
  .site-nav .nav-cta:hover, .site-nav .nav-cta.active { background: var(--ai-grad); filter: brightness(1.07); color: #fff !important; }
  .site-nav .dropdown-menu { min-width: 220px; }
}
@media (max-width: 991.98px) {
  .site-nav .nav-item-cta { margin-top: .4rem; }
  .site-nav .nav-cta { background: var(--ai-grad); color: #fff !important; text-align: center; border-radius: 12px; }
}

/* Small laptops / tablet landscape: full menu, tighter spacing */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-nav .brand-sub { display: none; }
  .site-nav .brand-name { font-size: .95rem; }
  .site-nav .nav-link { padding: .5rem .6rem !important; font-size: .86rem; }
  .site-nav .nav-item-cta { margin-left: .25rem; }
}
@media (min-width: 992px) { .brand-wrap { flex: 0 1 auto; } }

.gallery-tile .placeholder-ic { align-items: flex-start; padding-top: 13%; font-size: 2.4rem; }
@media (max-width: 575.98px) { .gallery-tile .placeholder-ic { font-size: 1.7rem; padding-top: 10%; } .gallery-tile .cap small { display: none; } }


/* Portrait photos: keep the face in the round frame (faces sit in the upper part of portraits) */
img.avatar { object-fit: cover; object-position: 50% 18%; padding: 0; background: #fff; }


/* Member photos: rounded square (fits portrait faces better than a circle) */
.avatar { width: 120px; height: 120px; border-radius: 26px; outline: 2px solid rgba(20,184,166,.22); outline-offset: 3px; border: 0; }
.avatar.lg { width: 180px; height: 180px; border-radius: 34px; }
img.avatar { object-position: 50% 15%; }
@media (max-width: 575.98px) {
  .avatar { width: 92px; height: 92px; border-radius: 22px; }
  .avatar.lg { width: 140px; height: 140px; border-radius: 28px; }
}

.avatar.sm { width: 68px; height: 68px; border-radius: 16px; font-size: 1.2rem; outline-offset: 2px; }


/* ==========================================================================
   News & Notices
   ========================================================================== */
.new-flash {
  display: inline-flex; align-items: center; font-size: .62rem; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: linear-gradient(135deg, #f43f5e, #f97316); padding: .18rem .45rem; border-radius: 6px;
  margin-left: .4rem; vertical-align: middle; line-height: 1; position: relative; top: -1px;
  box-shadow: 0 0 0 0 rgba(244, 63, 94, .6); animation: newFlash 1.2s ease-in-out infinite;
}
@keyframes newFlash {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(244, 63, 94, .55); transform: scale(1); }
  50% { opacity: .55; box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .new-flash { animation: none; } }

.news-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow); }
.news-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.news-search { position: relative; flex: 1 1 320px; max-width: 520px; }
.news-search > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--primary); }
.news-search .form-control { padding-left: 2.6rem; padding-right: 2.4rem; border-radius: 14px; height: 48px; }
.news-search .news-spin { position: absolute; right: 1rem; top: 50%; margin-top: -.5rem; }
.news-year { width: auto; min-width: 140px; height: 48px; border-radius: 14px; }
.news-new-count { align-items: center; gap: .35rem; margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.news-new-count .new-flash { margin-left: 0; }
.news-reset { font-weight: 600; }

.news-table-wrap { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.news-table { --bs-table-bg: transparent; }
.news-table thead th {
  background: linear-gradient(135deg, #042f2e, #0b3b3a 45%, #1e1b4b); color: #e2e8f0; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: .95rem .9rem; border: 0; white-space: nowrap;
}
.news-table tbody td { padding: .95rem .9rem; border-color: #eef2f6; vertical-align: middle; }
.news-table tbody tr { transition: background .15s; }
.news-table tbody tr:nth-child(even) { background: #fafcfd; }
.news-table tbody tr:hover { background: rgba(20, 184, 166, .06); }
.news-table tbody tr.is-pinned { background: rgba(244, 63, 94, .035); }
.news-table .td-sno { font-weight: 700; color: var(--muted); }
.date-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 66px; padding: .4rem .5rem; border-radius: 12px; background: rgba(20, 184, 166, .08); border: 1px solid rgba(20, 184, 166, .18); line-height: 1.1; }
.date-chip .d { font-family: "Space Grotesk"; font-weight: 700; font-size: 1.25rem; color: var(--primary); }
.date-chip .my { font-size: .7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.news-title { font-weight: 600; color: var(--ink); line-height: 1.45; }
.news-title a { color: var(--ink); }
.news-title a:hover { color: var(--primary); }
.news-desc { font-size: .84rem; color: var(--muted); margin-top: .3rem; line-height: 1.5; }
.news-table mark { background: rgba(250, 204, 21, .45); padding: 0 .1rem; border-radius: 3px; color: inherit; }
.tag.violet { background: rgba(139, 92, 246, .12); color: #6d28d9; } .tag.amber { background: rgba(245, 158, 11, .14); color: #b45309; }
.tag.rose { background: rgba(244, 63, 94, .12); color: #be123c; } .tag.sky { background: rgba(14, 165, 233, .12); color: #0369a1; }
.tag.indigo { background: rgba(99, 102, 241, .12); color: #4338ca; }
.btn-download { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .8rem; border-radius: 12px; font-weight: 700; font-size: .84rem; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: all .2s; text-align: left; }
.btn-download i { font-size: 1.35rem; }
.btn-download small { display: block; font-size: .66rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.btn-download.pdf i { color: #e11d48; } .btn-download.img i { color: var(--indigo); } .btn-download.link i { color: var(--primary); }
.btn-download:hover { background: var(--ai-grad); color: #fff; border-color: transparent; transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(99, 102, 241, .8); }
.btn-download:hover i, .btn-download:hover small { color: #fff; }
.news-pagination .pagination { flex-wrap: wrap; justify-content: center; gap: .3rem; }
.news-pagination .page-link { border-radius: 10px !important; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; min-width: 40px; text-align: center; }
.news-pagination .page-item.active .page-link { background: var(--ai-grad); border-color: transparent; color: #fff; }
.news-pagination nav .d-sm-flex > div:first-child { display: none; }

/* Home page widget */
.news-home { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.news-home-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(20,184,166,.07), rgba(99,102,241,.06)); }
.nh-ic { width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: var(--ai-grad); color: #fff; font-size: 1.15rem; }
.news-home-list { list-style: none; margin: 0; padding: .35rem 1.4rem; }
.news-home-list li { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px dashed var(--line); }
.news-home-list li:last-child { border-bottom: 0; }
.nh-date { flex: 0 0 auto; font-size: .74rem; font-weight: 700; color: var(--primary); background: rgba(20,184,166,.08); padding: .3rem .6rem; border-radius: 8px; white-space: nowrap; }
.nh-title { flex: 1 1 auto; font-weight: 600; color: var(--ink); }
.nh-title:hover { color: var(--primary); }
.nh-file { flex: 0 0 auto; font-size: .74rem; font-weight: 700; color: var(--muted); }

/* Tablet: hide the description column details a little tighter */
@media (max-width: 991.98px) {
  .news-table thead th, .news-table tbody td { padding: .8rem .65rem; }
  .news-new-count { margin-left: 0; }
}
/* Tablet & phone: each notice becomes a card */
@media (max-width: 991.98px) {
  .news-search { flex-basis: 100%; max-width: 100%; }
  .news-year { flex: 1 1 100%; }
  .news-table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .news-table thead { display: none; }
  .news-table, .news-table tbody, .news-table tr, .news-table td { display: block; width: 100%; }
  .news-table tbody tr { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: .95rem 1rem .95rem 6.4rem; margin-bottom: .85rem; background: #fff !important; box-shadow: 0 6px 18px -14px rgba(15,23,42,.45); min-height: 92px; }
  .news-table tbody tr.is-pinned { border-color: rgba(244,63,94,.35); }
  .news-table tbody td { padding: 0 !important; border: 0; text-align: left !important; }
  .news-table .td-sno { display: none; }
  .news-table .td-date { position: absolute; left: .9rem; top: .9rem; width: auto; }
  .news-table .td-title { margin-bottom: .5rem; }
  .news-table td[data-label="Category"] { display: inline-block; width: auto; margin-right: .5rem; vertical-align: middle; }
  .news-table .td-dl { display: inline-block; width: auto; vertical-align: middle; }
  .news-table .td-dl > .text-muted { display: none; }
  .btn-download { padding: .35rem .65rem; font-size: .8rem; }
  .btn-download i { font-size: 1.1rem; }
  .news-home-head { padding: 1rem; }
  .news-home-list { padding: .25rem 1rem; }
  .news-home-list li { flex-wrap: wrap; gap: .4rem .75rem; }
  .nh-title { flex-basis: 100%; order: 2; }
  .nh-file { order: 1; }
}

@media (min-width: 576px) and (max-width: 991.98px) { .news-search { flex-basis: 320px; max-width: none; } .news-year { flex: 0 0 auto; } .news-table tbody tr { padding-left: 7rem; } .news-table .td-date { left: 1.1rem; } }

.news-home-head .btn { white-space: nowrap; flex: 0 0 auto; }


/* ---------- Logo "breathe" on hover ---------- */
.site-nav .brand-logo, .site-footer .footer-logo { transition: transform .35s ease, box-shadow .35s ease; will-change: transform; }
.brand-wrap:hover .brand-logo, .brand-wrap:focus-visible .brand-logo { animation: logoBreathe 2s ease-in-out infinite; }
.site-footer .footer-logo:hover { animation: logoBreathe 2s ease-in-out infinite; }
.brand-wrap .brand-name { transition: color .3s ease; }
.brand-wrap:hover .brand-name { color: var(--primary); }
@keyframes logoBreathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px rgba(190,148,56,.25), 0 0 0 0 rgba(190,148,56,0); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 2px rgba(190,148,56,.45), 0 0 18px 6px rgba(190,148,56,.35); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-wrap:hover .brand-logo, .site-footer .footer-logo:hover { animation: none; transform: scale(1.06); }
}

/* ---------- Brand (logo + name) hover: lifts & glows like the "Explore Research" button ---------- */
.site-nav .brand-wrap { padding: .3rem .7rem .3rem .3rem; margin-left: -.3rem; border-radius: 16px; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.site-nav .brand-wrap:hover, .site-nav .brand-wrap:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(#fff, #fff) padding-box, var(--ai-grad) border-box;
  border-color: transparent;
  box-shadow: 0 14px 30px -10px rgba(99, 102, 241, .55);
}
.site-nav .brand-wrap:active { transform: translateY(0); box-shadow: 0 6px 16px -8px rgba(99, 102, 241, .6); }
/* replace the earlier "breathe" with a calm emblem zoom inside the lifting block */
.site-nav .brand-wrap:hover .brand-logo, .site-nav .brand-wrap:focus-visible .brand-logo { animation: none; transform: scale(1.06); box-shadow: 0 0 0 2px rgba(190,148,56,.45); }
.site-nav .brand-wrap:hover .brand-name { background: var(--ai-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-footer .footer-logo:hover { animation: none; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(99, 102, 241, .7); }
@media (prefers-reduced-motion: reduce) { .site-nav .brand-wrap:hover { transform: none; } }

/* ---------- Latest News & Notices: each notice lifts up with a soft glow on hover ---------- */
.news-home-list { padding: .6rem .9rem .9rem; }
.news-home-list li {
  margin: .35rem 0; padding: .8rem .9rem; border-radius: 14px;
  border: 1px solid transparent; border-bottom: 1px dashed var(--line);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.news-home-list li:last-child { border-bottom: 1px solid transparent; }
.news-home-list li:hover, .news-home-list li:focus-within {
  transform: translateY(-3px);
  background: linear-gradient(#fff, #fff) padding-box, var(--ai-grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 14px 30px -12px rgba(99, 102, 241, .5), 0 4px 14px -8px rgba(20, 184, 166, .35);
  position: relative; z-index: 1;
}
.news-home-list li:hover .nh-title { color: var(--primary); }
.news-home-list li:hover .nh-date { background: var(--ai-grad); color: #fff; }
.news-home-list li .nh-date { transition: background .2s ease, color .2s ease; }
@media (prefers-reduced-motion: reduce) { .news-home-list li:hover { transform: none; } }
@media (max-width: 991.98px) { .news-home-list { padding: .4rem .6rem .7rem; } .news-home-list li { padding: .75rem .7rem; } }

/* ==========================================================================
   Member profile page (colourful academic profile)
   ========================================================================== */
.c-teal   { --c1: #14b8a6; --c2: #0f766e; --soft: rgba(20,184,166,.10); --ring: rgba(20,184,166,.28); }
.c-indigo { --c1: #818cf8; --c2: #4f46e5; --soft: rgba(99,102,241,.10); --ring: rgba(99,102,241,.28); }
.c-amber  { --c1: #fbbf24; --c2: #d97706; --soft: rgba(245,158,11,.11); --ring: rgba(245,158,11,.3); }
.c-violet { --c1: #c084fc; --c2: #7c3aed; --soft: rgba(139,92,246,.10); --ring: rgba(139,92,246,.28); }
.c-sky    { --c1: #38bdf8; --c2: #0284c7; --soft: rgba(14,165,233,.10); --ring: rgba(14,165,233,.28); }
.c-rose   { --c1: #fb7185; --c2: #e11d48; --soft: rgba(244,63,94,.10); --ring: rgba(244,63,94,.28); }

.pf-hero { position: relative; overflow: hidden; color: #cbd5e1; padding: 3rem 0 6.5rem;
  background: radial-gradient(120% 120% at 0% 0%, #0d9488 0%, transparent 45%), radial-gradient(120% 120% at 100% 0%, #7c3aed 0%, transparent 45%), linear-gradient(135deg, #042f2e, #1e1b4b 60%, #3b0764); }
.pf-hero .breadcrumb-item, .pf-hero .breadcrumb-item a { color: #a5b4fc; font-size: .85rem; }
.pf-hero .breadcrumb-item.active { color: #e2e8f0; }
.pf-hero .breadcrumb-item + .breadcrumb-item::before { color: #64748b; }
.pf-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .4; animation: float 16s ease-in-out infinite; }
.pf-blob.b1 { width: 340px; height: 340px; background: #f59e0b; bottom: -160px; left: 30%; opacity: .22; }
.pf-blob.b2 { width: 300px; height: 300px; background: #ec4899; top: -120px; right: 10%; opacity: .25; animation-delay: -6s; }
.pf-blob.b3 { width: 260px; height: 260px; background: #14b8a6; top: 30%; left: -80px; opacity: .3; animation-delay: -10s; }
.pf-photo-ring { display: inline-block; padding: 6px; border-radius: 38px; background: conic-gradient(from 210deg, #14b8a6, #6366f1, #a855f7, #f59e0b, #14b8a6); box-shadow: 0 25px 60px -20px rgba(0,0,0,.6); }
.pf-photo { width: 210px; height: 210px; border-radius: 32px; object-fit: cover; object-position: 50% 15%; display: block; background: #fff; border: 4px solid #fff; }
.pf-initials { display: flex; align-items: center; justify-content: center; font-family: "Space Grotesk"; font-weight: 700; font-size: 4rem; color: #fff; background: var(--ai-grad); }
.pf-role-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fde68a; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); padding: .35rem .8rem; border-radius: 999px; }
.pf-name { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; margin: .7rem 0 .4rem; }
.pf-designation { font-size: 1.12rem; color: #e2e8f0; margin-bottom: .3rem; font-weight: 500; }
.pf-inst { color: #a5b4fc; margin-bottom: 1.2rem; }
.pf-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.pf-link { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 12px; background: rgba(255,255,255,.95); color: #0f172a; font-weight: 600; font-size: .84rem; transition: transform .2s, box-shadow .2s; }
.pf-link i { color: var(--brand, #0f766e); font-size: 1.05rem; }
.pf-link:hover { transform: translateY(-2px); color: #0f172a; box-shadow: 0 12px 26px -12px var(--brand, #6366f1); }
.pf-link-cv { background: var(--ai-grad); color: #fff; } .pf-link-cv i { color: #fff; } .pf-link-cv:hover { color: #fff; }

.pf-stats-wrap { margin-top: -4rem; position: relative; z-index: 2; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; }
.pf-stat { background: #fff; border-radius: 18px; padding: 1.1rem 1rem; box-shadow: 0 16px 40px -20px rgba(15,23,42,.35); border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .8rem; align-items: center; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.pf-stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.pf-stat:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -18px var(--ring); }
.pf-stat-ic { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.pf-stat-n { font-family: "Space Grotesk"; font-size: 1.8rem; font-weight: 700; color: var(--c2); line-height: 1; }
.pf-stat-l { font-size: .78rem; color: var(--muted); font-weight: 600; }

.pf-nav { position: sticky; top: 76px; z-index: 1020; margin-top: 1.5rem; background: rgba(245,249,248,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pf-nav-inner { display: flex; gap: .45rem; overflow-x: auto; padding: .7rem 0; scrollbar-width: none; }
.pf-nav-inner::-webkit-scrollbar { display: none; }
.pf-nav-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; font-weight: 600; font-size: .84rem; color: var(--c2); background: var(--soft); border: 1px solid transparent; transition: all .2s; white-space: nowrap; }
.pf-nav-link span { background: #fff; color: var(--c2); border-radius: 999px; padding: 0 .45rem; font-size: .72rem; }
.pf-nav-link:hover { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; }
.pf-body { padding-top: 1.5rem; padding-bottom: 4rem; }
.pf-section { scroll-margin-top: 140px; margin-bottom: 1.8rem; }

.pf-card { background: #fff; border-radius: 22px; border: 1px solid var(--line); padding: clamp(1.15rem, 3vw, 1.8rem); box-shadow: 0 14px 40px -26px rgba(15,23,42,.35); position: relative; overflow: hidden; }
.pf-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--c1), var(--c2)); }
.pf-card-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.pf-card-head h2 { font-size: 1.22rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: .5rem; }
.pf-card-ic { width: 44px; height: 44px; border-radius: 14px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 22px -12px var(--c2); }
.pf-count { font-size: .78rem; font-weight: 700; color: var(--c2); background: var(--soft); padding: .15rem .6rem; border-radius: 999px; }
.pf-text { color: var(--ink-2); line-height: 1.7; }
.pf-edu { list-style: none; padding: 0; margin: 0; position: relative; }
.pf-edu li { position: relative; padding: 0 0 .9rem 1.6rem; color: var(--ink); font-weight: 500; }
.pf-edu li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--c2); }
.pf-edu li::after { content: ""; position: absolute; left: 5px; top: 1.15rem; bottom: .1rem; width: 2px; background: var(--ring); }
.pf-edu li:last-child { padding-bottom: 0; } .pf-edu li:last-child::after { display: none; }
.pf-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.pf-chip { padding: .45rem .85rem; border-radius: 12px; background: var(--soft); color: var(--c2); font-weight: 600; font-size: .86rem; border: 1px solid var(--ring); }

.pf-filter { position: relative; min-width: 240px; }
.pf-filter i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--c2); }
.pf-filter .form-control { padding: .5rem .8rem .5rem 2.2rem; border-radius: 12px; font-size: .88rem; }
.pf-items { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.pf-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem .9rem; border-radius: 16px; border: 1px solid transparent; transition: background .2s, transform .2s, box-shadow .2s, border-color .2s; }
.pf-item + .pf-item { border-top-color: #f1f5f9; }
.pf-item:hover { background: linear-gradient(90deg, var(--soft), rgba(255,255,255,0)); border-color: var(--ring); transform: translateX(3px); }
.pf-item.is-highlight { background: var(--soft); border-color: var(--ring); }
.pf-num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-family: "Space Grotesk"; font-weight: 700; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.pf-item-body { flex: 1 1 auto; min-width: 0; }
.pf-item-title { font-weight: 600; color: var(--ink); line-height: 1.5; }
.pf-item-authors { font-size: .86rem; color: var(--muted); margin-top: .25rem; line-height: 1.5; overflow-wrap: anywhere; }
.pf-item-authors .me-hl { color: var(--c2); font-weight: 700; }
.pf-item-venue { font-size: .86rem; color: var(--ink-2); margin-top: .25rem; display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; }
.pf-item-venue em { color: var(--c2); font-style: italic; font-weight: 500; }
.pf-item-venue .sep { color: #cbd5e1; }
.pf-amount { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; font-size: .8rem; color: #065f46; background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.25); padding: .15rem .55rem; border-radius: 8px; }
.pf-item-actions { display: flex; gap: .5rem; margin-top: .5rem; }
.pf-item-actions a { font-size: .78rem; font-weight: 700; color: var(--c2); background: var(--soft); padding: .25rem .6rem; border-radius: 8px; }
.pf-item-actions a:hover { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; }
.pf-year { flex: 0 0 auto; font-family: "Space Grotesk"; font-weight: 700; font-size: .82rem; color: var(--c2); background: var(--soft); border: 1px solid var(--ring); padding: .3rem .65rem; border-radius: 10px; white-space: nowrap; }
.pf-empty { text-align: center; color: var(--muted); padding: 1.5rem; }
.pf-toggle { border: 0; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); padding: .6rem 1.4rem; border-radius: 12px; box-shadow: 0 10px 24px -12px var(--c2); transition: transform .2s; }
.pf-toggle:hover { transform: translateY(-2px); }

@media (max-width: 991.98px) { .pf-nav { top: 66px; } }
@media (max-width: 767.98px) {
  .pf-hero { padding: 2rem 0 5.5rem; text-align: center; }
  .pf-links { justify-content: center; }
  .pf-photo { width: 170px; height: 170px; border-radius: 28px; }
  .pf-stats { grid-template-columns: repeat(2, 1fr); }
  .pf-filter { min-width: 0; flex: 1 1 100%; margin-left: 0 !important; }
}
@media (max-width: 575.98px) {
  .pf-link span { display: none; }
  .pf-link { padding: .55rem .7rem; }
  .pf-link-cv span { display: inline; }
  .pf-stat { padding: .9rem .8rem; column-gap: .6rem; }
  .pf-stat-ic { width: 40px; height: 40px; font-size: 1.1rem; border-radius: 12px; }
  .pf-stat-n { font-size: 1.45rem; }
  .pf-item { gap: .7rem; padding: .85rem .4rem; flex-wrap: wrap; }
  .pf-item:hover { transform: none; }
  .pf-num { width: 28px; height: 28px; font-size: .75rem; border-radius: 9px; }
  .pf-item-body { flex-basis: calc(100% - 40px); }
  .pf-year { margin-left: 38px; }
  .pf-card-head h2 { font-size: 1.05rem; }
}

/* Profile section tabs: never cut off */
@media (min-width: 768px) {
  .pf-nav-inner { flex-wrap: wrap; justify-content: center; overflow: visible; row-gap: .5rem; }
}
@media (max-width: 767.98px) {
  .pf-nav-inner { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%); padding-left: 6px; padding-right: 28px; scroll-snap-type: x proximity; }
  .pf-nav-link { scroll-snap-align: start; }
}

/* Profile stats: balanced grid at every width */
.pf-stats { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1199.98px) { .pf-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .pf-stats { grid-template-columns: repeat(2, 1fr); } }


/* ==========================================================================
   Home: "About the API Lab" (colourful)
   ========================================================================== */
.about-home { position: relative; overflow: hidden; background:
  radial-gradient(60% 70% at 100% 0%, rgba(168,85,247,.10), transparent 60%),
  radial-gradient(50% 60% at 0% 100%, rgba(20,184,166,.12), transparent 60%),
  linear-gradient(180deg, #f5f9f8, #f8f7ff); }
.ah-blob { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; animation: float 18s ease-in-out infinite; }
.ah-blob.b1 { width: 280px; height: 280px; background: rgba(20,184,166,.22); top: 6%; left: -90px; }
.ah-blob.b2 { width: 320px; height: 320px; background: rgba(168,85,247,.18); top: -80px; right: 8%; animation-delay: -6s; }
.ah-blob.b3 { width: 240px; height: 240px; background: rgba(245,158,11,.16); bottom: -60px; right: 35%; animation-delay: -11s; }
.ah-title { font-size: clamp(2rem, 4vw, 2.9rem); }
.ah-lead { font-size: 1.08rem; line-height: 1.75; color: var(--ink-2); margin-bottom: 1.6rem; }

.ah-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.ah-fact { display: flex; align-items: center; gap: .65rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .75rem .8rem; box-shadow: 0 10px 26px -18px rgba(15,23,42,.35); position: relative; overflow: hidden; }
.ah-fact::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.ah-fact > i { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.05rem; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.ah-fact strong { display: block; font-family: "Space Grotesk"; font-size: 1.35rem; line-height: 1; color: var(--c2); }
.ah-fact span { font-size: .72rem; color: var(--muted); font-weight: 600; }
.ah-partners { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1rem; }
.ah-partners-l { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-right: .2rem; }
.ah-partner { font-size: .78rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }

.ah-card { position: relative; height: 100%; background: #fff; border-radius: 22px; padding: 1.6rem 1.5rem 1.4rem; border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 16px 40px -26px rgba(15,23,42,.4); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.ah-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.ah-card::after { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; right: -60px; bottom: -70px; background: radial-gradient(circle, var(--soft) 0%, transparent 70%); transform: scale(1); transition: transform .4s ease; }
.ah-card:hover { transform: translateY(-6px); border-color: var(--ring); box-shadow: 0 26px 50px -24px var(--c2); }
.ah-card:hover::after { transform: scale(1.6); }
.ah-num { position: absolute; top: .9rem; right: 1.2rem; font-family: "Space Grotesk"; font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--soft); -webkit-text-stroke: 1.5px var(--ring); }
.ah-ic { width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 14px 26px -12px var(--c2); margin-bottom: 1.1rem; transition: transform .3s ease; }
.ah-card:hover .ah-ic { transform: rotate(-8deg) scale(1.06); }
.ah-card-title { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: .45rem; }
.ah-card-text { font-size: .92rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; position: relative; z-index: 1; }
.ah-tags { display: flex; flex-wrap: wrap; gap: .4rem; position: relative; z-index: 1; }
.ah-tags span { font-size: .72rem; font-weight: 700; color: var(--c2); background: var(--soft); border: 1px solid var(--ring); padding: .2rem .6rem; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) { .ah-card:hover, .ah-card:hover .ah-ic { transform: none; } }
@media (max-width: 575.98px) {
  .ah-facts { grid-template-columns: 1fr 1fr 1fr; gap: .45rem; }
  .ah-fact { flex-direction: column; align-items: flex-start; padding: .65rem; gap: .45rem; }
  .ah-fact strong { font-size: 1.15rem; }
  .ah-card { padding: 1.3rem 1.2rem 1.15rem; }
  .ah-num { font-size: 2rem; }
}

/* ==========================================================================
   Home: "Our Recent Research" (colourful cards)
   ========================================================================== */
.research-home { position: relative; overflow: hidden; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rh-blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.rh-blob.b1 { width: 360px; height: 360px; background: rgba(99,102,241,.10); top: -120px; left: -100px; }
.rh-blob.b2 { width: 320px; height: 320px; background: rgba(245,158,11,.10); bottom: -140px; right: -60px; }
.rs-card { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; padding: 1.4rem 1.4rem 1.2rem;
  background: linear-gradient(160deg, var(--soft) 0%, #fff 45%); border: 1px solid var(--ring);
  box-shadow: 0 16px 40px -28px rgba(15,23,42,.4); transition: transform .3s ease, box-shadow .3s ease; }
.rs-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.rs-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -24px var(--c2); }
.rs-watermark { position: absolute; right: -14px; bottom: -22px; font-size: 7.5rem; line-height: 1; color: var(--c2); opacity: .07; transform: rotate(-12deg); transition: transform .4s ease, opacity .4s ease; pointer-events: none; }
.rs-card:hover .rs-watermark { transform: rotate(0deg) scale(1.08); opacity: .12; }
.rs-top { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.rs-num { width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-family: "Space Grotesk"; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 22px -10px var(--c2); }
.rs-year { font-size: .78rem; font-weight: 700; color: var(--c2); background: #fff; border: 1px solid var(--ring); padding: .25rem .65rem; border-radius: 999px; }
.rs-featured { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #f59e0b; background: rgba(245,158,11,.12); font-size: .85rem; }
.rs-title { font-size: 1.04rem; font-weight: 700; line-height: 1.45; color: var(--ink); margin-bottom: .55rem; position: relative; z-index: 1; }
.rs-authors { font-size: .82rem; color: var(--muted); line-height: 1.5; margin-bottom: 1rem; position: relative; z-index: 1; }
.rs-authors strong { color: var(--c2); }
.rs-foot { margin-top: auto; display: flex; align-items: center; gap: .6rem; padding-top: .9rem; border-top: 1px dashed var(--ring); position: relative; z-index: 1; }
.rs-journal { flex: 1 1 auto; min-width: 0; font-size: .8rem; font-weight: 600; font-style: italic; color: var(--c2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-journal i { font-style: normal; margin-right: .2rem; }
.rs-read { flex: 0 0 auto; font-size: .78rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); padding: .35rem .8rem; border-radius: 10px; }
.rs-read:hover { color: #fff; filter: brightness(1.08); }
@media (prefers-reduced-motion: reduce) { .rs-card:hover { transform: none; } }
@media (max-width: 575.98px) { .rs-card { padding: 1.2rem 1.15rem 1.05rem; } .rs-title { font-size: .98rem; } .research-home .btn-ai { width: 100%; } }

.text-purple { color: #7c3aed !important; }


/* ==========================================================================
   Home: "Equipment & Facilities" (colourful)
   ========================================================================== */
.facilities-home { position: relative; overflow: hidden; background: linear-gradient(180deg, #f5f9f8 0%, #f1f7ff 100%); }
.fx-dots { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(99,102,241,.18) 1px, transparent 1.4px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 70%); }

.fx-card { position: relative; height: 100%; overflow: hidden; background: #fff; border-radius: 22px; padding: 1.4rem 1.3rem 1.3rem;
  border: 1px solid var(--line); box-shadow: 0 14px 34px -24px rgba(15,23,42,.45); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.fx-card::before { content: ""; position: absolute; left: 1.3rem; right: 1.3rem; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: linear-gradient(90deg, var(--c1), var(--c2)); transform: scaleX(.35); transform-origin: left; transition: transform .35s ease; }
.fx-card:hover { transform: translateY(-6px); border-color: var(--ring); box-shadow: 0 24px 46px -22px var(--c2); }
.fx-card:hover::before { transform: scaleX(1); }
.fx-glow { position: absolute; width: 160px; height: 160px; border-radius: 50%; top: -70px; right: -60px; background: radial-gradient(circle, var(--soft) 0%, transparent 70%); transition: transform .4s ease; pointer-events: none; }
.fx-card:hover .fx-glow { transform: scale(1.7); }
.fx-ic { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 17px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.55rem; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 12px 24px -12px var(--c2); margin-bottom: 1rem; transition: transform .3s ease; }
.fx-card:hover .fx-ic { transform: translateY(-2px) rotate(-6deg); }
.fx-photo { position: relative; margin: -1.4rem -1.3rem 1rem; aspect-ratio: 16/10; overflow: hidden; background: var(--soft); }
.fx-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.fx-card:hover .fx-photo img { transform: scale(1.06); }
.fx-ic-float { position: absolute; left: 1rem; bottom: -22px; margin: 0; width: 46px; height: 46px; font-size: 1.2rem; border: 3px solid #fff; }
.fx-photo + .fx-kind { margin-top: .8rem; }
.fx-kind { position: relative; z-index: 1; display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c2); background: var(--soft); padding: .2rem .55rem; border-radius: 999px; margin-bottom: .55rem; }
.fx-title { position: relative; z-index: 1; font-size: 1.02rem; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: .4rem; }
.fx-text { position: relative; z-index: 1; font-size: .85rem; color: var(--muted); line-height: 1.55; margin: 0; }

.fx-feature { position: relative; height: 100%; min-height: 230px; overflow: hidden; border-radius: 24px; padding: 1.8rem; display: flex; align-items: center; gap: 1.4rem; color: #cbd5e1;
  background: radial-gradient(120% 140% at 0% 0%, rgba(20,184,166,.55), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(168,85,247,.55), transparent 55%), linear-gradient(135deg, #042f2e, #1e1b4b);
  box-shadow: 0 24px 50px -24px rgba(30,27,75,.7); transition: transform .3s ease, box-shadow .3s ease; }
.fx-feature:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(99,102,241,.75); }
.fx-feature-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: luminosity; }
.fx-feature-ic { position: relative; flex: 0 0 auto; width: 84px; height: 84px; border-radius: 24px; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); animation: float 9s ease-in-out infinite; }
.fx-feature-body { position: relative; }
.fx-feature-kind { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fde68a; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: .25rem .7rem; border-radius: 999px; margin-bottom: .7rem; }
.fx-feature h3 { color: #fff; font-size: 1.35rem; font-weight: 700; margin-bottom: .45rem; }
.fx-feature p { margin: 0; font-size: .92rem; line-height: 1.6; color: #cbd5e1; }

@media (prefers-reduced-motion: reduce) { .fx-card:hover, .fx-feature:hover, .fx-card:hover .fx-ic { transform: none; } .fx-feature-ic { animation: none; } }
@media (max-width: 575.98px) {
  .fx-card { padding: 1.1rem 1rem 1.05rem; border-radius: 18px; }
  .fx-ic { width: 46px; height: 46px; font-size: 1.25rem; border-radius: 14px; margin-bottom: .75rem; }
  .fx-title { font-size: .9rem; }
  .fx-text { font-size: .78rem; }
  .fx-photo { margin: -1.1rem -1rem .9rem; }
  .fx-feature { flex-direction: column; align-items: flex-start; padding: 1.4rem; min-height: 0; }
  .fx-feature-ic { width: 64px; height: 64px; font-size: 1.8rem; border-radius: 18px; }
}

/* ==========================================================================
   Photo gallery: year-wise carousels + lightbox
   ========================================================================== */
.gx-toolbar { position: sticky; top: 76px; z-index: 20; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; justify-content: space-between;
  background: rgba(245,249,248,.9); backdrop-filter: blur(10px); padding: .75rem 0; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.gx-years, .gx-filter { display: flex; gap: .45rem; flex-wrap: wrap; }
.gx-year-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; font-weight: 700; font-size: .86rem; color: #fff; background: var(--ai-grad); box-shadow: 0 8px 18px -10px rgba(99,102,241,.8); transition: transform .2s; }
.gx-year-pill:hover { transform: translateY(-2px); color: #fff; }
.gx-year-pill span { background: rgba(255,255,255,.25); border-radius: 999px; padding: 0 .45rem; font-size: .72rem; }
.gx-year-block { scroll-margin-top: 150px; margin-bottom: 3rem; }
.gx-year-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.gx-year-num { font-family: "Space Grotesk"; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; background: var(--ai-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gx-year-meta { display: flex; flex-direction: column; line-height: 1.3; }
.gx-year-count { font-weight: 700; color: var(--ink); }
.gx-year-cats { font-size: .78rem; color: var(--muted); }
.gx-year-line { flex: 1 1 auto; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(99,102,241,.35), transparent); }
.gx-empty { color: var(--muted); padding: 1.2rem; text-align: center; border: 1px dashed var(--line); border-radius: 16px; }

.gx-carousel { position: relative; --gap: 1rem; --per: 4; }
.gx-track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .4rem .2rem 1rem; scrollbar-width: none; outline: none; }
.gx-track::-webkit-scrollbar { display: none; }
.gx-slide { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; min-width: 0; }
.gx-tile { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 20px; overflow: hidden; cursor: zoom-in; text-align: left;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 16px 34px -22px rgba(15,23,42,.6); transition: transform .3s ease, box-shadow .3s ease; }
.gx-tile.no-img { cursor: default; }
.gx-tile:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -20px var(--c2); }
.gx-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gx-tile:hover img { transform: scale(1.08); }
.gx-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,0) 40%, rgba(2,6,23,.82) 100%); pointer-events: none; }
.gx-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 2.5rem; font-size: 3.2rem; color: rgba(255,255,255,.85);
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 50%); }
.gx-badges { position: absolute; top: .75rem; left: .75rem; right: .75rem; z-index: 2; display: flex; gap: .35rem; flex-wrap: wrap; }
.gx-cat, .gx-year { font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: .22rem .6rem; border-radius: 999px; backdrop-filter: blur(6px); }
.gx-cat { color: #fff; background: rgba(15,23,42,.45); border: 1px solid rgba(255,255,255,.25); }
.gx-year { color: var(--c2); background: rgba(255,255,255,.92); }
.gx-zoom { position: absolute; top: .7rem; right: .7rem; z-index: 2; width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); opacity: 0; transform: scale(.8); transition: all .25s ease; }
.gx-tile:hover .gx-zoom { opacity: 1; transform: scale(1); }
.gx-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: .9rem 1rem; color: #fff; display: flex; flex-direction: column; gap: .15rem; }
.gx-cap strong { font-size: .95rem; line-height: 1.3; }
.gx-cap small { font-size: .76rem; color: #cbd5e1; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.gx-nav { position: absolute; top: calc(50% - 1.6rem); transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px -12px rgba(15,23,42,.5); transition: all .2s; }
.gx-nav:hover:not(:disabled) { background: var(--ai-grad); color: #fff; border-color: transparent; }
.gx-nav:disabled { opacity: 0; pointer-events: none; }
.gx-prev { left: -18px; } .gx-next { right: -18px; }
.gx-static .gx-nav, .gx-static .gx-dots { display: none; }
.gx-dots { display: flex; justify-content: center; gap: .4rem; margin-top: .2rem; }
.gx-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: #cbd5e1; transition: all .25s ease; }
.gx-dots button.active { width: 28px; background: var(--ai-grad); }

@media (max-width: 1199.98px) { .gx-carousel { --per: 3; } }
@media (max-width: 991.98px) { .gx-carousel { --per: 2.3; } .gx-prev { left: -6px; } .gx-next { right: -6px; } .gx-toolbar { top: 66px; } }
@media (max-width: 575.98px) {
  .gx-carousel { --per: 1.25; --gap: .75rem; }
  .gx-nav { display: none; }
  .gx-toolbar { flex-direction: column; align-items: stretch; }
  .gx-years, .gx-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .gx-year-pill, .gx-filter .chip-filter { flex: 0 0 auto; white-space: nowrap; }
  .gx-year-line { display: none; }
}
@media (prefers-reduced-motion: reduce) { .gx-tile:hover, .gx-tile:hover img { transform: none; } .gx-track { scroll-behavior: auto; } }

/* Lightbox */
.gx-lightbox .modal-content { background: #020617; border: 0; border-radius: 22px; overflow: hidden; color: #e2e8f0; }
.gx-lb-close { position: absolute; top: .8rem; right: .8rem; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; color: #fff; background: rgba(255,255,255,.12); font-size: 1.1rem; }
.gx-lb-close:hover { background: #e11d48; }
.gx-lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 50vh; background: radial-gradient(circle at 50% 40%, #1e1b4b, #020617 70%); }
.gx-lb-img { max-width: 100%; max-height: 75vh; object-fit: contain; opacity: 0; transform: scale(.98); transition: opacity .3s ease, transform .3s ease; }
.gx-lb-img.in { opacity: 1; transform: none; }
.gx-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 0; color: #fff; background: rgba(255,255,255,.14); font-size: 1.3rem; backdrop-filter: blur(6px); }
.gx-lb-nav:hover { background: var(--ai-grad); }
.gx-lb-prev { left: 1rem; } .gx-lb-next { right: 1rem; }
.gx-lb-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 1rem 1.4rem 1.2rem; }
.gx-lb-meta { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5eead4; }
.gx-lb-title { color: #fff; font-size: 1.15rem; font-weight: 700; margin: .2rem 0 .25rem; }
.gx-lb-caption { color: #94a3b8; font-size: .9rem; }
.gx-lb-count { flex: 0 0 auto; font-family: "Space Grotesk"; font-weight: 700; color: #a5b4fc; }
@media (max-width: 767.98px) { .gx-lightbox .modal-content { border-radius: 0; } .gx-lb-stage { flex: 1 1 auto; } .gx-lb-nav { width: 42px; height: 42px; } }

/* ==========================================================================
   Search results page
   ========================================================================== */
.sr-form { position: relative; display: flex; gap: .6rem; }
.sr-form > i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 1.1rem; }
.sr-form .form-control { padding-left: 2.9rem; border-radius: 16px; height: 58px; }
.sr-form .btn { border-radius: 16px; }
.sr-types { display: flex; flex-wrap: wrap; gap: .45rem; }
.sr-types .chip-filter { display: inline-flex; align-items: center; gap: .35rem; }
.sr-count { font-size: .7rem; font-weight: 700; background: rgba(15,23,42,.08); border-radius: 999px; padding: .05rem .45rem; }
.chip-filter.active .sr-count { background: rgba(255,255,255,.25); }
.sr-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.2rem; margin-bottom: .75rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  box-shadow: 0 10px 28px -22px rgba(15,23,42,.45); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.sr-item:hover { transform: translateY(-3px); border-color: var(--ring); box-shadow: 0 18px 36px -20px var(--c2); color: var(--ink-2); }
.sr-ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.sr-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.sr-top { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.sr-type { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c2); background: var(--soft); padding: .15rem .55rem; border-radius: 999px; }
.sr-meta { font-size: .76rem; color: var(--muted); }
.sr-title { font-weight: 700; color: var(--ink); line-height: 1.45; }
.sr-snippet { font-size: .86rem; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.sr-item mark, .search-result mark { background: rgba(250,204,21,.45); color: inherit; padding: 0 .1rem; border-radius: 3px; }
.sr-arrow { align-self: center; color: #cbd5e1; transition: transform .2s, color .2s; }
.sr-item:hover .sr-arrow { color: var(--c2); transform: translateX(3px); }
.search-result .sr-res-ic { color: var(--primary); margin-right: .35rem; }
.search-result .sr-res-meta { font-size: .72rem; color: var(--muted); margin-left: .35rem; }
@media (max-width: 575.98px) { .sr-item { padding: .9rem; gap: .75rem; } .sr-ic { width: 38px; height: 38px; font-size: 1rem; border-radius: 11px; } .sr-arrow { display: none; } .sr-form .form-control { height: 50px; } }

#about, #research, #facilities, #latest-news, #team { scroll-margin-top: 70px; }


/* ---------- Footer visitor counter ---------- */
.vc-band { position: relative; padding: 1.5rem; border-radius: 22px; background: linear-gradient(135deg, rgba(20,184,166,.10), rgba(99,102,241,.10) 55%, rgba(168,85,247,.10)); overflow: hidden; }
.vc-band::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--ai-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; pointer-events: none; }
.vc-band::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,.28), transparent 70%); pointer-events: none; }
.vc-band h6 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; }
.vc-band small { color: #94a3b8; }
.vc-orb { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.45rem; color: #fff; background: var(--ai-grad); box-shadow: 0 10px 28px -8px rgba(99,102,241,.8); }
.vc-live { display: inline-flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5eead4; background: rgba(20,184,166,.14); border: 1px solid rgba(20,184,166,.35); padding: .15rem .55rem; border-radius: 999px; }
.vc-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 0 0 rgba(45,212,191,.7); animation: vcPulse 1.8s infinite; }
@keyframes vcPulse { 0% { box-shadow: 0 0 0 0 rgba(45,212,191,.7); } 70% { box-shadow: 0 0 0 8px rgba(45,212,191,0); } 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0); } }
.vc-tile { position: relative; z-index: 1; height: 100%; padding: 1rem 1rem .9rem; border-radius: 16px; background: rgba(15,23,42,.72); border: 1px solid rgba(148,163,184,.14); transition: transform .25s, box-shadow .25s, border-color .25s; }
.vc-tile:hover { transform: translateY(-4px); border-color: var(--vc-c); box-shadow: 0 14px 30px -14px var(--vc-c); }
.vc-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--vc-c); background: var(--vc-soft); margin-bottom: .6rem; }
.vc-num { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vc-label { font-size: .78rem; color: #94a3b8; margin-top: .2rem; }
.vc-teal { --vc-c: #2dd4bf; --vc-soft: rgba(45,212,191,.14); }
.vc-amber { --vc-c: #fbbf24; --vc-soft: rgba(251,191,36,.14); }
.vc-violet { --vc-c: #c084fc; --vc-soft: rgba(192,132,252,.14); }
.vc-sky { --vc-c: #38bdf8; --vc-soft: rgba(56,189,248,.14); }
@media (max-width: 575.98px) { .vc-band { padding: 1.1rem; } .vc-num { font-size: 1.3rem; } .vc-tile { padding: .8rem; } }
@media (prefers-reduced-motion: reduce) { .vc-live .dot { animation: none; } .vc-tile { transition: none; } .vc-tile:hover { transform: none; } }

/* ---------- Footer bottom row + developer credit ---------- */
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; }
.dev-credit { color: #94a3b8; }
.site-footer .dev-link { display: inline-flex; align-items: center; gap: .35rem; margin-left: .25rem; padding: .2rem .7rem; border-radius: 999px; font-weight: 600; color: #e2e8f0; background: rgba(255,255,255,.05); border: 1px solid rgba(148,163,184,.18); transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s; }
.site-footer .dev-link i { color: #f472b6; transition: color .25s; }
.site-footer a.dev-link:hover, .site-footer a.dev-link:focus-visible { color: #fff; background: var(--ai-grad); border-color: transparent; box-shadow: 0 8px 22px -10px rgba(99,102,241,.9); transform: translateY(-2px); }
.site-footer a.dev-link:hover i, .site-footer a.dev-link:focus-visible i { color: #fff; }
.vc-since { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #c4b5fd; background: rgba(139,92,246,.14); border: 1px solid rgba(139,92,246,.35); padding: .15rem .55rem; border-radius: 999px; }
@media (max-width: 767.98px) { .footer-bottom { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .site-footer a.dev-link:hover { transform: none; } }
