/* ==========================================================================
   Neuromorphic Bioelectronics Laboratory (NBL) — Design System
   Lead: Dr. Lokesh Kumar, Department of Physics, NIT Calicut
   Aesthetic: Luminescent Precision / Deep-Tech Semiconductor Physics
   ========================================================================== */

:root {
  /* Fonts */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;

  /* Dark Theme (Default) */
  --bg: #090b10;
  --bg-subtle: #0f131a;
  --bg-card: rgba(17, 22, 33, 0.75);
  --bg-card-hover: rgba(22, 29, 44, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: #38bdf8;
  --border-hover: rgba(56, 189, 248, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.2);
  --accent-emerald: #34d399;
  --accent-emerald-glow: rgba(52, 211, 153, 0.2);
  --accent-amber: #fbbf24;
  --accent-amber-glow: rgba(251, 191, 36, 0.2);

  --nav-bg: rgba(9, 11, 16, 0.85);
  --footer-bg: #06070a;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px var(--accent-cyan-glow);

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme */
html.light {
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-focus: #0284c7;
  --border-hover: rgba(2, 132, 199, 0.35);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --accent-cyan: #0284c7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.15);
  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.15);
  --accent-amber: #d97706;
  --accent-amber-glow: rgba(217, 119, 6, 0.15);

  --nav-bg: rgba(248, 250, 252, 0.88);
  --footer-bg: #e2e8f0;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px var(--accent-cyan-glow);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 15% 15%, var(--accent-cyan-glow) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, var(--accent-emerald-glow) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Subtle semiconductor circuit pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  opacity: 0.35;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-cyan);
  color: #000;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  z-index: 2000;
  transition: width 0.1s linear;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none !important;
}

.brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050b14;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-lab {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-affil {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none !important;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--border);
}

.nav-link[aria-current="page"] {
  color: var(--accent-cyan);
  background: var(--accent-cyan-glow);
  font-weight: 600;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--border);
  border-color: var(--text-muted);
}

.icon-dark { display: inline-block; }
.icon-light { display: none; }

html.light .icon-dark { display: none; }
html.light .icon-light { display: inline-block; }

.menu-toggle {
  display: none;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 4.5rem;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}

.mobile-menu a[aria-current="page"] {
  color: var(--accent-cyan);
  background: var(--accent-cyan-glow);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #050b14;
  box-shadow: 0 4px 14px var(--accent-cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-glow);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--accent-cyan-glow);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  letter-spacing: 0.02em;
}

.badge-emerald {
  background: var(--accent-emerald-glow);
  color: var(--accent-emerald);
  border-color: rgba(52, 211, 153, 0.3);
}

.badge-amber {
  background: var(--accent-amber-glow);
  color: var(--accent-amber);
  border-color: rgba(251, 191, 36, 0.3);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 4rem 0 3rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 1.25rem 0 1.25rem;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan), #34d399, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.portrait-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.portrait-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.portrait-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--border);
}

.portrait-info {
  padding: 1.25rem 1.5rem;
}

.pi-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pi-title {
  font-size: 0.875rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.pi-affil {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Metrics Counter Banner
   ========================================================================== */
.metrics-section {
  padding: 1.5rem 0 3.5rem;
}

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-md);
}

.metric-item {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  padding-right: 1rem;
}

.metric-item:last-child {
  border-right: none;
  padding-right: 0;
}

.metric-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.metric-num .accent {
  color: var(--accent-cyan);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Section Headers & Cards
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Card Styles */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ==========================================================================
   Research Thrusts
   ========================================================================== */
.thrust-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.thrust-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.thrust-media {
  position: relative;
  width: 100%;
  height: 220px;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.thrust-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.thrust-card:hover .thrust-media img {
  transform: scale(1.05);
}

.zoom-overlay {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(9, 11, 16, 0.85);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
}

.thrust-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.thrust-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.thrust-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.thrust-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ==========================================================================
   Cleanroom & Characterization Instrumentation
   ========================================================================== */
.instrument-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.instrument-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.instrument-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: var(--accent-cyan-glow);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.instrument-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.instrument-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 0.35rem;
}

.instrument-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   Publications & Patents
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  padding: 0.4rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  background: var(--border);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--accent-cyan);
  color: #050b14;
  border-color: var(--accent-cyan);
  font-weight: 600;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  width: 100%;
  max-width: 320px;
}

.search-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  width: 100%;
  outline: none;
}

.pub-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.pub-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.pub-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pub-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.pub-authors {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.pub-authors strong {
  color: var(--accent-cyan);
  font-weight: 600;
}

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.pub-journal {
  color: var(--text-primary);
  font-weight: 600;
}

.pub-if {
  background: var(--accent-emerald-glow);
  color: var(--accent-emerald);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none !important;
}

.pub-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-glow);
}

/* Patent Card */
.patent-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.patent-item:hover {
  border-color: var(--accent-amber);
  box-shadow: 0 0 20px var(--accent-amber-glow);
  transform: translateY(-2px);
}

.patent-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 0.5rem;
}

.patent-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.patent-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.patent-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ==========================================================================
   Prospective Students / Join Us Callout
   ========================================================================== */
