/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Silverline palette — silver-blue, matches main site */
  --bg: #020509;
  --bg-card: #0a1325;
  --bg-card-hover: #0f1a30;
  --bg-dark: #010305;
  --text: #f5f7fc;
  --text-dim: #8a93a8;
  --text-muted: #5a6280;
  --accent: #3c6ee0;
  --accent-light: #5a8aff;
  --accent-glow: rgba(60, 110, 224, 0.15);
  --accent-glow-strong: rgba(60, 110, 224, 0.3);
  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
  --border: #1a2240;
  --border-light: #2a3560;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--text); }

ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  color: var(--accent);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white !important;
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: all 0.25s;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.3);
  color: white !important;
}

/* Mobile hamburger (CSS-only) */
.nav-toggle-input { display: none; }

.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 101;
}

.nav-toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 96px 0 48px;
  text-align: center;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(60, 110, 224, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 110, 224, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  background: var(--accent-glow);
  border: 1px solid rgba(60, 110, 224, 0.2);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 0%, #a0a0b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 20px var(--accent-glow-strong);
}

.btn-primary:hover {
  background: var(--accent-light);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--accent-glow-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.stat { text-align: center; }

.stat-value {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-light);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

/* ===== SECTIONS ===== */
.section {
  padding: 48px 0;
}

.section-dark {
  background: var(--bg-dark);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ===== BERMUDA INTRO ===== */
.bermuda-intro {
  max-width: 720px;
  margin-bottom: 48px;
}

.bermuda-intro p {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.75;
}

.bermuda-intro strong {
  color: var(--text);
}

/* ===== PROBLEM ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s;
}

.problem-card:hover { border-color: var(--border-light); }

.problem-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  opacity: 0.7;
}

.problem-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== BRIDGE LAYOUT ===== */
.bridge-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin-top: 48px;
  align-items: stretch;
}

.bridge-problem {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.bridge-problem:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: none;
}

.bridge-problem:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: none;
}

.bridge-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.bridge-problem h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.bridge-problem p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 12px;
}

.bridge-problem p:last-child {
  margin-bottom: 0;
}

.bridge-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  min-width: 90px;
  background: var(--bg);
  z-index: 2;
}

.bridge-center-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.bridge-icon {
  font-size: 2rem;
  color: var(--accent-light);
  position: relative;
  z-index: 1;
  line-height: 1;
}

.bridge-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.bridge-role {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  position: relative;
  z-index: 1;
  margin-top: 2px;
}

.bridge-arrow {
  position: absolute;
  top: 50%;
  height: 2px;
  width: 20px;
  z-index: 1;
}

.bridge-arrow-left {
  right: 100%;
  background: linear-gradient(90deg, var(--border-light), var(--accent));
}

.bridge-arrow-right {
  left: 100%;
  background: linear-gradient(90deg, var(--accent), var(--border-light));
}

.bridge-solution {
  text-align: center;
  margin-top: 48px;
  padding: 40px;
  background: linear-gradient(135deg, var(--accent-glow) 0%, rgba(52, 211, 153, 0.05) 100%);
  border: 1px solid rgba(60, 110, 224, 0.2);
  border-radius: var(--radius-lg);
}

.bridge-solution h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bridge-solution p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== PROGRAM TIMELINE ===== */
.program-timeline {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-phase {
  display: flex;
  gap: 32px;
}

.phase-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}

.phase-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent-light);
  flex-shrink: 0;
}

.phase-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 100%);
  min-height: 100%;
}

.phase-content {
  padding-bottom: 48px;
}

.phase-duration {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.phase-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.phase-content p {
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 550px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.phase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phase-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent-glow);
  color: var(--accent-light);
  border: 1px solid rgba(60, 110, 224, 0.15);
}

/* ===== PILLARS ===== */
.pillars-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin-top: 48px;
  align-items: stretch;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.pillar-left {
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: none;
}

.pillar-right {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: none;
}

.pillar-accent {
  border-color: rgba(60, 110, 224, 0.3);
  background: linear-gradient(135deg, rgba(60, 110, 224, 0.05) 0%, var(--bg-card) 100%);
}

.pillar-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  position: relative;
  min-width: 100px;
  background: var(--bg);
  z-index: 2;
}

