:root{
  --bg: #070A12;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --line: rgba(255,255,255,.12);
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
}

a {
  color: #42d5ec;
  text-decoration: underline;
  transition: color .12s ease;
}

a:hover {
  color: #e6c760;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
  background-color: var(--bg); /* keep a solid fallback */
}

/* place the complex radial gradients into a fixed full-viewport layer to avoid seams/scroll lines */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1200px 720px at 50% -15%, rgba(74,72,150,.16), transparent 62%),
    var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  will-change: transform;
}

.hero_content {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto 24px auto;
  text-align: left;
}

.wrap{
  width:min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.hero{
  border-bottom: 1px solid var(--line);
}

/* full-bleed banner with overlaid content */
.hero__media{
  position: relative;
  width: 100%;
  min-height: 470px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #04060c;
}
.hero__media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* darken the imagery so overlaid text stays legible */
.hero__scrim{
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,6,12,.94) 0%, rgba(4,6,12,.74) 40%, rgba(4,6,12,.30) 72%, rgba(4,6,12,.04) 100%),
    linear-gradient(0deg, rgba(4,6,12,.60) 0%, transparent 46%);
}

.hero__overlay{
  position: relative;
  z-index: 1;
  padding: 60px 0;
}

.hero__content{
  padding: 28px 0 26px;
  max-width: none; /* wrap class controls width */
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.02em;
}

.hero__overlay h1{
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-shadow: 0 6px 28px rgba(0,0,0,.7);
}

.hero__eyebrow{
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #42d5ec;
}
.hero__overlay .hero__eyebrow{ text-shadow: 0 2px 14px rgba(0,0,0,.6); }

.hero__lede{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 72ch;
}
.hero__overlay .hero__lede{
  color: rgba(255,255,255,.86);
  max-width: 52ch;
  font-size: 16.5px;
  text-shadow: 0 2px 16px rgba(0,0,0,.75);
}
p.hero__lede + p.hero__lede{ margin-top: 0.9em; }

.hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.hero__actions .btn{ padding: 11px 20px; font-size: 14px; }
.hero__actions .btn--ghost{
  color: #fff;
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.06);
}
.hero__actions .btn--ghost:hover{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.6);
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 0 34px;
}

/* make grid items equal-height so cards line up, and push actions to the card bottom */
.grid {
  /* keep existing grid settings but ensure each cell row can expand equally */
  grid-auto-rows: 1fr;
  align-items: stretch; /* stretch items to fill the row */
}

@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px){
  .grid{ grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero__media{ min-height: 420px; }
  .hero__overlay{ padding: 44px 0; }
  .hero__scrim{
    background:
      linear-gradient(90deg, rgba(4,6,12,.92) 0%, rgba(4,6,12,.78) 55%, rgba(4,6,12,.45) 100%),
      linear-gradient(0deg, rgba(4,6,12,.65) 0%, transparent 50%);
  }
}

.card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
  position: relative;
  overflow:hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(500px 180px at 30% 0%, rgba(170,210,255,.22), transparent 60%);
  opacity:.85;
  pointer-events:none;
  z-index: 0; /* sit behind card content */
}

/* ensure card children paint above the ::before */
.card > *{
  position: relative;
  z-index: 1;
}