.join-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(52, 211, 153, 0.05));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.join-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-cyan-glow), transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   Contact Section & Form
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-tile {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none !important;
  color: inherit;
  transition: var(--transition);
}

.contact-tile:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.contact-tile-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--accent-cyan-glow);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input, .form-textarea {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 380px;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Modal / Lightbox & Toast
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--border);
  transform: scale(1.1);
}

.modal-body {
  padding: 2rem;
}

.modal-img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #000;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.modal-caption {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1500;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-glow);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .portrait-card {
    max-width: 440px;
    margin: 0 auto;
  }
  .metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-item:nth-child(2) {
    border-right: none;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .metrics-bar {
    grid-template-columns: 1fr;
  }
  .metric-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
  }
  .metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .join-card {
    padding: 2rem 1.5rem;
  }
}

/* ==========================================================================
   Landing redesign additions
   ========================================================================== */
.hero { overflow: hidden; padding: 5rem 0 4rem; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.9; }
.hero > .container { position: relative; z-index: 1; }
.hero-wordmark { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 9vw, 7rem); letter-spacing: -0.04em; line-height: 0.95; margin: 0.9rem 0 0.4rem; }
.hero-wordmark span { display: block; font-size: clamp(1.05rem, 2.1vw, 1.55rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin-top: 0.8rem; color: var(--text-secondary); }
.hero-sub { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.06em; color: var(--accent-cyan); margin-bottom: 1.4rem; }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.pillar { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); transition: var(--transition); text-decoration: none !important; color: inherit; }
.pillar:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-cyan); letter-spacing: 0.1em; }
.pillar h3 { font-size: 1.12rem; line-height: 1.3; }
.pillar p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.pillar-ic { font-size: 1.9rem; }
.experience-card { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; padding: 2.5rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(56,189,248,0.1), rgba(167,139,250,0.08)); border: 1px solid rgba(56,189,248,0.28); }
.exp-visual { position: relative; height: 220px; border-radius: var(--radius-md); border: 1px solid var(--border); background: #05070b; overflow: hidden; }
.exp-visual canvas { width: 100%; height: 100%; display: block; }
.ticker { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
@media (max-width: 960px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-card { grid-template-columns: 1fr; padding: 1.75rem; }
}
@media (max-width: 560px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---- embedded as the closing chapter of the film home page ---- */
html.embed .site-header,
html.embed .mobile-menu,
html.embed .skip-link,
html.embed .scroll-progress,
html.embed .back-to-top,
html.embed .embed-hide { display: none !important; }
html.embed body { min-height: 0; }
html.embed, html.embed body { overflow: hidden; }
html.embed .hero { padding-top: 6rem; }

/* ---- Golden "GRANTED" Patent Stamp Seal ---- */
.patent-item {
  position: relative;
  overflow: hidden;
}
.patent-seal {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fef3c7 0%, #fbbf24 38%, #d97706 78%, #92400e 100%);
  color: #2a1400;
  border: 2px solid #fde68a;
  box-shadow:
    0 0 0 2px rgba(245, 158, 11, 0.55),
    0 0 0 5px rgba(251, 191, 36, 0.16),
    inset 0 0 0 3px rgba(120, 53, 15, 0.55),
    0 6px 18px rgba(217, 119, 6, 0.35);
  transform: rotate(-12deg);
  font-family: var(--font-display);
  text-align: center;
  line-height: 1;
  user-select: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.patent-seal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px dashed rgba(120, 53, 15, 0.65);
  pointer-events: none;
}
.patent-item:hover .patent-seal {
  transform: rotate(-6deg) scale(1.06);
  box-shadow:
    0 0 0 2px rgba(253, 224, 71, 0.8),
    0 0 0 6px rgba(251, 191, 36, 0.24),
    inset 0 0 0 3px rgba(120, 53, 15, 0.6),
    0 8px 24px rgba(245, 158, 11, 0.5);
}
.patent-seal__stars {
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  color: #78350f;
  margin-bottom: 2px;
}
.patent-seal__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3b1c00;
  text-shadow: 0 1px 0 rgba(254, 243, 199, 0.65);
}
.patent-seal__sub {
  font-family: var(--font-mono);
  font-size: 0.44rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #78350f;
  margin-top: 2px;
}

/* ---- Responsive Research Pillar Split Cards ---- */
.thrust-card--split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  scroll-margin-top: 5.5rem;
}
.thrust-card--split.thrust-card--reverse {
  grid-template-columns: 1.2fr 1fr;
}
.thrust-card--split .thrust-media {
  height: 320px;
  border-radius: var(--radius-md);
  border-bottom: none;
}
.thrust-card--split .thrust-content {
  padding: 0.75rem 0;
}
@media (max-width: 900px) {
  .thrust-card--split,
  .thrust-card--split.thrust-card--reverse {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.15rem;
  }
  .thrust-card--split .thrust-media {
    height: 230px;
    order: -1;
  }
  .thrust-card--split .thrust-content {
    padding: 0.25rem 0;
  }
}

.pub-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin: 1.5rem 0;
}

.gform-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.gform-wrap iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: none;
}
@media (max-width: 640px) {
  .gform-wrap iframe {
    height: 620px;
  }
}
