


/* =========================================================
   space.craft.ed – Master Stylesheet (mobile-safe header)
   Requires:
   - assets/starsbanner.png
   - assets/logo.png
   - assets/metamorphorces-logo.png
   - assets/rocket-cursor-32.png (or change filename below)
   ========================================================= */

/* ---- Fonts ---- */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=Rajdhani:wght@400;600;700&display=swap");

/* ---- Theme ---- */
:root{
  --bg: #05060a;
  --txt: #e9f7ff;
  --muted: #a8b5c2;
  --brand: #6fe3ff;
  --brand2:#b893ff;
  --panel: rgba(10, 14, 20, 0.72);
  --stroke: rgba(255,255,255,0.08);
  --shadow: rgba(0,0,0,0.5);
}

/* Remove any debug / guide lines */
* {
  outline: none !important;
}
hr {
  display: none !important;
}


/* ---- Reset ---- */
*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--txt);
  font-family: "Rajdhani", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden; /* kill horizontal scroll */
}

/* =========================================================
   Rocket Cursor (site-wide)
   NOTE: cursor URLs are resolved relative to THIS css file.
   ========================================================= */
html, body, a, button, input, textarea, select{
  cursor: url("assets/rocket-cursor-32.png") 16 16, auto;
}

/* Optional: show pointer on clickable things */
a, button{
  cursor: url("assets/rocket-cursor-32.png") 16 16, pointer;
}

/* =========================================================
   Global Stars Background (subtle, fixed, does NOT add height)
   ========================================================= */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 20%, rgba(111,227,255,0.10), transparent 35%),
    radial-gradient(circle at 80% 35%, rgba(184,147,255,0.08), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(111,227,255,0.06), transparent 45%),
    linear-gradient(180deg, #000000 0%, #05060a 55%, #05060a 100%);
}

/* Extra twinkle dots (very light) */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .45;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.7) 50%, transparent 52%),
    radial-gradient(1px 1px at 35% 60%, rgba(255,255,255,.6) 50%, transparent 52%),
    radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,.65) 50%, transparent 52%),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,.55) 50%, transparent 52%),
    radial-gradient(1px 1px at 55% 10%, rgba(255,255,255,.6) 50%, transparent 52%),
    radial-gradient(1px 1px at 25% 85%, rgba(255,255,255,.55) 50%, transparent 52%);
  pointer-events:none;
}

/* =========================================================
   Header with Planet Banner (mobile-safe)
   IMPORTANT: the banner is an absolutely-positioned overlay
   so it NEVER creates huge scroll space on iPhone.
   ========================================================= */
.page-header{
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.55);
}

/* Cinematic planet banner behind the header */

.page-header::before{
  content:"";
  position: absolute;
  inset: 0;
  z-index: -1;

  /* Fallback list: it will try each in order */
  background-image:
    url("assets/starsbanner.png"),
    url("assets/starsheader.png"),
    url("assets/stars-header2.png"),
    url("assets/stars-header2.png"),
    url("assets/stars-header.png");

  background-repeat: no-repeat;
  background-position: 85% 55%; /* planet towards right */
  background-size: 130% auto;

  opacity: 0.95;
  filter: saturate(1.05) contrast(1.02);
}
@media (min-width: 900px){
  .page-header::before{
    background-size: 140% auto;
    background-position: 90% 55%;
  }
}






/* slight darkening so text stays readable */
.page-header::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.65));
}

/* Top row: logo + site name */
.banner-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 2px 0 8px;
}

.banner-logo-small{
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(111,227,255,.30));
  flex: 0 0 auto;
}

.banner-text{
  display:flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}

.banner-title-inline{
  margin:0;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 22px;
  text-shadow: 0 0 14px rgba(111,227,255,.35);
}

.banner-tagline-inline{
  margin:4px 0 0;
  font-size: 12px;
  letter-spacing: .18em;
  color: rgba(233,247,255,.85);
}

/* =========================================================
   Main menu pills
   ========================================================= */
