:root{
  /* Light theme */
  --bg: #ffffff;
  --surface: #f5f7fb;
  --card: #f8f9fc;
  --text: #0b1220;
  --muted: #4a566b;

  --brand: #3b82f6;      /* blue-500 */
  --brand-2: #60a5fa;    /* blue-400 */
  --brand-text-on: #001018;

  --border: #e6ebf2;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(0,0,0,.08);
}

/* Base */
*{ box-sizing:border-box }
html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.6;
}
a{ color:var(--brand); text-decoration:none }
a:hover{ text-decoration:underline }
.container{ max-width:1100px; margin:0 auto; padding:24px }

/* Header / Footer */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(8px);
  background: rgba(255,255,255,.90);
  border-bottom: 1px solid var(--border);
}

.site-header .container{
  max-width: 1360px;
  padding: 12px 20px;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.brand-mark{
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  flex: 0 0 auto;
}

.brand-text{
  opacity: .95;
  white-space: nowrap;
  line-height: 1.15;
}

.nav{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: nowrap;
}

.nav a{
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.nav a:hover{
  background: rgba(59,130,246,.12);
  text-decoration: none;
}

.site-header .button{
  padding: 8px 14px;
  white-space: nowrap;
  box-shadow: none;
}

.site-footer{
  border-top:1px solid var(--border);
  margin-top:30px;
  background:#fff;
}
.footer-grid{ display:grid; grid-template-columns:2fr 1fr 1fr; gap:18px; margin-bottom:12px }
.copy{ color:var(--muted); border-top:1px dashed var(--border); padding-top:12px; text-align:center }

/* Buttons / Cards */
.button{
  display:inline-block;
  border:1px solid var(--border);
  padding:10px 14px;
  border-radius:12px;
  background:var(--card);
  box-shadow:var(--shadow);
}
.button.primary{
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:var(--brand-text-on);
  font-weight:700;
}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}

/* Hero (generic) */
.hero{ padding-top:28px }
.hero-grid{ display:grid; grid-template-columns:1.2fr .8fr; gap:28px }
.headline{ font-size:48px; line-height:1.1; margin:8px 0 8px }
.tagline{ color:var(--muted); margin:0 0 16px }
.cta{ display:flex; gap:10px; flex-wrap:wrap; margin:10px 0 12px }
.bullets{ color:var(--muted) }
.hero-card img{ width:100%; height:auto; border-radius:14px }

/* Hero with NASA background */
.hero--image{
  position: relative;
  padding: 56px 0 40px;
  min-height: 420px;
  overflow: hidden;
}
.hero--image .hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;
}
.hero--image::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,.55) 0%,
      rgba(0,0,0,.35) 35%,
      rgba(0,0,0,.16) 65%,
      rgba(0,0,0,.08) 100%);
}
.hero--image .container{ position: relative; z-index: 1; }
.hero--image .headline{ color:#fff; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.hero--image .tagline{ color:rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.hero--image .cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0 0;
  padding:8px 10px;
  border-radius:12px;
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(3px);
}

/* Layout blocks */
.split{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:28px auto }
.page h1{ margin-top:4px }
.pub-list{ display:grid; gap:16px }
.pub{ background:var(--card); padding:16px; border-radius:var(--radius); border:1px solid var(--border) }
.pub .meta{ color:var(--muted) }
.links{ display:flex; gap:10px; flex-wrap:wrap }
.media-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px }

/* Video wrappers (reserve height for CLS) */
.video-wrapper{
  position:relative;
  border-radius:12px;
  border:1px solid var(--border);
  overflow:hidden;
  /* new: fixed aspect so it doesn't jump */
  aspect-ratio: 16 / 9;
}
.video-wrapper iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
#notebooklm-video{
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  background:#000;
  border-radius:12px;
}

/* QR */
#qr canvas,
#qr img{
  display:block;
  margin-top:6px;
  border-radius:8px;
  border:1px solid var(--border);
}

/* Intro overlay (single, clean version) */
.intro-banner{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(2px);
  padding:18px;
}
.intro-card{
  position:relative;
  width:min(980px, 100%);
  max-height:94vh;
  background:#fff;
  border-radius:16px;
  box-shadow:0 18px 60px rgba(0,0,0,.25);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.intro-img{
  display:block;
  width:100%;
  height:auto;
  max-height:68vh;         /* keeps button row visible */
  object-fit:contain;
}
.intro-actions{
  display:flex;
  gap:10px;
  justify-content:center;
  padding:14px 16px 18px;
  background:#fff;
  border-top:1px solid var(--border);
}
.intro-close{
  position:absolute;
  top:10px;
  right:12px;
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#111;
  font-size:22px;
  box-shadow:0 2px 10px rgba(0,0,0,.15);
  cursor:pointer;
}

/* Badges */
.badge-new{
  display:inline-block;
  background:#3b82f6;
  color:#fff;
  font-weight:700;
  font-size:12px;
  line-height:1;
  padding:4px 8px;
  border-radius:999px;
}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns:1fr }
  .split{ grid-template-columns:1fr }
  .media-grid{ grid-template-columns:1fr }
  .footer-grid{ grid-template-columns:1fr }
}

@media (max-width:520px){
  .intro-card{ width:100%; max-height:94vh; }
  .intro-img{ max-height:60vh; }
  .intro-actions{ flex-wrap:wrap; }
}

/* Profile section (About page) */
.profile {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap; /* responsive */
}

.profile-photo {
  width: 200px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,.15);
  flex-shrink: 0;
}

.profile-text {
  flex: 1;
  min-width: 250px;
}

@media (max-width: 600px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile-photo {
    width: 60%;
    max-width: 280px;
  }
}

@media (max-width: 1200px){
  .site-header .container{
    max-width: 100%;
    padding: 10px 16px;
  }

  .header-inner{
    gap: 14px;
  }

  .brand-text{
    font-size: 15px;
  }

  .nav{
    gap: 8px;
  }

  .nav a{
    padding: 7px 8px;
    font-size: 15px;
  }

  .site-header .button{
    padding: 7px 12px;
  }
}

@media (max-width: 900px){
  .header-inner{
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav{
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .brand{
    justify-content: center;
  }
}

/* Homepage news image */
.news-feature-image{
  margin:0;
  text-align:center;
}

.news-feature-image img{
  display:block;
  width:100%;
  max-width:420px;
  height:auto;
  margin:0 auto;
  object-fit:contain;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:var(--shadow);
}

.news-feature-image figcaption{
  max-width:420px;
  margin:8px auto 0;
  color:var(--muted);
  font-size:14px;
}