.pillar-center-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.pillar-center-icon {
  font-size: 2.5rem;
  color: var(--accent-light);
  position: relative;
  z-index: 1;
  line-height: 1;
}

.pillar-center-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.pillar-center-sub {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  position: relative;
  z-index: 1;
  margin-top: 2px;
}

.pillar-connector {
  position: absolute;
  top: 50%;
  height: 2px;
  width: 20px;
  background: linear-gradient(90deg, var(--border-light), var(--accent));
  z-index: 1;
}

.pillar-connector-left {
  right: 100%;
  background: linear-gradient(90deg, var(--border-light), var(--accent));
}

.pillar-connector-right {
  left: 100%;
  background: linear-gradient(90deg, var(--accent), var(--border-light));
}

.pillar-side-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.pillar-icon { font-size: 1.5rem; }

.pillar-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.pillar-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.pillar-list li:last-child { border-bottom: none; }

.pillar-list li::before {
  content: '~';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ===== PATHS ===== */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.path-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.3s, transform 0.3s;
}

.path-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.path-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.path-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.path-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

.path-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

.path-label {
  display: block;
  font-weight: 700;
  color: var(--accent-light);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

/* ===== COMPARISON TABLE ===== */
.comparison-table {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-header, .comparison-row {
  display: grid;
  grid-template-columns: 180px repeat(4, 1fr);
}

.comparison-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.comparison-header .comp-col {
  padding: 16px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.comparison-row {
  border-bottom: 1px solid var(--border);
}

.comparison-row:last-child { border-bottom: none; }

.comp-col {
  padding: 14px 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.comp-label {
  font-weight: 600;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.comp-highlight {
  background: var(--accent-glow) !important;
}

.comp-yes { color: var(--green); font-size: 1.1rem; }
.comp-no { color: var(--red); font-size: 1.1rem; }
.comp-meh { color: var(--yellow); font-size: 1.1rem; }

.comparison-row .comp-col {
  justify-content: center;
}

.comparison-row .comp-col:first-child {
  justify-content: flex-start;
}

/* ===== FUNDING ===== */
.funding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.funding-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.funding-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.funding-amount {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-light);
  margin-bottom: 24px;
}

.funding-amount span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.funding-breakdown { margin-bottom: 24px; }

.funding-bar {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  height: 36px;
}

.bar-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
}

.bar-uni { background: var(--accent); }
.bar-inst { background: #34d399; }

.funding-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.funding-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.funding-sources {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.source {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.source:last-child { border-bottom: none; padding-bottom: 0; }

.source-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.source-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.source-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--accent-glow);
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.source p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ===== GRANTS ===== */
.grants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.grant-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: border-color 0.3s;
}

.grant-card:hover { border-color: var(--border-light); }

.grant-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.grant-flag { font-size: 1.2rem; }

.grant-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.grant-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 12px;
}

.grant-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== TIMELINE/ROADMAP ===== */
.roadmap {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.roadmap-item {
  position: relative;
}

.roadmap-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
}

.roadmap-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.roadmap-content li {
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 4px 0;
  padding-left: 14px;
  position: relative;
}

.roadmap-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ===== CRITERIA ===== */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.criteria-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.criteria-check {
  font-size: 1.2rem;
  color: var(--green);
  margin-bottom: 12px;
}

.criteria-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.criteria-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.fast-track {
  margin-top: 40px;
}

.fast-track-inner {
  background: linear-gradient(135deg, var(--accent-glow) 0%, rgba(52, 211, 153, 0.05) 100%);
  border: 1px solid rgba(60, 110, 224, 0.2);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.fast-track-badge {
  flex-shrink: 0;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border-radius: 8px;
}

.fast-track-inner p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.fast-track-inner strong {
  color: var(--text);
}

/* ===== UNIVERSITY BENEFITS ===== */
.uni-benefits { margin-top: 48px; }

.uni-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.uni-min, .uni-max {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.uni-max {
  border-color: rgba(60, 110, 224, 0.3);
}

.uni-min h3, .uni-max h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dim);
}

.uni-max h3 { color: var(--accent-light); }

.uni-min li, .uni-max li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.uni-min li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.uni-max li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-weight: 600;
}

.uni-note {
  text-align: center;
  padding: 20px;
}

.uni-note p {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== METRICS ===== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}

.metric-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.metric-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.metric-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.metric-not {
  opacity: 0.4;
}

.metric-not h4 {
  text-decoration: line-through;
}

/* ===== CTA ===== */
.section-cta {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-dark) 100%);
  padding: 80px 0;
}

