/* ==========================================================
   NextWave Science — Global Stylesheet
   This file is shared by ALL pages:
   index.html, about.html, research.html, people.html,
   publications.html, news.php, videos.html,
   collaborate.html, portal.html, contact.html, legal.html

   Design goals:
   - Deep navy / slate background
   - Teal + orange accents for activity / warnings
   - High contrast text for accessibility
   - Clean modern research aesthetic
   - Mobile-first responsive layout
   ========================================================== */

/* ---------- CSS RESET-ish + ROOT THEME TOKENS ---------- */
:root {
  /* Background layers */
  --bg-page: #0d1b2a;        /* page background */
  --bg-section: #0f172a;     /* section alt background */
  --bg-card: #1e293b;        /* main card surface */
  --bg-card-alt: #1a2537;    /* secondary card surface */
  --bg-header-glass: rgba(13,27,42,0.8);

  /* Text colors */
  --text-main: #f8fafc;      /* bright text */
  --text-mid: #cbd5e1;       /* medium text */
  --text-dim: #94a3b8;       /* dim/supporting text */

  /* Accents */
  --accent-teal: #14b8a6;
  --accent-teal-soft: rgba(20,184,166,0.15);
  --accent-orange: #f97316;
  --accent-orange-soft: rgba(249,115,22,0.1);

  /* Lines / borders / shadows */
  --line: rgba(255,255,255,0.07);
  --shadow-card: 0 30px 80px rgba(0,0,0,0.8);
  --shadow-card-strong: 0 40px 120px rgba(0,0,0,0.9);

  /* Radius scale */
  --radius-sm: .5rem;
  --radius-lg: .75rem;
  --radius-xl: 1.25rem;
  --radius-full: 999px;

  /* Page max width */
  --max-width: 1280px;
  --content-narrow: 800px;

  /* Typography */
  --font-stack: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-body: 0.95rem;
  --font-size-small: 0.8rem;
  --font-size-tiny: 0.7rem;
  --line-height-body: 1.5;
}

/* Normalize-ish */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-stack);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe {
  max-width: 100%;
  display: block;
}

h1,h2,h3,h4,h5,h6 {
  line-height: 1.2;
  color: var(--text-main);
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -0.04em;
}

p {
  margin: 0 0 1em;
  color: var(--text-dim);
  font-size: var(--font-size-body);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* High contrast keyboard focus (WCAG) */
:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 2px;
}

/* ==========================================================
   LAYOUT UTILITIES
   ========================================================== */

.wrapper {
  max-width: var(--max-width);
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(1rem,2vw,2rem);
}

.section-pad {
  padding-block: clamp(3rem, 4vw, 4rem);
  background-color: transparent;
  border-bottom: 1px solid var(--line);
}

.section-alt {
  background-color: var(--bg-section);
}

.section-dark {
  background-color: var(--bg-page);
}

.section-noborder {
  border-bottom: 0;
}

.grid { display: grid; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* A narrower wrapper for text-heavy pages like /about, /contact, /legal */
.content-narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
}

/* ==========================================================
   TYPOGRAPHY SCALE
   ========================================================== */

/* Page headline (top of About, News, etc.) */
.page-headline {
  font-size: clamp(1.3rem, 0.6vw + 1rem, 1.7rem);
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.04em;
  margin: 0 0 .75rem;
  line-height: 1.2;
}

/* Supporting lead paragraph under headline */
.lead {
  font-size: .95rem;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 60ch;
  margin-bottom: 1rem;
}

.meta-line {
  font-size: var(--font-size-small);
  line-height: 1.4;
  color: var(--text-mid);
}

/* section header block used everywhere */
.section-head {
  margin-bottom: 2rem;
  max-width: 48rem;
}
.section-title {
  font-size: clamp(1.1rem,0.4vw + 1rem,1.3rem);
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 .5rem;
}
.section-desc {
  font-size: .9rem;
  color: var(--text-dim);
  max-width: 60ch;
  line-height: 1.5;
  margin: 0;
}