.card__top{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

h2{
  margin:0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.tag{
  margin:0;
  font-size: 12px;
  color: rgba(255,255,255,.72);
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  white-space: nowrap;
}

.card__body{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

/* per-dataset stats footer */
.card__stats{
  margin: 0 0 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
}
.card__stats > div{ display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card__stats dt{ margin: 0; font-size: 12.5px; color: var(--muted); }
.card__stats dd{ margin: 0; font-size: 12.5px; color: #eaf6ff; font-weight: 600; text-align: right; }

.card__actions{
  display:flex;
  gap: 10px;
  margin-top: auto;
  align-items: center;
}

/* keep the actions row pinned to the bottom of the card */
.card__actions {
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: var(--text);
  text-decoration:none;
  font-size: 13px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.26);
}

.btn--ghost{
  background: transparent;
}

/* X (Twitter) follow icon */
.xfollow{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: var(--text);
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.xfollow:hover{ background: rgba(66,213,236,.14); border-color: rgba(66,213,236,.55); transform: translateY(-1px); }
.xfollow svg{ width: 15px; height: 15px; }

.footer{
  border-top: 1px solid var(--line);
  padding: 18px 0 26px;
  color: rgba(255,255,255,.60);
  font-size: 13px;
}
.footer__inner{
  display:flex;
  justify-content: space-between;
  gap: 16px;
}

/* M3-style card media (image at top) */
.card__media{
  margin: -1px -1px 12px -1px; /* pull to card edges so top corners match card radius */
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  overflow: hidden;
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.02));
}

.card__media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .18s ease;
  transform-origin: center;
}

.card__media img:hover{
  transform: scale(1.03);
}

/* non-cropping variant for card media */
.card__media--contain {
  /* remove aspect-ratio padding so image can scale naturally */
  padding-top: 0;
  height: 180px;               /* visible area for the image — adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.card__media--contain img {
  position: static;            /* override absolute positioning used by default media */
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
}

/* responsive: reduce height on narrow screens */
@media (max-width: 620px) {
  .card__media--contain { height: 140px; }
}

/* reduce vertical spacing if image present */
.card > .card__top { margin-top: 0; }

/* small screens: keep aspect ratio but slightly taller */
@media (max-width: 620px){
  .card__media { padding-top: 60%; }
}

/* footer image block */
.footer__image{
  padding: 28px 0 48px;
  background: linear-gradient(180deg, rgba(0,0,0,.02), transparent 40%);
}
.footer__image img{
  display:block;
  width:100%;
  max-width:1100px; /* match .wrap width */
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  object-fit: contain;
}

/* slightly reduce spacing on small screens */
@media (max-width: 620px){
  .footer__image{ padding: 18px 0 28px; }
  .footer__image img{ max-width: calc(100% - 32px); }
}

/* footer easter egg */
.footer__egg {
  margin: 12px 0 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  opacity: 0.95;
}

/* lab credit */
.footer__credit {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: left;
  color: rgba(255,255,255,.55);
  font-size: 13px;
  line-height: 1.5;
}
.footer__crest{
  height: 40px;
  width: auto;
  flex-shrink: 0;
  opacity: .92;
}

/* tiny footer mascot */
.footer__tiny {
  text-align: center;
  padding: 0 0 30px;
}
.footer__tiny img {
  width: 120px;
  height: auto;
  display: inline-block;
  opacity: 0.95;
}

/* Citizen Science — high-impact infographic block */
.citizen__inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.citizen__inner{
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 28px;
  align-items: center;
}

/* intro text */
.citizen__intro h2{
  margin: 0 0 8px;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: #eaf6ff;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.citizen__intro p{
  margin: 0;
  color: rgba(230,240,255,0.85);
  line-height: 1.5;
  max-width: 56ch;
}

/* panel */
.citizen__panel{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: calc(var(--radius) - 4px);
  padding: 18px 18px 18px 16px; /* slightly larger padding so large numbers don't touch edges */
  overflow: visible; /* allow card shadows and overflow to show */
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  display:flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* panel head */
.citizen__panel-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px;
}

.citizen__panel-title{
  font-weight:700;
  font-size: 0.95rem;
  color: #eaf6ff;
  letter-spacing: -0.01em;
}


/* stats layout: distribute across 2-3 columns to wrap into multiple rows */
.citizen__stats{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  align-items: stretch;
  align-content: start;
  padding: 0;
}

@media (max-width: 980px){
  .citizen__stats{
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* single stat card (updated look) */
.stat{
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  display:flex;
  flex-direction:column;
  justify-content:flex-start; /* align content to the top so numbers line up */
  align-items:flex-start;
  min-height: 92px; /* slightly taller to accommodate reserved number space */
  border: 1px solid rgba(255,255,255,0.04);
  position: relative;
  overflow: visible; /* keep shadows and content visible */
  width: auto;
}

/* larger, condensed number like scoreboard */
.stat__num{
  font-weight: 800;
  font-size: 1.9rem;
  line-height:1;
  color: #fff;
  background: linear-gradient(90deg,#42d5ec,#e6c760 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.015em;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
  display:block;
  min-height: 48px; /* reserve vertical space so numbers align */
  margin-bottom: 6px; /* consistent spacing to label */
}

/* label style */
.stat__label{
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(220,230,240,0.85);
  text-transform: none;
}

/* muted variant for less emphasis */
.stat--muted .stat__num{ opacity: 0.9; background: linear-gradient(90deg,#dcdcdc,#bdbdbd); -webkit-background-clip: text; color: transparent; }

/* subtle top divider like scoreboard */
.citizen__panel::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:2px;
  background: linear-gradient(90deg, rgba(66,213,236,0.06), rgba(230,199,96,0.04));
  border-top-left-radius: calc(var(--radius) - 4px);
  border-top-right-radius: calc(var(--radius) - 4px);
  pointer-events:none;
  z-index: 0;
}

/* responsive adjustments */
@media (max-width: 980px){
  .citizen__inner{ grid-template-columns: 1fr; }
  .citizen__panel{ margin-top: 18px; }
}
@media (max-width: 620px){
  .stat{ padding: 12px; min-height: 72px; }
  .stat__num{ font-size: 1.4rem; }
}

.footer__image figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ===== Top navigation / tabs ===== */
.topnav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,10,18,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topnav__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  min-height: 54px;
}
.topnav__brand{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #eaf6ff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 15px;
  flex-shrink: 0;
}
.topnav__brand:hover{ color: #fff; }
.topnav__crest{
  height: 26px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}
.topnav__links{ display: flex; gap: 6px; }
.topnav__link{
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color .12s ease, background .12s ease;
}
.topnav__link:hover{ color: #eaf6ff; background: rgba(255,255,255,.06); }
.topnav__link.is-active{
  color: #04121b;
  background: #42d5ec;
  font-weight: 600;
}
@media (max-width: 680px){
  .topnav__inner{ gap: 10px; }
  .topnav__links{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 2px;
  }
  .topnav__links::-webkit-scrollbar{ display: none; }
  .topnav__link{ padding: 7px 10px; font-size: 13px; white-space: nowrap; }
  /* keep the crest, drop the wordmark so the tabs have room */
  .topnav__brand span{ display: none; }
  .topnav__crest{ height: 24px; }
}

/* ===== Standalone page headers (Videos / Help) ===== */
.pagehead{ padding: 34px 0 6px; }
.pagehead--withmascot{
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.pagehead__text{ flex: 1 1 320px; min-width: 0; }
.pagehead__mascot{
  width: 170px;
  height: auto;
  flex: 0 0 auto;
  margin: 0 auto;
}
@media (max-width: 600px){ .pagehead__mascot{ width: 130px; } }

/* midway mascot */
.access-mascot{ text-align: center; padding: 8px 0 2px; }
.access-mascot img{ width: 150px; height: auto; display: inline-block; }
.pagehead h1{
  margin: 6px 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
}
.pagehead__lede{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 72ch;
}

/* ===== Videos page ===== */
.vidsec{
  padding: 30px 0 8px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}
.vidsec h2{
  margin: 0 0 8px;
  font-size: clamp(20px, 2.3vw, 28px);
  color: #eaf6ff;
  letter-spacing: -0.02em;
}
.vidsec__lede{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 72ch;
}
.ytembed{
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #04060c;
  box-shadow: var(--shadow);
}
.ytembed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.chan-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.chan__head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.chan__icon{
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.chan__meta{ display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.chan__meta h3{ margin: 0; }
.chan__meta .res__badge{ margin-bottom: 0; }
/* video thumbnail gallery */
.vid-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.vidtile{
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease;
}
.vidtile:hover{ transform: translateY(-2px); border-color: rgba(66,213,236,.55); }
.vidtile__thumb{
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #04060c;
  display: block;
}
.vidtile__thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.vidtile__thumb::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 32px;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: rgba(4,6,12,.6);
  transition: background .12s ease;
}
.vidtile__thumb::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
}
.vidtile:hover .vidtile__thumb::before{ background: #cc0000; }
.vidtile__title{
  padding: 10px 12px 3px;
  font-size: 13.5px;
  font-weight: 600;
  color: #eaf6ff;
  line-height: 1.3;
}
.vidtile__title:last-child{ padding-bottom: 12px; }
.vidtile__desc{
  padding: 0 12px 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.vidtile__note{
  padding: 0 12px 12px;
  margin-top: auto;
  font-size: 12px;
  color: #e6c760;
  line-height: 1.35;
}

.res--pending{ opacity: .72; }
.btn--disabled{
  opacity: .6;
  cursor: default;
  pointer-events: none;
}

/* ===== Help page ===== */
.help2{
  padding: 32px 0 8px;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}
.help2 h2{
  margin: 0 0 10px;
  font-size: clamp(20px, 2.3vw, 28px);
  color: #eaf6ff;
  letter-spacing: -0.02em;
}
.help2__lede{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 72ch;
}
.help2__lede strong{ color: #eaf6ff; }
.help2__grid{
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 820px){ .help2__grid{ grid-template-columns: 1fr; } }

.contactcard, .forumcard{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.contactcard h2, .forumcard h2{ margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.contactcard p, .forumcard p{ margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.cform{ display: flex; flex-direction: column; gap: 12px; }
.cform__field{ display: flex; flex-direction: column; gap: 6px; }
.cform__field span{ font-size: 13px; color: var(--muted); }
.cform input, .cform textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.cform input:focus, .cform textarea:focus{
  outline: none;
  border-color: rgba(66,213,236,.5);
}
.cform textarea{ resize: vertical; min-height: 110px; }
.cform .btn{ align-self: flex-start; }
.cform__status{ margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

.tut-list{
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.tut-list li{ margin: 2px 0; }

/* standalone footer credit (Videos / Help) */
.footer__credit--standalone{ margin: 0; padding: 6px 0 20px; }

/* ===== Learn page — immersive Inner Cosmos experience ===== */
.learn-body{ overflow-x: hidden; }
.learn__stage{
  position: relative;
  height: calc(100vh - 56px);
  height: calc(100dvh - 56px);
  min-height: 420px;
  background: #04060c;
}

/* content below the experience */
.learn__about{
  padding: 54px 0 8px;
  border-top: 1px solid var(--line);
}
.learn__about h2{
  margin: 6px 0 16px;
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: -0.02em;
  color: #eaf6ff;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.learn__about p{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 68ch;
}
.learn__about .btn{ margin-top: 10px; }
.learn__frame{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.learn__controls{
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: flex;
  gap: 10px;
}
.iconbtn{
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  color: #eaf6ff;
  background: rgba(7,10,18,.6);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .12s ease, transform .12s ease, border-color .12s ease;
}
.iconbtn:hover{
  background: rgba(7,10,18,.85);
  border-color: rgba(66,213,236,.5);
  transform: translateY(-1px);
}
.iconbtn svg{ width: 20px; height: 20px; }

/* copy-link toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(7,10,18,.92);
  color: #eaf6ff;
  border: 1px solid rgba(66,213,236,.4);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show{ opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== We need your help! — highlighted datasets ===== */
.help{ padding: 26px 0 6px; }
.help__head{ max-width: 72ch; margin-bottom: 18px; }
.help__head h2{
  margin: 0 0 8px;
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: -0.02em;
  color: #eaf6ff;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.help__head .accent{
  color: #e6c760;
}
.help__lede{ margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.help__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 820px){ .help__grid{ grid-template-columns: 1fr; } }

/* highlight card = card with stronger presence */
.card--help{
  border-color: rgba(66,213,236,.34);
  box-shadow: var(--shadow), 0 0 0 1px rgba(66,213,236,.10) inset, 0 0 46px rgba(66,213,236,.10);
}
.card--help .card__media{ padding-top: 48%; }
.card--help h2{ font-size: 22px; }

/* "needs you" flag over the media */
.card__flag{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #04121b;
  padding: 6px 11px;
  border-radius: 999px;
  background: #42d5ec;
  box-shadow: 0 8px 22px rgba(0,0,0,.5);
}

/* primary call-to-action button */
.btn--cta{
  background: #e6c760;
  color: #04121b;
  border-color: transparent;
  font-weight: 700;
}
.btn--cta:hover{
  background: #eed588;
  color: #04121b;
  border-color: transparent;
}

/* embedded slide deck */
.help__deck{ margin-top: 24px; }
.help__deck h3{
  margin: 0 0 12px;
  font-size: 16px;
  color: #eaf6ff;
  letter-spacing: -0.01em;
}
.embed{
  position: relative;
  width: 100%;
  padding-top: 60%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0,0,0,.3);
  box-shadow: var(--shadow);
}
.embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 620px){ .embed{ padding-top: 72%; } }

/* ===== More datasets to explore ===== */
.more{
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.more__head h2{
  margin: 0 0 4px;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.02em;
  color: #eaf6ff;
}
.more__lede{ margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.more .grid{ padding-top: 16px; }

/* ===== Learn how to map the brain ===== */
.maptut{
  padding: 44px 0 8px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.maptut__head{ max-width: 72ch; margin-bottom: 20px; }
.maptut__head h2{
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  color: #eaf6ff;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.maptut__lede{ margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.maptut__lede strong{ color: #eaf6ff; }
.maptut__desktop{
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(66,213,236,.3);
  background: rgba(66,213,236,.08);
  color: #eaf6ff;
  font-size: 14px;
  line-height: 1.45;
}

.maptut__frameWrap{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0,0,0,.3);
  box-shadow: var(--shadow);
}
.maptut__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.maptut__badge{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #cfe9ff;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(66,213,236,.28);
  background: rgba(66,213,236,.08);
}
.maptut__embed{
  position: relative;
  width: 100%;
  height: min(68vh, 620px);
  min-height: 420px;
  background: #04060c;
}
.maptut__embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.maptut__notes{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.maptut__note{
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,.03));
  padding: 16px 18px;
}
.maptut__note h3{
  margin: 0 0 6px;
  font-size: 15px;
  color: #eaf6ff;
  letter-spacing: -0.01em;
}
.maptut__note p{ margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.maptut__note p:last-child{ margin-bottom: 0; }
@media (max-width: 720px){
  .maptut__notes{ grid-template-columns: 1fr; }
  .maptut__embed{ height: 66vh; min-height: 360px; }
}

/* ===== Resources for Citizen Scientists ===== */
.resources{
  padding: 44px 0 8px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.resources__head{
  max-width: 72ch;
  margin-bottom: 24px;
}
.resources__head h2{
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  color: #eaf6ff;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.resources__lede{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

/* three-step getting-started strip */
.steps{
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.step{
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,.03));
  padding: 18px 18px 16px;
  position: relative;
}
.step__num{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  color: #0a0e18;
  background: linear-gradient(135deg,#42d5ec,#4f74c4 75%);
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  margin-bottom: 12px;
}
.step h3{
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: #eaf6ff;
}
.step p{
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* resource card grid */
.resources__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.res{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  padding: 18px 18px 8px;
  display: flex;
  flex-direction: column;
}
.res__badge{
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cfe9ff;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(66,213,236,.28);
  background: rgba(66,213,236,.08);
  margin-bottom: 12px;
}
.res h3{
  margin: 0 0 4px;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #eaf6ff;
}
.res__desc{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}
.res__links{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.res__links li{
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.res__links li:last-child{ padding-bottom: 12px; }
.res__links a{
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
}
.res__links a:hover{ text-decoration: underline; }
.res__links span{
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

@media (max-width: 900px){
  .steps{ grid-template-columns: 1fr; }
  .resources__grid{ grid-template-columns: 1fr; }
}
.steps--four{ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 900px){ .steps--four{ grid-template-columns: 1fr; } }

/* ===== Subscribe (team updates) ===== */
.subscribe{
  margin: 26px 0 6px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(720px 220px at 12% -30%, rgba(66,213,236,.12), transparent 70%),
    linear-gradient(180deg, var(--panel), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}
.subscribe__copy h2{
  margin: 8px 0 8px;
  font-size: clamp(21px, 2.3vw, 28px);
  letter-spacing: -0.02em;
  color: #eaf6ff;
}
.subscribe__lede{
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 46ch;
}
.subscribe__form{ display: flex; flex-direction: column; gap: 14px; }
.subscribe__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.subscribe__grid .cform__field{ display: flex; flex-direction: column; gap: 6px; }
.subscribe__grid .cform__field span{ font-size: 13px; color: var(--muted); }
.subscribe__grid .cform__field span em{ font-style: normal; opacity: .7; }
.subscribe__grid input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.28);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.subscribe__grid input:focus{
  outline: none;
  border-color: rgba(66,213,236,.5);
}
.subscribe__foot{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.subscribe__foot .btn{ padding: 11px 22px; font-size: 14px; }
.subscribe__foot .cform__status{ margin: 0; }
@media (max-width: 760px){
  .subscribe{ grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .subscribe__grid{ grid-template-columns: 1fr; }
}

/* subscribe success state (Nurro) */
.subscribe__success{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 6px 0;
  animation: nurroPop .5s cubic-bezier(.2,.9,.3,1.3) both;
}
.subscribe__nurro{
  width: 190px;
  max-width: 60%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.45));
  animation: nurroFloat 3.2s ease-in-out infinite;
}
.subscribe__success h3{
  margin: 4px 0 0;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #eaf6ff;
}
.subscribe__success p{
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.subscribe__egg{ margin-top: 8px !important; }
.subscribe__egg a{
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.3);
  transition: color .15s ease, border-color .15s ease;
}
.subscribe__egg a:hover{ color: #42d5ec; border-color: #42d5ec; }
@keyframes nurroPop{
  from{ opacity: 0; transform: scale(.9); }
  to{ opacity: 1; transform: scale(1); }
}
@keyframes nurroFloat{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce){
  .subscribe__success, .subscribe__nurro{ animation: none; }
}

/* ===== Resource card with image cover (FlyWire Academy) ===== */
.res__cover{
  display: block;
  margin: -18px -18px 14px;
  overflow: hidden;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  border-bottom: 1px solid var(--line);
  background: #04060c;
}
.res__cover img{
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}
.res__cover:hover img{ transform: scale(1.04); }

/* ===== Fun touches ===== */
/* gentle lift on resource + dataset cards */
.res, .card{
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.res:hover, .card:hover{
  transform: translateY(-3px);
  border-color: rgba(66,213,236,.42);
}
@media (hover: none){
  .res:hover, .card:hover{ transform: none; }
}

/* the footer cat gets a happy wiggle on hover */
.footer__tiny img{ transition: transform .25s cubic-bezier(.2,.9,.3,1.3); cursor: pointer; }
.footer__tiny img:hover{ transform: rotate(-7deg) scale(1.08); }

/* keep the Princeton footer credit tidy when it wraps on small screens */
.footer__credit{ flex-wrap: wrap; }
@media (max-width: 480px){
  .footer__crest{ height: 34px; }
  .footer__credit{ font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce){
  .res, .card, .footer__tiny img, .res__cover img{ transition: none; }
  .res:hover, .card:hover{ transform: none; }
}