.section-cta .section-sub {
  margin: 0 auto 48px;
}

.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
}

.cta-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent-light);
}

.cta-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-right p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== TOOLTIPS ===== */
[data-tip] {
  position: relative;
  cursor: help;
}

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #1a1a2e;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  width: max-content;
  max-width: 300px;
  white-space: normal;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1000;
  text-transform: none;
  letter-spacing: 0;
}

[data-tip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  border: 6px solid transparent;
  border-top-color: #1a1a2e;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1001;
}

[data-tip]:hover::after,
[data-tip]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Tooltip on bar segments */
.bar-segment[data-tip] {
  cursor: help;
}

.bar-segment[data-tip]::after {
  bottom: calc(100% + 12px);
}

.bar-segment[data-tip]::before {
  bottom: calc(100% + 4px);
}

/* Tooltip on stats */
.stat[data-tip]::after {
  bottom: calc(100% + 12px);
  min-width: 220px;
}

/* Tooltip on list items */
.pillar-list li[data-tip],
.funding-list li[data-tip] {
  cursor: help;
  transition: background 0.2s, padding-left 0.2s;
}

.pillar-list li[data-tip]:hover,
.funding-list li[data-tip]:hover {
  background: rgba(60, 110, 224, 0.05);
  border-radius: 6px;
}

.pillar-list li[data-tip]::after,
.funding-list li[data-tip]::after {
  left: 30%;
}

.pillar-list li[data-tip]::before,
.funding-list li[data-tip]::before {
  left: 30%;
}

/* ===== PHASE NOTES ===== */
.phase-exit-note,
.phase-output-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.phase-exit-note {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.15);
  color: var(--yellow);
}

.phase-output-note {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.15);
  color: var(--green);
}

.exit-dot, .output-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 6px;
}

.exit-dot { background: var(--yellow); }
.output-dot { background: var(--green); }

/* ===== PATH HOVER DETAIL ===== */
.path-hover-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.55;
  padding: 0 0;
  margin-top: 0;
  border-top: 0px solid var(--border);
  transition: max-height 0.4s ease, opacity 0.3s ease 0.1s, padding 0.4s ease, margin-top 0.4s ease, border-top 0.4s ease;
}

.path-card:hover .path-hover-detail {
  max-height: 200px;
  opacity: 1;
  padding: 14px 0 0;
  margin-top: 14px;
  border-top: 1px solid var(--border);
}

/* ===== PATHS NOTE ===== */
.paths-note {
  text-align: center;
  margin-top: 32px;
  padding: 16px 24px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.12);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--green);
  font-weight: 500;
}

/* ===== FUNDING NOTE ===== */
.funding-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.5;
}

.funding-philosophy {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(60, 110, 224, 0.05);
  border: 1px solid rgba(60, 110, 224, 0.12);
  border-radius: 10px;
}

.funding-philosophy p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.funding-philosophy strong {
  color: var(--accent-light);
}