/* eyebrow label above headings */
.eyebrow {
  font-size: var(--font-size-tiny);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.eyebrow-dot {
  width: .4rem;
  height: .4rem;
  border-radius: var(--radius-full);
  background: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal);
}

/* small helper text */
.small-note {
  font-size: var(--font-size-tiny);
  color: var(--text-mid);
  line-height: 1.4;
}

/* ==========================================================
   GLOBAL BUTTONS
   ========================================================== */

.btn-row,
.hero-cta-row,
.collab-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.btn-primary {
  background: var(--accent-teal);
  color: #0a0f1a;
  font-weight: 600;
  border: 0;
  border-radius: var(--radius-full);
  font-size: .9rem;
  padding: .75rem 1.25rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(20,184,166,0.3);
  transition: box-shadow .15s ease, transform .15s ease;
}
.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 20px 40px rgba(20,184,166,0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-teal);
  color: var(--accent-teal);
  font-weight: 500;
  font-size: .9rem;
  border-radius: var(--radius-full);
  padding: .6rem 1rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn-outline:hover {
  background: var(--accent-teal);
  color: #0a0f1a;
}

/* date badge and tag pills (news cards, etc.) */
.badge-date {
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-tiny);
  font-weight: 500;
  color: var(--accent-orange);
  background: var(--accent-orange-soft);
  border: 1px solid rgba(249,115,22,0.4);
  padding: .35rem .6rem;
  border-radius: var(--radius-full);
  line-height: 1.2;
}
.tag-pill,
.pub-tag-pill {
  border-radius: var(--radius-full);
  background: rgba(20,184,166,0.08);
  border: 1px solid rgba(20,184,166,0.4);
  color: var(--accent-teal);
  font-size: .7rem;
  font-weight: 500;
  padding: .3rem .6rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
}

/* ORCID pill badge */
.orcid-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--font-size-tiny);
  line-height: 1.2;
  background: rgba(20,184,166,0.08);
  border: 1px solid rgba(20,184,166,0.4);
  color: var(--accent-teal);
  border-radius: var(--radius-full);
  padding: .3rem .6rem;
  font-weight: 500;
  white-space: nowrap;
}
.orcid-link {
  color: var(--accent-teal);
  font-weight: 500;
  text-decoration: none;
}
.orcid-link:hover {
  text-decoration: underline;
}

/* colored dots used in highlight meta */
.dot-teal,
.dot-orange {
  width: .5rem;
  height: .5rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px currentColor;
}
.dot-teal {
  background: var(--accent-teal);
  color: var(--accent-teal);
}
.dot-orange {
  background: var(--accent-orange);
  color: var(--accent-orange);
}

/* ==========================================================
   ACCESSIBILITY SKIP LINK
   ========================================================== */

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -1;
  background: var(--accent-teal);
  color: #0a0f1a;
  padding: .75rem 1rem;
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 600;
}
.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  z-index: 10000;
  box-shadow: 0 20px 40px rgba(20,184,166,0.4);
}

/* ==========================================================
   NAVBAR / HEADER
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background:
    radial-gradient(circle at 10% -10%, rgba(20,184,166,0.15) 0%, rgba(13,27,42,0) 60%),
    var(--bg-header-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Brand lockup */
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}
.brand-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.brand-title .dot {
  width: .5rem;
  height: .5rem;
  border-radius: var(--radius-full);
  background: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal);
}
.brand-sub {
  font-size: .7rem;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: -0.03em;
}

/* desktop nav links */
.primary-nav {
  display: none;
}
.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
  margin: 0;
  gap: 1rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-mid);
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  padding: .4rem .6rem;
  border-radius: var(--radius-full);
  transition: color .15s ease, background .15s ease;
  text-decoration: none;
  color: var(--text-mid);
}
.primary-nav a:hover {
  background: rgba(148,163,184,0.07);
  color: var(--text-main);
}

/* mobile menu button */
.mobile-menu-btn {
  background: rgba(148,163,184,0.07);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: .5rem .75rem;
  line-height: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-main);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
}
.burger-lines {
  width: 1rem;
  height: .75rem;
  display: grid;
  align-content: space-between;
}
.burger-lines span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: var(--radius-full);
}