.main-menu{
  width: 100%;
  overflow-x: auto;          /* allows scroll on tiny screens */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.25) transparent;
}

.main-menu ul{
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 6px 2px 2px;
  margin: 0;
  justify-content: center;
  min-width: max-content;
}

.main-menu a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--txt);
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
  white-space: nowrap;
  font-size: 14px;
}

.main-menu a:hover{
  border-color: rgba(111,227,255,.40);
  box-shadow: 0 0 18px rgba(111,227,255,.12);
}

.main-menu a.active{
  border-color: rgba(111,227,255,.55);
  background: rgba(12, 20, 34, 0.65);
  box-shadow: 0 0 22px rgba(111,227,255,.18);
}

/* =========================================================
   Content panels
   ========================================================= */
main{
  width: min(980px, 92vw);
  margin: 24px auto 60px;
}

.panel{
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 22px 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  margin-bottom: 18px;
}

/* Headings */
.glow{
  text-shadow:
    0 0 10px rgba(111,227,255,.25),
    0 0 24px rgba(184,147,255,.12);
}

h2{
  margin: 0 0 12px;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  letter-spacing: .02em;
}

h3{
  margin: 18px 0 8px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
}

p{
  color: rgba(233,247,255,.92);
  line-height: 1.6;
}

ul{
  margin: 10px 0 0;
  padding-left: 18px;
}

a{
  color: rgba(184,147,255,.95);
}

a:hover{
  color: rgba(111,227,255,.95);
}

/* Footer */
footer{
  width: min(980px, 92vw);
  margin: 28px auto 50px;
  color: rgba(233,247,255,.80);
  font-size: 13px;
  text-align: center;
}

footer img{
  height: 30px;
  width: auto;
  vertical-align: middle;
  margin-right: 10px;
  filter: drop-shadow(0 0 10px rgba(111,227,255,.20));
}

/* =========================================================
   Mobile optimisation (prevents tall header)
   ========================================================= */
@media (max-width: 520px){
  .page-header{
    padding: 8px 10px 10px;
  }
  .banner-row{
    justify-content: center;
    padding-bottom: 6px;
  }
  .banner-logo-small{
    width: 40px;
    height: 40px;
  }
  .banner-title-inline{
    font-size: 19px;
  }
  .banner-tagline-inline{
    font-size: 11px;
    letter-spacing: .14em;
  }
  .main-menu a{
    padding: 9px 12px;
    font-size: 13px;
  }
  main{
    margin-top: 18px;
  }
}

/* Accessibility focus */
:focus-visible{
  outline: 3px solid rgba(255, 209, 102, 0.9);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ============ TEAM HERO (title left, image right) ============ */
.team-hero{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* text a bit wider than image */
  gap: clamp(16px, 3vw, 28px);
  align-items: flex-start;
  margin-bottom: 18px;
}

.team-title{
  margin: 0 0 8px 0;
}

.team-lead{
  margin: 0;
  max-width: 60ch;
  color: rgba(233, 247, 255, 0.92);
  line-height: 1.55;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
}

.team-hero__media{
  margin: 0;
  justify-self: end;
  width: min(520px, 100%);
}

.team-hero__media img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

/* Mobile: stack so title/role appears immediately without scroll pain */
@media (max-width: 820px){
  .team-hero{
    grid-template-columns: 1fr;
  }
  .team-hero__media{
    justify-self: start;
    width: 100%;
  }
}

/* Wider layout on large screens */
.container, main, .content, .wrap {
  max-width: 1400px;   /* increase from ~900/1100 */
  width: min(1400px, calc(100% - 64px));
  margin-left: auto;
  margin-right: auto;
}
/* ================================
   Team page image responsiveness
   ================================ */

/* Base image behaviour */
.team-image,
.team-hero img,
.panel img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Mobile optimisation */
@media (max-width: 768px) {
  .team-image,
  .team-hero img,
  .panel img {
    max-height: 220px;      /* ← key change */
    object-fit: cover;     /* crop nicely instead of squashing */
  }

  .team-hero {
    margin-bottom: 1rem;
  }
}

/* Very small phones */
@media (max-width: 480px) {
  .team-image,
  .team-hero img,
  .panel img {
    max-height: 180px;
  }
}

/* Launch page: force Capabilities list to stay as a normal left-aligned list */
.cap-list{
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0.75rem 0 0;
  columns: 1 !important;
  column-count: 1 !important;
  display: block !important;
}
.cap-list li{
  margin: 0.5rem 0;
}
.team-hero{
  display: flex;
  gap: 2rem;
  align-items: flex-start; /* top-align text + image */
  flex-wrap: wrap;         /* allows stacking on mobile */
}
.team-image{
  margin: 0;
  flex: 1 1 360px;
  max-width: 560px;
}
.team-image img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}
.team-hero__text{
  flex: 1 1 320px;
  min-width: 260px;
}