/* ===== NAV ACTIVE ===== */
.nav-active {
  color: var(--text) !important;
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  font-size: 0.875rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-toggle:hover { color: var(--text); }

.nav-dropdown-toggle.nav-active { color: var(--text) !important; }

.nav-dropdown-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 20, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 160px;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* Invisible bridge to keep hover when moving from toggle to menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 0.825rem;
  color: var(--text-dim);
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

/* Featured dropdown items (Explorer, Map) */
.nav-dropdown-menu {
  min-width: 220px;
}
.nav-dd-featured {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  margin-bottom: 2px;
}
.nav-dd-featured:hover {
  background: rgba(60, 110, 224,0.1) !important;
}
.nav-dd-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.nav-dd-text { display: flex; flex-direction: column; gap: 1px; }
.nav-dd-label { font-size: 0.83rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.nav-dd-desc  { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; }
.nav-dd-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}
.nav-dd-sub-label {
  display: block;
  padding: 4px 12px 2px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ===== CROSS-LINK STRIP (between tools) ===== */
.tool-crosslink {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: rgba(60, 110, 224,0.05);
  border: 1px solid rgba(60, 110, 224,0.12);
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.78rem;
}
.tool-crosslink-label {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.tool-crosslink a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  transition: all 0.15s;
  white-space: nowrap;
}
.tool-crosslink a:hover {
  color: var(--accent-light);
  border-color: rgba(60, 110, 224,0.3);
  background: rgba(60, 110, 224,0.08);
}
.tool-crosslink a.primary {
  background: rgba(60, 110, 224,0.1);
  border-color: rgba(60, 110, 224,0.25);
  color: var(--accent-light);
}
.tool-crosslink a.primary:hover {
  background: rgba(60, 110, 224,0.2);
  border-color: var(--accent);
}
.tool-crosslink-sep { color: var(--border-light); }

/* ===== HERO SHORT (subpages) ===== */
.hero-short {
  padding: 96px 0 40px;
}

/* ===== PARTNER STEPS ===== */
.partner-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}

.partner-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.partner-step:last-child { border-bottom: none; }

.partner-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent-light);
}

.partner-step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.partner-step-content p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 600px;
}

/* ===== MISSION NARRATIVE ===== */
.mission-narrative {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.narrative-block h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.narrative-block p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 12px;
  max-width: 700px;
}

.narrative-block p:last-child { margin-bottom: 0; }

/* ===== BELIEFS GRID ===== */
.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.belief-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s;
}

.belief-card:hover { border-color: var(--border-light); }