/* mobile nav drawer */
.mobile-drawer {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: 1rem;
  min-width: 13rem;
  display: none;
}
.mobile-drawer.open {
  display: block;
}
.mobile-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .25rem;
  font-size: .9rem;
  font-weight: 500;
}
.mobile-drawer a {
  color: var(--text-main);
  display: block;
  padding: .6rem .75rem;
  border-radius: var(--radius-lg);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
}
.mobile-drawer a:hover {
  background: rgba(148,163,184,0.07);
  border-color: var(--line);
}

/* ==========================================================
   HERO / LANDING BLOCKS
   (Used on index.html)
   ========================================================== */

.hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(20,184,166,0.18) 0%, rgba(0,0,0,0) 60%),
    radial-gradient(circle at 80% 0%, rgba(249,115,22,0.12) 0%, rgba(0,0,0,0) 60%),
    var(--bg-section);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  gap: 2rem;
}
.hero-left {
  max-width: 40rem;
}
.hero-headline {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem);
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.hero-headline strong {
  color: var(--accent-teal);
  font-weight: 600;
}
.hero-desc {
  font-size: .95rem;
  color: var(--text-dim);
  max-width: 45ch;
  line-height: 1.5;
}
.hero-meta {
  font-size: .75rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-top: 1rem;
}
.hero-microcred {
  font-size: .7rem;
  color: var(--text-mid);
  margin-top: .75rem;
  line-height: 1.4;
}

/* Hero side card (image + caption) */
.hero-right {
  position: relative;
}
.hero-card {
  background: linear-gradient(
    160deg,
    rgba(30,41,59,0.6) 0%,
    rgba(15,23,42,0.4) 100%
  );
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card-strong);
  padding: 1rem 1rem 1.25rem;
  max-width: 22rem;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(20,184,166,0.2) 0%, rgba(0,0,0,0) 70%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-thumb {
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(20,184,166,0.15) 0%, rgba(0,0,0,0) 60%),
    radial-gradient(circle at 80% 80%, rgba(249,115,22,0.1) 0%, rgba(0,0,0,0) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: .8rem;
  text-align: center;
  padding: 1rem;
}
.hero-card h3 {
  font-size: .9rem;
  color: var(--text-main);
  margin-top: .75rem;
  margin-bottom: .25rem;
  font-weight: 500;
  line-height: 1.3;
}
.hero-card p {
  font-size: .8rem;
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================
   RESEARCH PROGRAM CARDS (research.html + homepage section)
   ========================================================== */

.research-grid {
  display: grid;
  gap: 1rem;
}
.research-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1rem 1rem 1.25rem;
  box-shadow: var(--shadow-card);
  min-height: 100%;
  position: relative;
  overflow: hidden;
}
.research-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 30% 30%, rgba(20,184,166,0.3) 0%, rgba(0,0,0,0) 70%);
  border: 1px solid var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 500;
  color: var(--accent-teal);
  box-shadow: 0 20px 40px rgba(20,184,166,0.3);
}
.research-card h3 {
  color: var(--text-main);
  font-weight: 500;
  font-size: .95rem;
  margin-top: .75rem;
  margin-bottom: .5rem;
  line-height: 1.3;
}
.research-card p {
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0;
}
.research-card small {
  display: block;
  color: var(--text-mid);
  font-size: .7rem;
  margin-top: .5rem;
  line-height: 1.4;
}

/* ==========================================================
   FEATURED HIGHLIGHT BLOCK (index.html style)
   ========================================================== */

.highlight-inner {
  display: grid;
  gap: 1.5rem;
}
.highlight-visual {
  background: #000;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card-strong);
  min-height: 200px;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(20,184,166,0.18) 0%,rgba(0,0,0,0)60%),
    radial-gradient(circle at 80% 80%, rgba(249,115,22,0.12) 0%,rgba(0,0,0,0)60%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.highlight-text h2 {
  font-size: clamp(1rem,0.4vw + .9rem,1.2rem);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.highlight-text p {
  font-size: .9rem;
  color: var(--text-dim);
  max-width: 60ch;
  line-height: 1.5;
}
.highlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  font-size: .75rem;
  margin-top: 1rem;
  color: var(--text-mid);
}
.highlight-meta-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  line-height: 1.4;
  font-size: .75rem;
  color: var(--text-mid);
}

