/* ==========================================================================
   AIML CLUB OCT — EDITORIAL & SCIENTIFIC LABORATORY DESIGN SYSTEM
   Oriental College of Technology, Bhopal
   Identity: Swiss Layout Discipline, Technical Rigor, Deep Charcoal Slate
   ========================================================================== */

:root {
  /* Chromatic Foundation — Warm Architectural Dark Foundation */
  --bg-ink: #0B0C0E;
  --bg-deep: #111316;
  --bg-surface: #17191D;
  --bg-surface-elevated: #202329;
  --bg-surface-hover: #292D35;

  /* Line & Technical Grid System */
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-focus: rgba(255, 255, 255, 0.22);
  --border-accent: rgba(29, 99, 237, 0.45);

  /* Typography Scales — Warm Editorial High Contrast */
  --text-primary: #F4F1EA;
  --text-secondary: #E7E4DC;
  --text-muted: #9A9A96;
  --text-inverse: #0B0C0E;

  /* Restrained Engineering Accents */
  --accent-cobalt: #1d63ed;
  --accent-cobalt-light: #3b82f6;
  --accent-cobalt-glow: rgba(29, 99, 237, 0.18);
  --accent-emerald: #10b981;
  --accent-emerald-subtle: rgba(16, 185, 129, 0.15);
  --accent-amber: #f59e0b;

  /* Typographic Stacks */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Geometry & Timing */
  --container-max: 1320px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* ==========================================================================
   LIGHT MODE DESIGN SYSTEM TOKENS
   Maintains Swiss technical elegance with crisp contrast and slate accents
   ========================================================================== */
[data-theme="light"],
body.theme-light {
  /* Chromatic Foundation — Warm Paper Editorial Light Mode */
  --bg-ink: #F4F1EA;
  --bg-deep: #E9E6DE;
  --bg-surface: #F4F1EA;
  --bg-surface-elevated: #E9E6DE;
  --bg-surface-hover: #DFDBCF;

  /* Line & Grid System — Light Mode */
  --border-subtle: rgba(17, 19, 21, 0.12);
  --border-focus: rgba(17, 19, 21, 0.24);
  --border-accent: rgba(29, 99, 237, 0.45);

  /* Typography Scales — Warm Paper Mode */
  --text-primary: #111315;
  --text-secondary: #2C2E33;
  --text-muted: #666762;
  --text-inverse: #F4F1EA;

  /* Restrained Engineering Accents */
  --accent-cobalt: #1D63ED;
  --accent-cobalt-light: #2563EB;
  --accent-cobalt-glow: rgba(29, 99, 237, 0.12);
  --accent-emerald: #059669;
  --accent-emerald-subtle: rgba(5, 150, 105, 0.12);
  --accent-amber: #D97706;
}

[data-theme="light"] .hero-grid-bg,
body.theme-light .hero-grid-bg {
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .terminal-code-block,
body.theme-light .terminal-code-block {
  background: #0f172a;
  color: #f8fafc;
}

[data-theme="light"] .blueprint-diagram,
body.theme-light .blueprint-diagram {
  background: #0f172a;
}


/* ==========================================================================
   BASE RESET & ACCESSIBILITY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-ink);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button, input {
  font-family: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   DESKTOP CUSTOM CURSOR
   ========================================================================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent-cobalt-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease-out, transform 80ms ease-out;
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease-out, width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease-out, background-color 0.25s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: #ffffff;
  display: none;
  letter-spacing: 0.05em;
}

.cursor-follower.hovering {
  width: 72px;
  height: 72px;
  background-color: rgba(29, 99, 237, 0.2);
  border-color: var(--accent-cobalt-light);
  backdrop-filter: blur(4px);
}

.cursor-follower.hovering .cursor-badge {
  display: block;
}

@media (hover: none), (max-width: 1024px) {
  .custom-cursor, .cursor-follower {
    display: none !important;
  }
}

/* ==========================================================================
   FLOATING SCROLL PROGRESS RAIL (DESKTOP)
   ========================================================================== */
.scroll-progress-rail {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}

.rail-track {
  width: 2px;
  height: 120px;
  background-color: rgba(255, 255, 255, 0.1);
  position: relative;
  border-radius: var(--radius-full);
}

.rail-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: var(--accent-cobalt-light);
  border-radius: var(--radius-full);
  transition: height 120ms ease-out;
}

.rail-current-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .scroll-progress-rail {
    display: none;
  }
}

/* ==========================================================================
   00. SYSTEM TELEMETRY TICKER BAR
   ========================================================================== */
.system-telemetry-bar {
  background-color: var(--bg-deep);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.45rem 1.5rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 100;
}