.belief-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.belief-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.belief-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .problem-grid,
  .paths-grid,
  .grants-grid,
  .cta-cards,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .beliefs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bridge-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .bridge-problem:first-child,
  .bridge-problem:last-child {
    border-radius: var(--radius);
    border: 1px solid var(--border);
  }

  .bridge-center {
    padding: 16px;
  }

  .bridge-arrow { display: none; }

  .pillars-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pillar-left,
  .pillar-right {
    border-radius: var(--radius);
    border: 1px solid var(--border);
  }

  .pillar-right {
    border-color: rgba(60, 110, 224, 0.3);
  }

  .pillar-center {
    padding: 16px;
  }

  .pillar-connector { display: none; }

  .funding-grid,
  .uni-row {
    grid-template-columns: 1fr;
  }

  .comparison-header, .comparison-row {
    grid-template-columns: 110px repeat(4, 1fr);
  }

  .comparison-header .comp-col {
    padding: 12px 8px;
    font-size: 0.72rem;
  }

  .comp-col {
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  .comp-label {
    font-size: 0.75rem;
  }

  .roadmap {
    grid-template-columns: 1fr 1fr;
  }

  .criteria-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats { gap: 24px; }

  .nav-toggle-label {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child { border-bottom: none; }

  .nav-links .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .nav-toggle-input:checked ~ .nav-links {
    display: flex;
  }

  /* Mobile dropdown */
  .nav-dropdown {
    position: static;
  }

  .nav-dropdown-toggle {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0 0 0 16px;
    min-width: 0;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .fast-track-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 900px) {
  [data-tip]::after,
  [data-tip]::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero { padding: 120px 0 60px; }
  .hero-short { padding: 120px 0 40px; }
  .section { padding: 60px 0; }

  .container { padding: 0 16px; }

  .beliefs-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-sub {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .roadmap {
    grid-template-columns: 1fr;
  }

  .criteria-grid {
    grid-template-columns: 1fr;
  }

  /* -- Comparison table: sticky labels + scroll -- */
  .comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 0;
    padding-right: 0;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .comparison-header, .comparison-row {
    grid-template-columns: 100px repeat(4, minmax(72px, 1fr));
    min-width: 420px;
  }

  .comparison-header .comp-col,
  .comp-col {
    padding: 10px 6px;
    font-size: 0.7rem;
  }

  .comparison-row .comp-col:first-child,
  .comparison-header .comp-col:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg);
  }

  .comparison-header .comp-col:first-child {
    background: var(--bg-card);
  }

  .comparison-row:nth-child(even) .comp-col:first-child {
    background: var(--bg);
  }

  .comp-yes, .comp-no, .comp-meh {
    font-size: 1rem;
  }

  /* -- Timeline tighter on mobile -- */
  .timeline-phase {
    gap: 16px;
  }

  .phase-marker {
    min-width: 36px;
  }

  .phase-number {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }

  .phase-content h3 {
    font-size: 1.2rem;
  }

  .phase-content p {
    font-size: 0.88rem;
  }

  .phase-tags span {
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  /* -- Pillars stack cleanly -- */
  .pillar-card {
    padding: 24px;
  }

  .pillar-list li {
    font-size: 0.85rem;
    padding: 6px 0 6px 18px;
  }

  /* -- Path cards -- */
  .path-card {
    padding: 24px;
  }

  .path-hover-detail {
    display: none;
  }

  /* -- Funding section -- */
  .funding-card {
    padding: 24px;
  }

  .funding-amount {
    font-size: 2.2rem;
  }

  .funding-bar span {
    font-size: 0.65rem;
  }

  .funding-list li {
    font-size: 0.85rem;
  }

  /* -- Section headings -- */
  .section h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .section-sub {
    font-size: 0.95rem;
  }

  /* -- Fast track box -- */
  .fast-track-inner {
    padding: 20px;
  }

  .fast-track-inner p {
    font-size: 0.88rem;
  }

  /* -- Hero br tags: let text reflow on mobile -- */
  .hero h1 br,
  .section h2 br {
    display: none;
  }

  /* -- Narrative blocks -- */
  .narrative-block h3 {
    font-size: 1.1rem;
  }

  .narrative-block p {
    font-size: 0.9rem;
  }

  /* -- Partner steps (universities page) -- */
  .partner-step {
    flex-direction: column;
    gap: 8px;
  }

  .partner-step-num {
    font-size: 1rem;
  }

  /* -- Footer -- */
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }

  .footer-right a {
    margin-right: 0 !important;
  }
}

/* ===== INTERACTIVE MAP ===== */

.map-container {
  margin-top: 40px;
}

.map-wrap {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

#au-map {
  width: 100%;
  height: auto;
  overflow: visible;
}

.au-state {
  fill: rgba(255, 255, 255, 0.03);
  stroke: var(--border-light);
  stroke-width: 0.5;
}

.uni-dot {
  cursor: pointer;
  transition: r 0.2s, opacity 0.2s;
}

.uni-dot-active {
  fill: var(--accent);
  opacity: 0.9;
}

.uni-dot-active:hover {
  opacity: 1;
}

.uni-dot-inactive {
  fill: rgba(255, 255, 255, 0.85);
  opacity: 0.6;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 0.5;
}

.uni-dot-inactive:hover {
  opacity: 1;
}

.uni-dot-glow {
  fill: var(--accent);
  opacity: 0.15;
  pointer-events: none;
  animation: dotPulse 3s ease-in-out infinite;
}

.uni-dot-selected {
  fill: var(--green) !important;
  opacity: 1 !important;
}

.uni-dot-glow-selected {
  fill: var(--green) !important;
  opacity: 0.3 !important;
  animation: dotPulseSelected 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.25; }
}

@keyframes dotPulseSelected {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.4; }
}

.map-tooltip {
  position: absolute;
  transform: translate(-50%, -100%);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.map-tooltip-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 2px;
}

.map-tooltip-detail {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.map-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.map-legend-active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow-strong);
}

.map-legend-inactive {
  background: rgba(255, 255, 255, 0.85);
  opacity: 0.7;
}

/* Cluster breakout */
.uni-dot-cluster {
  cursor: pointer;
}

.cluster-line {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 0.4;
  pointer-events: none;
}

.cluster-label {
  font-size: 3.6px;
  fill: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  pointer-events: none;
}

.cluster-breakout {
  cursor: pointer;
}

/* Cluster count number inside dot */
.cluster-count-text {
  font-size: 3.6px;
  fill: white;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: central;
}

/* Permanent university labels on map */
.uni-label-text {
  font-size: 3px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  pointer-events: none;
  dominant-baseline: central;
}
.uni-label-active {
  fill: rgba(255,255,255,0.85);
}
.uni-label-inactive {
  fill: rgba(255,255,255,0.45);
}

