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

:root {
  --primary: #0066cc;
  --primary-glow: #0099ff;
  --accent: #00d4ff;
  --purple: #7c3aed;
  --dark: #080c1a;
  --dark-2: #0d1428;
  --dark-3: #131c35;
  --surface: #1a2340;
  --border: #2a3a5c;
  --text: #e2e8f0;
  --text-muted: #8fa3c0;
  --grad-main: linear-gradient(135deg, #0066cc, #00d4ff);
  --grad-purple: linear-gradient(135deg, #7c3aed, #0066cc);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--dark-2);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; }

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

.content-narrow {
  max-width: 800px;
  margin: 0 auto;
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(8, 12, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 180, 255, 0.1);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* ===== HERO (FORSIDE) ===== */
.hero {
  background: var(--dark);
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,102,204,0.18) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-tag {
  display: inline-block;
  background: rgba(0,180,255,0.12);
  border: 1px solid rgba(0,180,255,0.3);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: white;
}

.gradient-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== PAGE HERO (INNER PAGES) ===== */
.page-hero {
  background: var(--dark);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(0,102,204,0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.page-hero .hero-tag {
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: white;
}

.page-hero .hero-sub {
  margin: 0;
  text-align: left;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.875rem 1.875rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad-main);
  color: white;
  box-shadow: 0 4px 20px rgba(0,102,204,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,180,255,0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--dark);
  box-shadow: 0 8px 24px rgba(0,212,255,0.25);
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--dark-3);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--grad-main);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.section-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* ===== CARDS ===== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,180,255,0.3);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: white;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.card-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.card-link:hover { text-decoration: underline; }

.card-link-block {
  display: block;
  text-decoration: none;
}

.card-link-block h3 { color: var(--accent); }

/* ===== TECH GRID ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.25s;
}

.tech-card:hover {
  border-color: rgba(0,180,255,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,102,204,0.2);
}

.tech-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.tech-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.6rem;
}

.tech-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ===== UNIVERSITY GRID ===== */
.uni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.uni-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.uni-logo {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1.5px solid rgba(0,212,255,0.3);
  border-radius: 6px;
  display: inline-block;
  padding: 0.25rem 0.6rem;
  margin-bottom: 1rem;
}

.uni-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: white;
}

.uni-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.center-cta {
  text-align: center;
  margin-top: 1rem;
}

/* ===== RESEARCH HIGHLIGHTS ===== */
.research-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.research-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}

.research-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.research-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 0;
}

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

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== CONCEPT BLOCKS (THEORY PAGE) ===== */
.concept-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 2rem;
}

.concept-block.reverse {
  direction: rtl;
}

.concept-block.reverse > * {
  direction: ltr;
}

.concept-number {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.concept-number::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0,212,255,0.2);
}

.concept-text h2 {
  text-align: left;
  font-size: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0;
}

.concept-text h2::after { display: none; }

.concept-text h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 1.25rem 0 0.5rem;
}

.concept-text p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.formula-box {
  background: var(--dark);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
}

.formula-box.large { text-align: center; padding: 1.5rem; }

.formula {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.1rem;
  color: var(--accent);
  font-style: italic;
}

.large-formula {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.formula-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.highlight-box {
  background: rgba(0,102,204,0.1);
  border: 1px solid rgba(0,180,255,0.2);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
}

.highlight-box h3 {
  color: var(--accent) !important;
  margin-bottom: 0.75rem !important;
  margin-top: 0 !important;
  font-size: 1rem !important;
}

.highlight-box p {
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255,255,255,0.75) !important;
}

.concept-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 180px;
}

.visual-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Visual diagrams */
.entanglement-diagram {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.particle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
  animation: quantumPulse 2s ease-in-out infinite;
}