.cta-row { display:flex; gap:12px; flex-wrap:wrap; margin: 10px 0 0; }
.btn { display:inline-block; padding:10px 14px; border-radius:10px; text-decoration:none; border:1px solid rgba(255,255,255,0.25); }
.btn.primary { border-color: rgba(255,255,255,0.5); }

.small-note { opacity:0.8; font-size:0.95em; margin-top:10px; }

.soft-rule { border:0; height:1px; background: rgba(255,255,255,0.15); margin: 18px 0; }

.filter-bar { display:flex; gap:10px; flex-wrap:wrap; margin: 10px 0 14px; }
.filter-pill { padding:6px 10px; border-radius:999px; border:1px solid rgba(255,255,255,0.2); opacity:0.85; }
.filter-pill.active { opacity:1; border-color: rgba(255,255,255,0.45); }

.challenge-list li { margin: 10px 0; }


/* =========================================================
   Fundamental Challenges public landing page — 2026 rebuild
   ========================================================= */
.hero-panel{padding:clamp(28px,5vw,58px);text-align:center;position:relative;overflow:hidden}
.hero-kicker{font-family:"Orbitron",sans-serif;text-transform:uppercase;letter-spacing:.18em;color:var(--brand);font-size:12px;font-weight:700}
.hero-title{font-family:"Orbitron",sans-serif;font-size:clamp(30px,6vw,64px);line-height:1.02;margin:10px 0 14px;text-shadow:0 0 24px rgba(111,227,255,.22)}
.hero-copy{max-width:760px;margin:0 auto;color:rgba(233,247,255,.88);font-size:clamp(18px,2vw,22px);line-height:1.45}
.cta-row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:22px}
.cta-button{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:999px;border:1px solid rgba(111,227,255,.52);background:rgba(12,20,34,.72);color:var(--txt);text-decoration:none;font-weight:800;box-shadow:0 0 24px rgba(111,227,255,.14)}
.cta-button.secondary{border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.04)}
.section-intro{max-width:780px;font-size:18px;line-height:1.55;color:rgba(233,247,255,.9)}
.moonshot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.moonshot-card{position:relative;display:flex;flex-direction:column;min-height:300px;border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.10);background:rgba(4,8,14,.86);box-shadow:0 15px 34px rgba(0,0,0,.36)}
.moonshot-card.live{border-color:rgba(111,227,255,.55);box-shadow:0 0 28px rgba(111,227,255,.12),0 15px 34px rgba(0,0,0,.46)}
.moonshot-visual{height:150px;background-size:cover;background-position:center;position:relative}
.moonshot-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,6,10,.05),rgba(5,6,10,.90))}
.moonshot-card.future{filter:grayscale(1);opacity:.48}
.moonshot-card.future .moonshot-visual{background-image:linear-gradient(135deg,rgba(111,227,255,.16),rgba(184,147,255,.08)),radial-gradient(circle at 70% 30%,rgba(255,255,255,.14),transparent 18%)}
.moonshot-body{padding:4px 18px 20px;display:flex;flex-direction:column;flex:1}
.moonshot-number{font-family:"Orbitron",sans-serif;color:var(--muted);font-size:11px;letter-spacing:.16em;text-transform:uppercase}
.moonshot-body h3{font-family:"Orbitron",sans-serif;margin:7px 0 3px;font-size:22px}
.moonshot-subtitle{color:var(--brand);font-weight:700;margin:0 0 10px}
.moonshot-body p{line-height:1.45;margin:0 0 14px}
.status-pill{display:inline-flex;align-self:flex-start;margin-top:auto;padding:6px 10px;border-radius:999px;font-family:"Orbitron",sans-serif;font-size:10px;letter-spacing:.12em;border:1px solid rgba(255,255,255,.18)}
.status-pill.live{border-color:rgba(111,227,255,.6);color:var(--brand)}
.process-line{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:16px}
.process-step{text-align:center;padding:14px 8px;border-radius:12px;border:1px solid rgba(111,227,255,.18);background:rgba(111,227,255,.04);font-family:"Orbitron",sans-serif;font-size:12px}
.ecosystem-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}
.ecosystem-card{padding:18px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03);border-radius:14px}
.ecosystem-card h3{font-family:"Orbitron",sans-serif;font-size:15px;color:var(--brand);margin-top:0}
.quote-panel{border-left:3px solid var(--brand);padding-left:18px;font-size:21px;line-height:1.45}
.level-ladder{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:18px}
.level-card{padding:14px 8px;text-align:center;border:1px solid rgba(111,227,255,.19);border-radius:12px;background:rgba(111,227,255,.04)}
.level-card strong{display:block;font-family:"Orbitron",sans-serif;color:var(--brand);font-size:14px;margin-top:5px}
.level-card span{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em}
.definition-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
.definition-card{padding:18px;border-radius:14px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03)}
.definition-card h3{margin-top:0;font-family:"Orbitron",sans-serif;font-size:16px;color:var(--brand)}
.capability-flow{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:20px 0}
.capability-flow span{padding:9px 12px;border:1px solid rgba(111,227,255,.22);border-radius:999px;background:rgba(111,227,255,.05);font-weight:700}
.capability-flow b{color:var(--brand)}
.muted-note{color:var(--muted);font-size:14px}
@media(max-width:760px){.moonshot-grid,.ecosystem-grid,.definition-grid{grid-template-columns:1fr}.process-line,.level-ladder{grid-template-columns:1fr}.moonshot-card{min-height:0}}