/* ===== CITY MAP MODAL ===== */

.city-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.city-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.city-modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  width: min(680px, 92vw);
  max-height: 88vh;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.city-modal-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--border);
}

.city-modal-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.city-modal-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.city-modal-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}

.city-modal-close:hover {
  color: var(--text);
}

.city-map {
  height: 360px;
  background: var(--bg);
}

/* Override Leaflet for dark theme */
.city-map .leaflet-control-zoom a {
  background: var(--bg-card) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.city-map .leaflet-control-attribution {
  background: rgba(10, 10, 15, 0.8) !important;
  color: var(--text-dim) !important;
  font-size: 0.65rem !important;
}

.city-map .leaflet-control-attribution a {
  color: var(--text-muted) !important;
}

.city-modal-list {
  padding: 12px 24px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-uni-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  transition: all 0.15s;
}

.city-uni-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.city-uni-chip-active {
  background: rgba(60, 110, 224, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.city-uni-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.city-uni-chip-dot-active {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow-strong);
}

.city-uni-chip-dot-inactive {
  background: rgba(255, 255, 255, 0.6);
}

.city-uni-chip-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  opacity: 0.6;
}

/* Custom Leaflet marker */
.city-marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.city-marker-dot-active {
  background: #3c6ee0;
  box-shadow: 0 0 12px rgba(60, 110, 224, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.city-marker-dot-inactive {
  background: rgba(255, 255, 255, 0.7);
}

/* ===== TECH DETAIL MODAL ===== */

.tech-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tech-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.tech-modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.tech-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.tech-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.tech-modal-sector {
  margin-bottom: 16px;
}

.tech-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 16px;
  padding-right: 40px;
}

.tech-modal-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.tech-modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
}

.tech-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tech-meta-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.tech-meta-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.tech-modal-uni-note {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-dim);
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(60, 110, 224, 0.05);
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px;
}

.tech-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-modal-actions .btn {
  text-align: center;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.tech-modal-actions .btn-primary {
  background: var(--accent);
  color: white;
  border: none;
}

.tech-modal-actions .btn-primary:hover {
  background: #5a8aff;
}

.tech-modal-actions .btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.tech-modal-actions .btn-outline:hover {
  border-color: var(--accent);
  color: var(--text);
}

@media (max-width: 640px) {
  .tech-modal-content {
    padding: 24px;
  }
  .tech-modal-title {
    font-size: 1.2rem;
  }
  .tech-modal-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SECTOR TILES ===== */

.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.sector-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 20px 12px 16px;
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  text-align: center;
  overflow: hidden;
  min-height: 140px;
}

.sector-tile-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: opacity 0.3s, transform 0.4s;
}

.sector-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.sector-tile:hover .sector-tile-img {
  opacity: 0.55;
  transform: scale(1.05);
}