.telemetry-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.telemetry-segment {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulse-dot 2.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.mono-label {
  color: #8b949e;
  font-weight: 500;
}

.mono-value {
  color: #c9d1d9;
}

.telemetry-divider {
  width: 1px;
  height: 12px;
  background-color: var(--border-subtle);
}

.telemetry-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
}

.telemetry-link:hover .mono-value {
  color: var(--accent-cobalt-light);
}

/* ==========================================================================
   01. NAVIGATION HEADER
   ========================================================================== */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(11, 12, 14, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dual-insignia {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.insignia-college, .insignia-club {
  height: 38px;
  width: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.insignia-separator {
  width: 1px;
  height: 24px;
  background-color: var(--border-subtle);
}

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

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-item {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.3rem 0;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-primary);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--accent-cobalt-light);
  transition: width var(--transition-fast);
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-terminal-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-terminal-outline:hover {
  border-color: var(--border-focus);
  background-color: var(--bg-surface-elevated);
}

.btn-cobalt-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  background-color: var(--accent-cobalt);
  color: #ffffff;
  border: 1px solid var(--accent-cobalt-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-fast);
}

.btn-cobalt-solid:hover {
  background-color: var(--accent-cobalt-light);
  box-shadow: 0 2px 12px rgba(29, 99, 237, 0.45);
}

.nav-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Full-Screen Architectural Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-ink);
  z-index: 1000;
  padding: 2rem;
  overflow-y: auto;
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.drawer-logo {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.drawer-close-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-grow: 1;
}

.drawer-meta-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.drawer-link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.4rem 0;
}

.drawer-link .d-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cobalt-light);
}

.drawer-external-links {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.drawer-ext-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--accent-cobalt-light);
}

.drawer-actions {
  margin-top: 2rem;
}

.w-full {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   02. HERO EDITORIAL SECTION
   ========================================================================== */
.hero-editorial {
  position: relative;
  padding: 6.5rem 0 5rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero-marker {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.08em;
  pointer-events: none;
}

.marker-tl { top: 1.5rem; left: 1.5rem; }
.marker-tr { top: 1.5rem; right: 1.5rem; }
.marker-bl { bottom: 1.5rem; left: 1.5rem; }
.marker-br { bottom: 1.5rem; right: 1.5rem; }

.hero-content {
  position: relative;
  z-index: 1;
}

.editorial-metadata-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.pill-tag {
  color: var(--accent-cobalt-light);
  font-weight: 600;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  max-width: 1000px;
  margin-bottom: 1.5rem;
}

.headline-em {
  color: #ffffff;
  border-bottom: 2px solid var(--accent-cobalt);
}

/* 6-Phase Lifecycle Track */
.lifecycle-track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.75rem;
  padding: 0.5rem 0.85rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  width: fit-content;
}

.lc-node.active {
  color: var(--accent-cobalt-light);
  font-weight: 700;
}

.lc-arrow {
  color: rgba(255, 255, 255, 0.2);
}

.hero-subtext {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.68;
  color: var(--text-secondary);
  max-width: 860px;
  margin-bottom: 2.5rem;
}

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

.btn-action-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  background-color: var(--accent-cobalt);
  color: #ffffff;
  border: 1px solid var(--accent-cobalt-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-action-primary:hover {
  background-color: var(--accent-cobalt-light);
  box-shadow: 0 4px 16px rgba(29, 99, 237, 0.45);
}

.btn-action-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-action-secondary:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-focus);
}

.btn-action-minimal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.btn-action-minimal:hover {
  color: var(--text-primary);
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.82rem;
}

/* Telemetry Metric Cards */
.telemetry-stat-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.5rem;
}

.stat-spec-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.5rem;
  transition: border-color var(--transition-fast);
}

.stat-spec-card:hover {
  border-color: var(--border-focus);
}

.spec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.spec-id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.spec-value {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 850;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.spec-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.spec-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   COMMON EDITORIAL SECTION LAYOUT
   ========================================================================== */
.section-editorial {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.section-editorial.alt-bg {
  background-color: #0b0e14;
}

.section-header-block {
  margin-bottom: 3.5rem;
  max-width: 820px;
}

.header-super {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-cobalt-light);
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.subsection-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

.sub-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-cobalt-light);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   03. PIPELINE & PHILOSOPHY
   ========================================================================== */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pipeline-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.pipeline-card:hover {
  border-color: var(--border-focus);
  background-color: var(--bg-surface-elevated);
}

.card-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cobalt-light);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.card-step-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.card-step-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.tech-spec-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

/* ==========================================================================
   04. SECTION 01: LEARN (12 MODULES & INTERACTIVE COLAB)
   ========================================================================== */