.particle-a {
  background: radial-gradient(circle, #0099ff, #003d99);
  box-shadow: 0 0 24px rgba(0,153,255,0.5);
}

.particle-b {
  background: radial-gradient(circle, #7c3aed, #4c1d95);
  box-shadow: 0 0 24px rgba(124,58,237,0.5);
  animation-delay: 1s;
}

@keyframes quantumPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.entangle-line {
  height: 2px;
  width: 80px;
  background: linear-gradient(90deg, #0099ff, #7c3aed);
  position: relative;
  animation: entangleFlow 2s linear infinite;
}

@keyframes entangleFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Bloch sphere diagram */
.bloch-sphere-diagram {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(0,180,255,0.4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 40% 40%, rgba(0,102,204,0.2), transparent);
}

.sphere-state {
  position: absolute;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  font-family: "Georgia", serif;
}

.sphere-state.north { top: -1.5rem; }
.sphere-state.south { bottom: -1.5rem; }

/* QC diagram */
.qc-diagram {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  font-family: monospace;
  font-size: 0.9rem;
}

.qubit-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.qubit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  color: var(--accent);
  font-size: 0.8rem;
  white-space: nowrap;
}

.gate {
  width: 36px;
  height: 36px;
  border: 2px solid;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.h-gate { border-color: #0099ff; color: #0099ff; }
.cnot { border-color: #00cc88; color: #00cc88; border-radius: 50%; }
.cnot-target { border-color: #00cc88; color: #00cc88; border-radius: 50%; font-size: 1.2rem; }

.wire { flex: 1; height: 2px; background: var(--border); }
.wire.long { width: 36px; flex: none; }

/* QKD diagram */
.qkd-diagram {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qkd-node {
  background: var(--surface);
  border: 1px solid rgba(0,180,255,0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  white-space: nowrap;
}

.qkd-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.photon-stream { display: flex; gap: 0.5rem; color: var(--accent); font-size: 1.1rem; }
.channel-label { font-size: 0.7rem; color: var(--text-muted); }

/* Timeline mini */
.timeline-mini {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.timeline-mini h3 {
  color: var(--text) !important;
  margin-bottom: 1rem !important;
}

.tl-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.tl-year {
  background: rgba(0,102,204,0.15);
  border: 1px solid rgba(0,180,255,0.2);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}

.tl-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== PLAYER GRID ===== */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.player-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.player-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
}

.player-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ===== UNIVERSITY DETAIL CARDS ===== */
.uni-full-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.uni-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}

.uni-badge {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  white-space: nowrap;
}

.ntnu-badge { background: rgba(0,102,204,0.2); border: 1px solid rgba(0,180,255,0.3); color: var(--accent); }
.uio-badge  { background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.4); color: #a78bfa; }
.uib-badge  { background: rgba(0,140,100,0.2); border: 1px solid rgba(0,200,120,0.3); color: #34d399; }
.uit-badge  { background: rgba(200,80,0,0.15); border: 1px solid rgba(250,120,50,0.3); color: #fb923c; }

.uni-info h2 {
  text-align: left;
  font-size: 1.5rem;
  padding-bottom: 0;
}

.uni-info h2::after { display: none; }

.uni-location {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.2rem;
}

.uni-body {
  padding: 2rem;
}

.uni-body > p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.program-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.program-level {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.program-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.program-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.program-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.program-meta span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.course-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.course-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.course-list li strong {
  color: var(--accent);
  font-family: monospace;
}

/* ===== REQ GRID ===== */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.req-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.req-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.req-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== CAREER GRID ===== */
.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.career-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.career-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.75rem;
}

.career-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.career-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== RESEARCH CENTER CARDS ===== */
.research-center-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.rc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rc-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(0,102,204,0.2);
  border: 1px solid rgba(0,180,255,0.3);
  color: var(--accent);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
}

.rc-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: white;
}

.research-center-card > p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-size: 0.925rem;
}

.research-areas {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.tag {
  background: rgba(0,102,204,0.12);
  border: 1px solid rgba(0,180,255,0.15);
  color: rgba(180,220,255,0.8);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
}

.research-center-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.project-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 1rem;
  border-left: 2px solid rgba(0,180,255,0.2);
}

.project-list strong {
  color: var(--text);
}

/* ===== COLLAB GRID ===== */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.collab-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.collab-logo {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 1rem;
}

.collab-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.collab-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.collab-card h3 a:hover {
  color: var(--accent);
}

.collab-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Research center links */
.rc-header h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.rc-header h3 a:hover {
  color: var(--accent);
}

/* ===== FUNDING LIST ===== */
.funding-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.funding-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.funding-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.4rem;
}

.funding-item h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.funding-item h3 a:hover {
  color: var(--accent);
}

.funding-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== OM-SIDEN ===== */
.styled-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.5rem;
}

.styled-list li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
  line-height: 1.65;
}

.styled-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.styled-list li strong { color: var(--text); }

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.resource-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.resource-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
}

/* Related sites grid */
.related-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.related-sites-grid .resource-item {
  padding: 1.25rem;
}

.related-sites-grid .styled-list {
  margin: 0;
}

.related-sites-grid .styled-list li {
  padding: 0.3rem 0 0.3rem 1.25rem;
}

.related-sites-grid .styled-list a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.related-sites-grid .styled-list a:hover {
  color: white;
  text-decoration: underline;
}

/* Uni header links */
.uni-info h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.uni-info h2 a:hover {
  color: var(--accent);
}

.uni-location a {
  color: var(--accent);
  text-decoration: none;
}

.uni-location a:hover {
  text-decoration: underline;
}

/* Prose sections */
.section .content-narrow h2 {
  text-align: left;
  font-size: 1.75rem;
  padding-bottom: 0;
  margin: 2rem 0 0.75rem;
}

.section .content-narrow h2:first-child {
  margin-top: 0;
}

.section .content-narrow h2::after { display: none; }

.section .content-narrow p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ===== FEATURE LIST ===== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.25rem;
}

.feature-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.5rem 0 0.5rem 1.25rem;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  line-height: 1.5;
}