.sector-tile:hover {
  transform: translateY(-2px);
  border-color: var(--sector-accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.sector-tile-active {
  border-color: var(--sector-accent) !important;
  box-shadow: 0 0 20px var(--sector-bg), inset 0 0 20px var(--sector-bg) !important;
}

.sector-tile-active .sector-tile-img {
  opacity: 0.5;
}

.sector-tile-count {
  position: relative;
  z-index: 1;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.sector-tile-name {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ===== CLEAR FILTERS ===== */

.clear-filters-btn {
  margin-left: 12px;
  padding: 4px 12px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: 100px;
  color: var(--accent-light);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.clear-filters-btn:hover {
  background: var(--accent-glow-strong);
}

/* ===== TECHNOLOGY EXPLORER ===== */

.tech-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}

.tech-search-wrap {
  flex: 1;
  min-width: 240px;
}

.tech-search {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.tech-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.tech-search::placeholder {
  color: var(--text-muted);
}

.tech-filters {
  display: flex;
  gap: 12px;
}

.tech-select {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 180px;
  transition: border-color 0.2s;
}

.tech-select:focus {
  outline: none;
  border-color: var(--accent);
}

.tech-result-count {
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Technology card grid */
.tech-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.tech-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  color: var(--text);
  text-decoration: none;
}

.tech-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--accent-glow);
  color: var(--text);
}

.tech-card-top {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tech-sector-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent-glow);
  color: var(--accent-light);
}

.tech-uni-tag {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
}

.tech-trl-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.trl-early {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.trl-mid {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}
.trl-late {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

/* ===== TRL LADDER ===== */
.trl-ladder { margin-top: 40px; }

.trl-steps {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.trl-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  background: var(--bg-card, rgba(255,255,255,0.03));
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  padding: 12px 4px 10px;
  font-family: inherit;
}

.trl-step::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background: var(--trl-color);
  transition: opacity 0.2s;
}

.trl-step:hover {
  transform: translateY(-4px);
  border-color: var(--trl-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 15px color-mix(in srgb, var(--trl-color) 20%, transparent);
}

.trl-step:hover::before { opacity: 0.15; }

.trl-step-number {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--trl-color);
  line-height: 1;
  position: relative;
}

.trl-step-count {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim, #888);
  margin-top: auto;
  position: relative;
}

.trl-step-label {
  font-size: 0.6rem;
  color: var(--text-muted, #666);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
  position: relative;
  text-align: center;
  line-height: 1.2;
  min-height: 2.4em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.trl-step-tag {
  position: relative;
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--trl-color);
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  white-space: nowrap;
}

.trl-phase-labels {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.trl-phase-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 0;
  border-top: 2px solid;
}

.trl-phase-discovery { color: #f87171; border-color: rgba(239, 68, 68, 0.3); }
.trl-phase-development { color: #fbbf24; border-color: rgba(245, 158, 11, 0.3); }
.trl-phase-deployment { color: #4ade80; border-color: rgba(34, 197, 94, 0.3); }

.trl-phase-desc {
  font-size: 0.55rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-dim);
  margin-top: 2px;
  line-height: 1.3;
}

.trl-sector-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 4px;
  background: var(--sc-bg);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
  font-family: inherit;
}
.trl-sector-btn:hover { border-color: var(--sc-accent); }

.trl-show-all-btn {
  width: 100%;
  padding: 10px;
  background: var(--btn-color);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}
.trl-show-all-btn:hover { opacity: 0.85; }

@media (max-width: 640px) {
  .trl-steps { flex-wrap: wrap; }
  .trl-step { flex: 0 0 calc(33.33% - 4px); min-height: 80px !important; }
  .trl-phase-labels { flex-wrap: wrap; }
  .trl-phase-label { flex: 0 0 calc(33.33% - 4px); }
}

.tech-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
}

.tech-card-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tech-card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.tech-card-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-light);
  transition: color 0.2s;
}

.tech-card:hover .tech-card-link {
  color: var(--text);
}

.tech-no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  font-size: 1rem;
}

mark {
  background: var(--accent-glow-strong);
  color: var(--accent-light);
  padding: 1px 3px;
  border-radius: 3px;
}

/* University overview grid */
.uni-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.uni-overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.uni-overview-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--text);
}

.uni-overview-muted {
  opacity: 0.55;
}

.uni-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.uni-overview-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.uni-overview-rank {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-light);
  font-family: 'JetBrains Mono', monospace;
}

.uni-overview-city {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.uni-overview-stats {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.uni-overview-count {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
}

.uni-count-active {
  background: var(--accent-glow);
  color: var(--accent-light);
}

.uni-overview-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
}

.uni-overview-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 12px;
}

.uni-overview-tto {
  font-size: 0.8rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-top: auto;
}

.uni-overview-card:hover .uni-overview-tto {
  color: var(--text);
}

@media (max-width: 768px) {
  .tech-list {
    grid-template-columns: 1fr;
  }

  .tech-filters {
    flex-direction: column;
    width: 100%;
  }

  .tech-select {
    min-width: unset;
    width: 100%;
  }

  .uni-overview-grid {
    grid-template-columns: 1fr;
  }

  .sector-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .sector-tile {
    padding: 14px 10px;
    min-height: 110px;
  }

  .sector-tile-count {
    font-size: 1.4rem;
  }

  .sector-tile-name {
    font-size: 0.65rem;
  }

  .map-legend {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}