.curriculum-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.curr-chip {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.curr-chip:hover, .curr-chip.active {
  background-color: var(--bg-surface-elevated);
  border-color: var(--accent-cobalt);
  color: var(--text-primary);
}

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

.curriculum-cell {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.curriculum-cell:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.cell-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cobalt-light);
}

.cell-level {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
}

.cell-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.cell-summary {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.cell-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.cell-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cobalt-light);
}

.cell-link:hover {
  color: #ffffff;
}

/* Colab Hub Container */
.colab-hub-wrapper {
  margin-top: 4.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 3.5rem;
}

.colab-hub-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.colab-hub-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.terminal-quick-clone {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--bg-ink);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.terminal-quick-clone code {
  color: #c9d1d9;
}

.btn-copy-code {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.btn-copy-code:hover {
  color: var(--text-primary);
}

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

.notebook-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.notebook-card:hover {
  border-color: var(--border-focus);
}

.notebook-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.nb-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cobalt-light);
}

.nb-runtime {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.03);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.nb-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.nb-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.nb-features {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.nb-features i {
  color: var(--accent-emerald);
  margin-right: 0.4rem;
}

.nb-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-colab-launch img {
  height: 28px;
  transition: transform var(--transition-fast);
}

.btn-colab-launch:hover img {
  transform: scale(1.04);
}

.btn-nb-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-nb-code:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   05. SECTION 02: BUILD (STICKY PROJECT STUDIO)
   ========================================================================== */
.project-studio-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
  position: relative;
}

.studio-sticky-visual {
  position: sticky;
  top: 6rem;
}

.studio-visual-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.studio-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.studio-dots {
  display: flex;
  gap: 6px;
}

.studio-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
}

.studio-current-id {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-cobalt-light);
  font-weight: 600;
}

.studio-status-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
}

.status-prod {
  background-color: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-beta {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.studio-blueprint-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blueprint-diagram {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-color: var(--bg-ink);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.blueprint-layer {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.6rem 0.85rem;
}

.bp-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cobalt-light);
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.bp-spec {
  font-size: 0.84rem;
  color: var(--text-primary);
  font-weight: 600;
}

.blueprint-connector {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.studio-live-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
  text-align: center;
}

.studio-stat {
  background-color: var(--bg-ink);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem;
  border-radius: var(--radius-xs);
}

.s-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.s-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.studio-project-feed {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-feed-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.project-feed-card:hover, .project-feed-card.active {
  border-color: var(--border-accent);
  background-color: var(--bg-surface-elevated);
}

.p-feed-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.p-feed-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.p-feed-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
}

.p-feed-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.p-feed-problem, .p-feed-solution {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.p-feed-problem strong, .p-feed-solution strong {
  color: var(--text-primary);
}

.p-feed-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.25rem 0 1.5rem;
}

.p-feed-stack span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background-color: var(--bg-ink);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
}

.p-feed-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.feed-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-emerald);
}

/* ==========================================================================
   06. SECTION 03: RESEARCH & BENCHMARKS
   ========================================================================== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.research-study-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.research-study-card:hover {
  border-color: var(--border-focus);
}

.r-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.r-study-id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-cobalt-light);
}

.r-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.r-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.r-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.r-benchmark-table {
  background-color: var(--bg-ink);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-bottom: 1.25rem;
}

.rb-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.rb-row:last-child {
  border-bottom: none;
}

.rb-head {
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

.highlight-row {
  color: var(--accent-emerald);
  background-color: rgba(16, 185, 129, 0.06);
  border-radius: var(--radius-xs);
  font-weight: 600;
}

.r-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

.r-repo {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   07. SECTION 04: CONNECT (TIMELINE & 41 MEMBERS)
   ========================================================================== */
.event-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-chip {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover, .filter-chip.active {
  background-color: var(--bg-surface-elevated);
  border-color: var(--accent-cobalt);
  color: var(--text-primary);
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-left: 1px solid var(--border-subtle);
  margin-left: 0.5rem;
  padding-left: 1.75rem;
}

.timeline-row {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  position: relative;
  transition: border-color var(--transition-fast);
}

.timeline-row:hover {
  border-color: var(--border-focus);
}

.timeline-row::before {
  content: '';
  position: absolute;
  left: -2.1rem;
  top: 1.75rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-cobalt);
  border: 2px solid var(--bg-deep);
}

.t-date-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.t-date {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.t-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  display: inline-block;
  width: fit-content;
}