/* ==========================================================
   PEOPLE / LAB CARDS (people.html)
   ========================================================== */

.people-grid {
  display: grid;
  gap: 1rem;
}
.people-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 1rem 1rem 1.25rem;
  display: grid;
  gap: .75rem;
}
.people-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .75rem 1rem;
}
.avatar {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 30% 30%, rgba(20,184,166,0.3) 0%, rgba(0,0,0,0) 70%);
  border: 1px solid var(--accent-teal);
  box-shadow: 0 20px 40px rgba(20,184,166,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 600;
  color: var(--accent-teal);
}
.people-meta h3 {
  font-size: .9rem;
  margin: 0 0 .25rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.3;
}
.people-meta p {
  font-size: .8rem;
  margin: 0;
  color: var(--text-dim);
  line-height: 1.4;
}
.capabilities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .4rem;
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.people-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .4rem;
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.people-card ul li {
  line-height: 1.4;
  font-size: .8rem;
  color: var(--text-dim);
}

/* ==========================================================
   PUBLICATIONS LIST (publications.html)
   ========================================================== */

.pub-wrapper {
  display: grid;
  gap: 1rem;
}
.pub-intro {
  font-size: .8rem;
  color: var(--text-mid);
  line-height: 1.4;
}
.pub-list {
  list-style: decimal;
  color: var(--text-main);
  font-size: .8rem;
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: .75rem;
}
.pub-list li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: .75rem 1rem;
  color: var(--text-mid);
  line-height: 1.4;
  box-shadow: var(--shadow-card);
}
.pub-title {
  color: var(--text-main);
  font-weight: 500;
  display: block;
  margin-bottom: .4rem;
  font-size: .8rem;
  line-height: 1.3;
}
.pub-meta {
  font-size: .7rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.pub-tags {
  margin-top: .5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ==========================================================
   NEWS POSTS (news.php)
   ========================================================== */

.news-list {
  display: grid;
  gap: 1rem;
}
.news-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1rem 1rem 1.25rem;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: .5rem;
}
.news-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  font-size: .7rem;
  color: var(--text-mid);
}
.news-title {
  font-size: .95rem;
  font-weight: 500;
  margin: 0;
  color: var(--text-main);
  line-height: 1.3;
}
.news-body {
  margin: 0;
  color: var(--text-dim);
  font-size: .8rem;
  line-height: 1.4;
}
.news-links {
  font-size: .75rem;
  line-height: 1.4;
  color: var(--accent-teal);
}
.news-links a {
  color: var(--accent-teal);
  font-weight: 500;
}

/* generic figure block inside news or research posts */
.figure-card {
  margin-top: .75rem;
  max-width: 100%;
}
.figure-card img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: #000;
  object-fit: cover;
}
.figure-card figcaption {
  font-size: .75rem;
  color: var(--text-mid);
  margin-top: .5rem;
  line-height: 1.4;
}

/* when you upload a video file directly */
.figure-vid {
  margin-top: .75rem;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: #000;
  outline: 0;
}

/* ==========================================================
   VIDEO SECTION (videos.html, also sometimes embedded in posts)
   ========================================================== */