.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.feature-list li strong { color: var(--text); }

/* ===== MOLECULE SVG ===== */
.molecule-diagram svg {
  display: block;
}

/* ===== SENSING DIAGRAM ===== */
.sensing-diagram {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.sensor-item {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.sensor-icon { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }

.sensor-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.accuracy-bar {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  height: 6px;
  margin-bottom: 0.3rem;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--grad-main);
  border-radius: 4px;
}

.acc-label { font-size: 0.72rem; color: var(--text-muted); }

/* ===== UNCERTAINTY DIAGRAM ===== */
.uncertainty-diagram { width: 100%; }

.uncertainty-graph {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.wave-packet {
  border: 1px solid rgba(0,180,255,0.3);
  border-radius: 6px;
  padding: 0.75rem 1rem;
}

.wave-packet.narrow { border-color: rgba(0,212,255,0.5); }
.wave-packet.wide   { border-color: rgba(124,58,237,0.5); }

.wave-packet .label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.wave-packet .label-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ===== DOUBLE SLIT ===== */
.double-slit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  min-width: 260px;
}

.slit-source { font-size: 1.5rem; color: #ffcc00; }

.slit-wall {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  width: 10px;
  height: 80px;
  border-radius: 2px;
  position: relative;
  justify-content: space-evenly;
  align-items: center;
}

.slit {
  width: 8px;
  height: 14px;
  background: var(--dark);
}

.interference-pattern {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.fringe {
  height: 8px;
  border-radius: 2px;
}

.fringe.bright { background: rgba(0,212,255,0.7); }
.fringe.dim    { background: rgba(0,212,255,0.15); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .concept-block,
  .concept-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }

  .hero { min-height: 60vh; padding: 4rem 0 3rem; }

  .section { padding: 3rem 0; }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .uni-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rc-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}