.badge-workshop { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-competition { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-talk { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-orientation { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

.t-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.t-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.t-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.t-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-emerald);
}

.t-drive-link {
  font-family: var(--font-mono);
  color: var(--accent-cobalt-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.t-drive-link:hover {
  text-decoration: underline;
}

/* 41-Member Council Directory */
.team-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.team-tab-btn {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.team-tab-btn:hover, .team-tab-btn.active {
  background-color: var(--bg-surface-elevated);
  border-color: var(--accent-cobalt);
  color: var(--text-primary);
}

.team-search-wrapper {
  margin-bottom: 2.5rem;
}

.team-search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.1rem;
  max-width: 480px;
}

.team-search-box i {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.team-search-box input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.88rem;
  width: 100%;
}

.team-search-box input::placeholder {
  color: var(--text-muted);
}

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

.member-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.member-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.member-card.featured-card {
  border-color: var(--border-accent);
  background-color: #0d1424;
}

.member-photo-frame {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  margin-bottom: 1rem;
  background-color: var(--bg-ink);
  position: relative;
}

.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-initials-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cobalt-light);
  background-color: var(--bg-surface-elevated);
}

.member-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.member-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cobalt-light);
  margin-bottom: 0.35rem;
}

.member-wing-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.member-socials {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.member-socials a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.member-socials a:hover {
  color: var(--text-primary);
}

/* Verified Repositories Grid */
.repos-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.repo-spec-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.repo-spec-card:hover {
  border-color: var(--border-focus);
}

.repo-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.repo-head i {
  color: var(--accent-cobalt-light);
}

.repo-name {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.repo-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.repo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.75rem;
}

.lang-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.lang-dot.python { background-color: #3572A5; }
.lang-dot.docker { background-color: #384d54; }

/* ==========================================================================
   08. SECTION 05: JOIN & IMPACT (MANIFESTO BOX)
   ========================================================================== */
.editorial-manifesto-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-md);
  padding: 3.5rem;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.manifesto-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cobalt-light);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.manifesto-statement {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.statement-accent {
  color: #ffffff;
  border-bottom: 3px solid var(--accent-cobalt);
}

.manifesto-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.68;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

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

/* Ecosystem Portals */
.ecosystem-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.eco-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.eco-card:hover {
  border-color: var(--border-focus);
}

.eco-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--accent-cobalt-light);
  margin-bottom: 1.25rem;
}

.eco-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.eco-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.eco-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.btn-eco-access {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cobalt-light);
}

.btn-eco-access:hover {
  color: #ffffff;
}

/* ==========================================================================
   09. TECHNICAL FOOTER
   ========================================================================== */