/* Team artwork bank reused on the rebuilt Spacecrafted landing page */
.team-bank{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin:14px 0}
.team-card{text-decoration:none;color:inherit;min-width:0}
.team-card figure{height:100%;margin:0;border-radius:12px;overflow:hidden;border:1px solid rgba(34,211,255,.22);background:rgba(255,255,255,.03);box-shadow:0 8px 20px rgba(0,0,0,.35);transition:transform 160ms ease,box-shadow 160ms ease,border-color 160ms ease}
.team-card img{width:100%;height:145px;object-fit:cover;display:block}
.team-card figcaption{padding:10px 10px 11px;font-size:13px;font-weight:700;color:rgba(240,248,255,.9);background:rgba(0,0,0,.28)}
.team-card:hover figure,.team-card:focus-visible figure{transform:translateY(-2px);border-color:rgba(34,211,255,.55);box-shadow:0 10px 26px rgba(34,211,255,.12),0 10px 26px rgba(0,0,0,.55)}
@media(max-width:520px){.team-card img{height:170px}}


/* 2026-08 public navigation refresh: SPACE.CRAFT.ED three-part wordmark */
.banner-title-inline .brand-space{color:#f6f0df;}
.banner-title-inline .brand-craft{color:#ff6a2a;}
.banner-title-inline .brand-ed{color:#35d3e6;}
.banner-title-inline .brand-dot{color:#78aebb;padding:0 .02em;}