.video-grid {
  display: grid;
  gap: 1.5rem;
}
.video-player {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-card-strong);
  background: #000;
}
.video-player iframe,
.video-player video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}
.video-text h2 {
  font-size: clamp(1rem,0.4vw + .9rem,1.2rem);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.video-text p {
  font-size: .9rem;
  color: var(--text-dim);
  max-width: 60ch;
  line-height: 1.5;
}

/* ==========================================================
   COLLABORATE / PORTAL BLOCKS (collaborate.html, portal.html)
   ========================================================== */

.collab-card {
  background:
    radial-gradient(circle at 20% 20%, rgba(20,184,166,0.15) 0%, rgba(0,0,0,0) 60%),
    radial-gradient(circle at 80% 80%, rgba(249,115,22,0.12) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(160deg, rgba(30,41,59,0.6) 0%, rgba(15,23,42,0.4) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card-strong);
  padding: 2rem clamp(1rem,2vw,2rem);
  display: grid;
  gap: 1rem;
  text-align: left;
}
.collab-card h2 {
  font-size: clamp(1rem,0.4vw + .9rem,1.2rem);
  margin: 0 0 .5rem;
  line-height: 1.3;
}
.collab-card p {
  font-size: .9rem;
  margin: 0;
  color: var(--text-dim);
  max-width: 60ch;
  line-height: 1.5;
}

/* Portal preview card */
.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 1rem 1rem 1.25rem;
  display: grid;
  gap: .75rem;
}
.portal-card h3 {
  font-size: .9rem;
  font-weight: 500;
  margin: 0;
  color: var(--text-main);
  line-height: 1.3;
}
.portal-card p {
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0;
}
.portal-login {
  display: grid;
  gap: .5rem;
  max-width: 18rem;
}
.portal-login label {
  font-size: .7rem;
  color: var(--text-mid);
  font-weight: 500;
  display: block;
}
.portal-login input {
  width: 100%;
  background: #0a1420;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  color: var(--text-main);
  font-size: .8rem;
  line-height: 1.3;
  padding: .6rem .75rem;
}
.portal-hint {
  font-size: .7rem;
  color: var(--text-mid);
  line-height: 1.4;
}

/* ==========================================================
   CONTACT PAGE / FORMS (contact.html)
   ========================================================== */

.contact-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.contact-item-title {
  color: var(--text-main);
  font-size: .9rem;
  font-weight: 500;
  margin: 0 0 .25rem;
  line-height: 1.3;
}
.contact-item-desc {
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0;
}
.contact-accent {
  color: var(--accent-teal);
  font-weight: 500;
  text-decoration: none;
}

/* embed video meeting frame if you choose Jitsi */
.meeting-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-card-strong);
  background: #000;
}
.meeting-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================
   LEGAL / DISCLAIMER CARDS (legal.html)
   ========================================================== */

.legal-grid {
  display: grid;
  gap: 1rem;
}
.legal-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1rem 1rem 1.25rem;
  box-shadow: var(--shadow-card);
}
.legal-card h3 {
  font-size: .8rem;
  margin-bottom: .5rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.3;
}
.legal-card p {
  font-size: .7rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================
   FOOTER STYLES (shared on every page)
   ========================================================== */

.site-footer {
  background: #0a1420;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--text-dim);
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
.footer-col h4 {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: .75rem;
  letter-spacing: -.03em;
  line-height: 1.3;
}
.footer-col p,
.footer-col a,
.footer-col li {
  color: var(--text-dim);
  font-size: .8rem;
  line-height: 1.5;
  margin: 0;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .4rem;
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: .7rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
}

/* ==========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================== */

/* Smallest tweaks */
@media (max-width: 360px) {
  .hero-headline {
    font-size: 1.3rem;
  }
}

/* >=480px */
@media (min-width: 480px) {
  .hero-card {
    padding: 1rem 1.25rem 1.5rem;
  }
  .hero-thumb {
    font-size: .8rem;
  }
}

/* >=640px */
@media (min-width: 640px) {

  /* Show desktop nav, hide burger menu on larger screens */
  .primary-nav {
    display: block;
  }
  .mobile-menu-btn {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .hero-left {
    max-width: 32rem;
  }
  .hero-card {
    margin-inline: 0 0 0 auto;
  }

  .research-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .highlight-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .people-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .video-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .video-player {
    order: 2;
  }
  .video-text {
    order: 1;
  }

  .collab-card {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    text-align: left;
  }

  .legal-grid {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

/* >=1024px */
@media (min-width: 1024px) {
  .research-grid {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
}