.system-footer {
  background-color: #030508;
  border-top: 1px solid var(--border-subtle);
  padding: 5.5rem 0 2rem;
  font-size: 0.84rem;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.3fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

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

.footer-dual-insignia {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.f-insignia {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

.f-brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.f-brand-inst {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.f-brand-mission {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 380px;
}

.f-social-cluster {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.f-social-cluster a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.f-social-cluster a:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
  background-color: var(--bg-surface-elevated);
}

.f-col-header {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.f-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.f-list a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.f-list a:hover {
  color: var(--accent-cobalt-light);
}

.f-address {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.f-coord-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.f-architect a {
  color: var(--text-secondary);
  font-weight: 600;
}

.f-architect a:hover {
  color: var(--accent-cobalt-light);
}

/* ==========================================================================
   STAGGERED MOTION SYSTEM & OBSERVER CLASSES
   ========================================================================== */
.reveal-stagger {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-stagger {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .rail-indicator {
    transition: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (DESKTOP, TABLET, MOBILE)
   ========================================================================== */
@media (max-width: 1200px) {
  .project-studio-layout {
    grid-template-columns: 1fr;
  }
  .studio-sticky-visual {
    position: static;
  }
  .telemetry-stat-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
  .research-grid {
    grid-template-columns: 1fr;
  }
  .curriculum-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-roster-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle-btn {
    display: block;
  }
  .hero-headline {
    font-size: 2.1rem;
  }
  .telemetry-stat-matrix {
    grid-template-columns: 1fr;
  }
  .pipeline-grid {
    grid-template-columns: 1fr;
  }
  .curriculum-matrix {
    grid-template-columns: 1fr;
  }
  .colab-notebooks-grid {
    grid-template-columns: 1fr;
  }
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .team-roster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .repos-showcase-grid {
    grid-template-columns: 1fr;
  }
  .ecosystem-cards-grid {
    grid-template-columns: 1fr;
  }
  .editorial-manifesto-box {
    padding: 2rem 1.25rem;
  }
  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .insignia-college, .insignia-separator {
    display: none;
  }
  .brand-title {
    font-size: 0.9rem;
    white-space: nowrap;
  }
  #nav-join-cta span {
    display: none;
  }
  #nav-join-cta {
    padding: 0.45rem 0.65rem;
  }
  .team-roster-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions-cluster {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions-cluster a {
    justify-content: center;
  }
  .terminal-quick-clone {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   THEME TOGGLE BUTTON
   ========================================================================== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.theme-toggle-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-focus);
  color: var(--accent-cobalt-light);
  transform: translateY(-1px);
}

.theme-toggle-btn .theme-icon-sun {
  display: none;
}

.theme-toggle-btn .theme-icon-moon {
  display: inline-block;
}

[data-theme="light"] .theme-toggle-btn .theme-icon-moon,
body.theme-light .theme-toggle-btn .theme-icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .theme-icon-sun,
body.theme-light .theme-toggle-btn .theme-icon-sun {
  display: inline-block;
  color: #d97706;
}

.drawer-theme-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.d-theme-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.live-dot-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  margin-right: 4px;
  animation: pulse-ring 2s infinite;
}

/* ==========================================================================
   LIVE STUDENT NOTICE STRIP
   ========================================================================== */
.student-notice-strip {
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.55rem 0;
  font-size: 0.84rem;
  position: relative;
  z-index: 95;
}

.notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(29, 99, 237, 0.12);
  color: var(--accent-cobalt-light);
  border: 1px solid rgba(29, 99, 237, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pulse-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.notice-marquee {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
}

.notice-marquee strong {
  color: var(--text-primary);
}

.notice-action .notice-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cobalt-light);
  white-space: nowrap;
  transition: gap var(--transition-fast);
}

.notice-action .notice-link:hover {
  text-decoration: underline;
  gap: 0.55rem;
}

/* ==========================================================================
   LIVE ACTIVITIES & NOTICE RADAR SECTION
   ========================================================================== */
.activity-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.activity-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.activity-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

@media (max-width: 1024px) {
  .activity-feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .activity-feed-grid {
    grid-template-columns: 1fr;
  }
}

.activity-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.activity-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.3);
}

.act-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.act-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.act-badge.status-live {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.act-badge.status-upcoming {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.act-badge.status-code {
  background: rgba(29, 99, 237, 0.15);
  color: var(--accent-cobalt-light);
  border: 1px solid rgba(29, 99, 237, 0.3);
}

.act-badge.status-announcement {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.act-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.act-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.act-meta-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  background: var(--bg-surface-elevated);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.act-meta-info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.act-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.act-card-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-xs {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
}

/* ==========================================================================
   PROPOSE AN ACTIVITY MODAL
   ========================================================================== */
.activity-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.activity-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.activity-modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.activity-modal-overlay.open .activity-modal-container {
  transform: translateY(0);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.75rem;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 580px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-cobalt-light);
  box-shadow: 0 0 0 2px var(--accent-cobalt-glow);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.modal-success-msg {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.text-emerald {
  color: var(--accent-emerald);
}


/* ==========================================================================
   LENIS SMOOTH SCROLL FOUNDATION
   ========================================================================== */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ==========================================================================
   TACTILE MICROSCOPIC GRAIN OVERLAY
   ========================================================================== */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   HERO EDITORIAL SPLIT LAYOUT & TECHNICAL ARTIFACT
   ========================================================================== */
.hero-editorial-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 3.5rem 0 4.5rem;
}

@media (max-width: 1080px) {
  .hero-editorial-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0 3.5rem;
  }
}

.hero-headline .hero-line {
  display: block;
  overflow: hidden;
}

.hero-headline .hero-line .line-text {
  display: inline-block;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-statement {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.hero-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.hero-location-tag i {
  color: var(--accent-cobalt-light);
}

.hero-location-tag .loc-divider {
  opacity: 0.4;
}

.hero-location-tag .mono-coords {
  color: var(--accent-cobalt-light);
  font-weight: 600;
}

/* Abstract Technical Engineering Artifact */
.hero-technical-artifact {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.artifact-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.artifact-frame:hover {
  border-color: var(--border-accent);
}

.artifact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.artifact-id {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite;
}

.artifact-coords {
  color: var(--text-muted);
}

.artifact-canvas {
  position: relative;
  padding: 2rem 1.5rem;
  background: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

[data-theme="light"] .artifact-canvas,
body.theme-light .artifact-canvas {
  background: 
    linear-gradient(to right, rgba(17, 19, 21, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 19, 21, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.grid-crosshairs {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.5;
  line-height: 1;
}

.ch-tl { top: 8px; left: 8px; }
.ch-tr { top: 8px; right: 8px; }
.ch-bl { bottom: 8px; left: 8px; }
.ch-br { bottom: 8px; right: 8px; }

.node-matrix {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.node-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node-row.center-row {
  justify-content: center;
}

.matrix-node {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.matrix-node.active {
  border-color: rgba(29, 99, 237, 0.4);
  background: rgba(29, 99, 237, 0.1);
  color: var(--accent-cobalt-light);
}

.matrix-node.special {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  font-weight: 600;
}

.n-tag {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.matrix-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
  margin: 0 0.75rem;
  position: relative;
}

.matrix-line::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cobalt-light);
  opacity: 0.7;
}

.telemetry-live-stream {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
}

.stream-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.s-label {
  color: var(--text-muted);
}

.s-val {
  color: var(--text-primary);
  font-weight: 600;
}

.text-accent {
  color: var(--accent-cobalt-light);
}

.artifact-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.af-key {
  color: var(--text-muted);
}

/* Magnetic Button Utility */
.magnetic-btn {
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color var(--transition-fast), border-color var(--transition-fast);
}

/* Disciplined Section Spacing */
.section-editorial {
  padding: 130px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

@media (max-width: 768px) {
  .section-editorial {
    padding: 75px 0;
  }
}


/* ==========================================================================
   HERO REAL CAMPUS ARCHITECTURAL SHOWCASE WITH HUD OVERLAY
   Inspired by Reference Mockup
   ========================================================================== */
.hero-campus-showcase {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.campus-image-frame {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.6);
  background: var(--bg-surface);
}

.campus-real-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  filter: grayscale(80%) contrast(118%) brightness(82%);
  transition: filter var(--transition-normal), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.campus-image-frame:hover .campus-real-img {
  filter: grayscale(40%) contrast(110%) brightness(90%);
  transform: scale(1.02);
}

[data-theme="light"] .campus-real-img,
body.theme-light .campus-real-img {
  filter: saturate(102%) contrast(100%) brightness(98%);
}

.campus-hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(11, 12, 14, 0.6) 0%, transparent 60%, rgba(11, 12, 14, 0.7) 100%);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

[data-theme="light"] .campus-hud-overlay,
body.theme-light .campus-hud-overlay {
  background: linear-gradient(135deg, rgba(244, 241, 234, 0.4) 0%, transparent 60%, rgba(244, 241, 234, 0.6) 100%);
}

.hud-top-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  background: rgba(11, 12, 14, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  align-self: flex-start;
}

[data-theme="light"] .hud-top-tag,
body.theme-light .hud-top-tag {
  background: rgba(244, 241, 234, 0.85);
  color: var(--text-primary);
}

.hud-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hud-bracket {
  color: var(--accent-cobalt-light);
}

.hud-crosshair-circle {
  position: absolute;
  top: 40%;
  right: 28%;
  width: 50px;
  height: 50px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.hud-circle-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--accent-cobalt-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cobalt);
}

.hud-cross-h {
  position: absolute;
  top: 50%;
  left: -8px;
  right: -8px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.hud-cross-v {
  position: absolute;
  left: 50%;
  top: -8px;
  bottom: -8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.hud-lifecycle-vertical {
  position: absolute;
  bottom: 2.2rem;
  right: 1.25rem;
  background: rgba(11, 12, 14, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

[data-theme="light"] .hud-lifecycle-vertical,
body.theme-light .hud-lifecycle-vertical {
  background: rgba(244, 241, 234, 0.85);
}

.hl-item {
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.hl-item.active {
  color: var(--accent-cobalt-light);
  font-weight: 700;
}

.hud-bottom-telemetry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(11, 12, 14, 0.75);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  align-self: flex-start;
}

[data-theme="light"] .hud-bottom-telemetry,
body.theme-light .hud-bottom-telemetry {
  background: rgba(244, 241, 234, 0.85);
}

.hb-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

/* ==========================================================================
   RESEARCH SPOTLIGHT LATTICE CARD
   ========================================================================== */
.research-spotlight-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .research-spotlight-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

.research-lattice-visual {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #08090C;
}

.lattice-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.lattice-glow-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.research-spotlight-meta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.r-spec-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.r-spec-k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.r-spec-v {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.r-spec-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
}

.r-spec-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  display: block;
  margin-top: 0.2rem;
}

.btn-circle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.btn-circle-arrow:hover {
  background: var(--accent-cobalt);
  color: #fff;
  border-color: var(--accent-cobalt);
  transform: scale(1.08);
}

/* ==========================================================================
   GITHUB CONTRIBUTION ACTIVITY HEATMAP WIDGET
   ========================================================================== */
.header-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.github-heatmap-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 3.5rem;
}

.heatmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.heatmap-stat-item {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-right: 2.5rem;
}

.h-stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.h-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.heatmap-octocat {
  font-size: 2rem;
  color: var(--text-secondary);
}

.heatmap-grid {
  display: grid;
  grid-template-rows: repeat(7, 12px);
  grid-auto-flow: column;
  grid-auto-columns: 12px;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.heatmap-cell {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--bg-surface-elevated);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.heatmap-cell:hover {
  transform: scale(1.3);
  z-index: 10;
}

.heatmap-cell.l-0 { background: rgba(255, 255, 255, 0.04); }
.heatmap-cell.l-1 { background: rgba(245, 158, 11, 0.25); }
.heatmap-cell.l-2 { background: rgba(245, 158, 11, 0.5); }
.heatmap-cell.l-3 { background: rgba(245, 158, 11, 0.75); }
.heatmap-cell.l-4 { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }

[data-theme="light"] .heatmap-cell.l-0,
body.theme-light .heatmap-cell.l-0 { background: rgba(17, 19, 21, 0.06); }
[data-theme="light"] .heatmap-cell.l-1,
body.theme-light .heatmap-cell.l-1 { background: rgba(217, 119, 6, 0.25); }
[data-theme="light"] .heatmap-cell.l-2,
body.theme-light .heatmap-cell.l-2 { background: rgba(217, 119, 6, 0.5); }
[data-theme="light"] .heatmap-cell.l-3,
body.theme-light .heatmap-cell.l-3 { background: rgba(217, 119, 6, 0.75); }
[data-theme="light"] .heatmap-cell.l-4,
body.theme-light .heatmap-cell.l-4 { background: #d97706; }

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.heatmap-legend .sq {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.heatmap-legend .sq-0 { background: rgba(255, 255, 255, 0.05); }
.heatmap-legend .sq-1 { background: rgba(245, 158, 11, 0.25); }
.heatmap-legend .sq-2 { background: rgba(245, 158, 11, 0.5); }
.heatmap-legend .sq-3 { background: rgba(245, 158, 11, 0.75); }
.heatmap-legend .sq-4 { background: #f59e0b; }

/* ==========================================================================
   EVENT MEDIA PREVIEW STRIP (REAL EVENT PHOTOGRAPHS)
   ========================================================================== */
.event-media-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-subtle);
}

.event-media-figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.event-media-figure:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cobalt);
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.4);
}

.event-thumbnail {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.event-media-figure:hover .event-thumbnail {
  transform: scale(1.03);
}

.event-media-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.event-media-figure figcaption i {
  color: var(--accent-cobalt);
}

/* ==========================================================================
   CURATED MEDIA GALLERY & ACCESSIBLE LIGHTBOX SYSTEM
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.gallery-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cobalt);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg-deep);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter var(--transition-normal);
  filter: contrast(105%) brightness(95%);
}

.gallery-item-card:hover .gallery-thumb {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 12, 14, 0.8) 0%, rgba(11, 12, 14, 0.2) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-badge {
  background-color: var(--bg-ink);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--accent-cobalt);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transform: translateY(6px);
  transition: transform var(--transition-fast);
}

.gallery-item-card:hover .gallery-badge {
  transform: translateY(0);
}

.gallery-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.g-category {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-cobalt-light);
  margin-bottom: 0.35rem;
}

.g-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.g-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Callout Banner to Google Drive Archive */
.gallery-drive-callout {
  margin-top: 3.5rem;
  padding: 2rem;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.drive-callout-text {
  max-width: 680px;
}

.dc-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cobalt-light);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.4rem;
}

.dc-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.dc-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 11, 13, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close-btn {
  position: absolute;
  top: -3.5rem;
  right: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(23, 25, 29, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-cobalt);
  transform: scale(1.08);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(23, 25, 29, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  z-index: 3;
}

.lightbox-nav-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-cobalt);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: -4rem;
}

.lightbox-next {
  right: -4rem;
}

.lightbox-content {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.85);
}

.lightbox-img-frame {
  width: 100%;
  max-height: 65vh;
  min-height: 300px;
  background-color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  padding: 1.25rem 1.75rem;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.lb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.lb-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cobalt-light);
  letter-spacing: 0.06em;
}

.lb-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.lb-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.lb-date {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

/* Lightbox Mobile Adjustments */
@media (max-width: 900px) {
  .lightbox-nav-btn {
    top: auto;
    bottom: -3.75rem;
    transform: none;
  }
  .lightbox-prev {
    left: 20%;
  }
  .lightbox-next {
    right: 20%;
  }
  .lightbox-close-btn {
    top: -3.5rem;
  }
}

/* Light Mode Header & Navigation Overrides */
[data-theme="light"] .header-nav,
body.theme-light .header-nav {
  background-color: rgba(244, 241, 234, 0.94);
  border-bottom-color: rgba(17, 19, 21, 0.12);
}

[data-theme="light"] .brand-title,
body.theme-light .brand-title {
  color: #111315;
}

[data-theme="light"] .brand-sub,
body.theme-light .brand-sub {
  color: #666762;
}

[data-theme="light"] .nav-item,
body.theme-light .nav-item {
  color: #4A4D53;
}

[data-theme="light"] .nav-item:hover,
[data-theme="light"] .nav-item.active,
body.theme-light .nav-item:hover,
body.theme-light .nav-item.active {
  color: #111315;
}

[data-theme="light"] .btn-terminal-outline,
body.theme-light .btn-terminal-outline {
  background-color: #E9E6DE;
  color: #111315;
  border-color: rgba(17, 19, 21, 0.18);
}

[data-theme="light"] .theme-toggle-btn,
body.theme-light .theme-toggle-btn {
  background-color: #E9E6DE;
  color: #111315;
  border-color: rgba(17, 19, 21, 0.18);
}

/* ==========================================================================
   ENHANCED UI/UX, LAYOUT & VISUAL SYSTEMS (TRANSFORMATION V2)
   ========================================================================== */

/* Cursor Light Mode Adaptation */
[data-theme="light"] .cursor-follower,
body.theme-light .cursor-follower {
  border-color: rgba(29, 99, 237, 0.45);
}

[data-theme="light"] .cursor-follower.hovering,
body.theme-light .cursor-follower.hovering {
  background-color: rgba(29, 99, 237, 0.12);
  border-color: var(--accent-cobalt);
}

[data-theme="light"] .cursor-badge,
body.theme-light .cursor-badge {
  color: var(--accent-cobalt);
}

/* Crisp Telemetry Bar Contrast */
[data-theme="light"] .system-telemetry-bar,
body.theme-light .system-telemetry-bar {
  background: #EAE6DC !important;
  color: #374151 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .system-telemetry-bar .mono-label,
body.theme-light .system-telemetry-bar .mono-label {
  color: #4B5563 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .system-telemetry-bar .mono-value,
body.theme-light .system-telemetry-bar .mono-value {
  color: #111827 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .telemetry-divider,
body.theme-light .telemetry-divider {
  background: rgba(0, 0, 0, 0.15) !important;
}

/* Team Tab Pill Count Badges */
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.35rem;
  transition: all var(--transition-fast);
}

.team-tab-btn:hover .tab-count,
.team-tab-btn.active .tab-count {
  background-color: var(--accent-cobalt);
  color: #ffffff;
}

[data-theme="light"] .tab-count,
body.theme-light .tab-count {
  background-color: rgba(0, 0, 0, 0.08);
  color: #4B5563;
}

/* Team Roster Grid Auto-Fill Responsiveness */
.team-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 1.25rem !important;
}

.member-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease !important;
}

.member-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--accent-cobalt) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(29, 99, 237, 0.2) !important;
}

[data-theme="light"] .member-card:hover,
body.theme-light .member-card:hover {
  box-shadow: 0 12px 28px rgba(29, 99, 237, 0.12), 0 0 0 1px rgba(29, 99, 237, 0.25) !important;
}

[data-theme="light"] .member-card.featured-card,
body.theme-light .member-card.featured-card {
  background-color: #EEF4FF !important;
  border-color: rgba(29, 99, 237, 0.4) !important;
}

/* Research Visual Breakdown: Transformer Lattice Card */
.research-visual-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 3rem;
  align-items: center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.research-visual-card:hover {
  border-color: var(--accent-cobalt);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.rv-media-col {
  height: 100%;
  min-height: 380px;
  position: relative;
}

.rv-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #030508;
}

.rv-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.research-visual-card:hover .rv-thumb {
  transform: scale(1.04);
}

.rv-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.rv-badge {
  background: rgba(11, 12, 14, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent-cobalt-light);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.rv-content-col {
  padding: 2.5rem 2.5rem 2.5rem 1rem;
}

.rv-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.rv-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.rv-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.rv-metric-box {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rv-metric-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-cobalt-light);
}

.rv-metric-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .research-visual-card {
    grid-template-columns: 1fr;
  }
  .rv-media-col {
    min-height: 260px;
  }
  .rv-content-col {
    padding: 2rem;
  }
}

/* Timeline Photos Interactive Zoom & Lightbox Trigger */
.timeline-photo-strip figure {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.timeline-photo-strip figure:hover {
  border-color: var(--accent-cobalt) !important;
  transform: translateY(-2px);
}

.timeline-photo-strip figure img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-photo-strip figure:hover img {
  transform: scale(1.03);
}

/* Floating Back To Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: var(--accent-cobalt);
  border-color: var(--accent-cobalt);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(29, 99, 237, 0.35);
}

[data-theme="light"] .back-to-top-btn,
body.theme-light .back-to-top-btn {
  background-color: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.15);
  color: #111827;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .back-to-top-btn:hover,
body.theme-light .back-to-top-btn:hover {
  background-color: var(--accent-cobalt);
  color: #ffffff;
  border-color: var(--accent-cobalt);
}
