
:root {
  --bg: #07111f;
  --bg-2: #0d1b2f;
  --panel: #12243d;
  --panel-2: #172d4d;
  --text: #eef6ff;
  --muted: #b8c8dc;
  --line: rgba(255,255,255,.14);
  --gold: #f4b544;
  --orange: #ff7a1a;
  --blue: #5fd3ff;
  --green: #7ce38b;
  --red: #ff5b6e;
  --purple: #a78bfa;
  --shadow: 0 22px 70px rgba(0,0,0,.35);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top left, rgba(255,122,26,.18), transparent 30%), radial-gradient(circle at 85% 12%, rgba(95,211,255,.16), transparent 28%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 12px; background: var(--gold); color: #07111f; padding: 10px 12px; border-radius: 10px; z-index: 10; }
.skip-link:focus { left: 12px; }
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(7,17,31,.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 82px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 250px; }
.brand img { border-radius: 14px; box-shadow: 0 8px 24px rgba(244,181,68,.18); }
.brand strong { display: block; letter-spacing: .3px; }
.brand small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.25; }
.primary-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.primary-nav a { color: var(--muted); text-decoration: none; padding: 9px 11px; border-radius: 999px; font-size: .88rem; }
.primary-nav a:hover, .primary-nav a:focus, .primary-nav a.active { color: var(--text); background: rgba(255,255,255,.08); outline: none; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 999px; padding: 9px 14px; }
.hero { padding: 72px 0 44px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 34px; align-items: center; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .17em; font-weight: 700; font-size: .82rem; margin: 0 0 12px; }
h1 { font-size: clamp(2.3rem, 5vw, 5.1rem); line-height: .98; margin: 0; letter-spacing: -0.06em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.035em; }
h3 { font-size: 1.25rem; line-height: 1.18; margin: 0 0 10px; }
p { color: var(--muted); }
.hero-text { font-size: 1.15rem; max-width: 760px; color: #dbeaff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: linear-gradient(135deg, var(--orange), var(--gold)); color: #07111f; text-decoration: none; font-weight: 800; border: 0; }
.button.secondary { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid var(--line); }
.hero-panel { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)); box-shadow: var(--shadow); border-radius: var(--radius); padding: 24px; min-height: 320px; display: grid; gap: 12px; align-content: center; }
.hero-panel span { border: 1px solid var(--line); background: rgba(7,17,31,.55); border-radius: 16px; padding: 14px 16px; font-weight: 800; }
.hero-panel strong { display: block; margin-top: 10px; color: var(--gold); font-size: 1.2rem; }
.portrait-panel img { width: 100%; border-radius: 18px; }
.section { padding: 44px 0; }
.section.alt { background: rgba(255,255,255,.025); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { max-width: 820px; margin-bottom: 24px; }
.section-heading p { font-size: 1.05rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.two-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.four-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card, .profile-card, .callout, .mission, .badge-card, .timeline-item, .mini-card, .map-node, .quote-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
}
.card p, .profile-card p, .mission p, .badge-card p, .mini-card p { margin-bottom: 0; }
.card-link { display: inline-block; margin-top: 18px; color: var(--gold); font-weight: 800; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.tag { display: inline-flex; align-items: center; width: fit-content; margin-bottom: 12px; padding: 5px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #07111f; background: var(--gold); }
.tag.blue { background: var(--blue); }
.tag.green { background: var(--green); }
.tag.red { background: var(--red); color: #fff; }
.tag.purple { background: var(--purple); color: #10101c; }
.profile-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.profile-card { text-decoration: none; min-height: 232px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .18s ease, border-color .18s ease; }
.profile-card:hover { transform: translateY(-3px); border-color: rgba(244,181,68,.55); }
.avatar { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 22px; background: rgba(244,181,68,.14); border: 1px solid var(--line); font-weight: 900; font-size: 1.4rem; color: var(--gold); margin-bottom: 14px; }
.timeline { display: grid; gap: 14px; }
.timeline-item { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: start; }
.timeline-item strong { color: var(--gold); }
.mission-grid, .badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mission header, .badge-card header { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.mission ul, .badge-card ul, .checklist { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.callout { border-color: rgba(244,181,68,.42); background: linear-gradient(180deg, rgba(244,181,68,.13), rgba(255,255,255,.035)); }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.kpi { padding: 20px; border-radius: 20px; background: rgba(7,17,31,.52); border: 1px solid var(--line); }
.kpi strong { display: block; font-size: 2rem; color: var(--gold); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 720px; background: rgba(255,255,255,.035); }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--gold); background: rgba(7,17,31,.55); }
.filter-box { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.filter-box input { flex: 1; min-width: 240px; border: 1px solid var(--line); background: rgba(7,17,31,.75); color: var(--text); border-radius: 999px; padding: 13px 16px; }
.site-footer { margin-top: 40px; padding: 38px 0; background: rgba(0,0,0,.24); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .6fr 1fr; gap: 22px; }
.footer-grid p { margin: 6px 0 0; }
.notice { font-size: .95rem; color: #dbeaff; }
.codex-list { columns: 2; color: var(--muted); }
.codex-list li { margin-bottom: 8px; }
.ecosystem-map { display: grid; gap: 18px; }
.map-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.map-node { position: relative; min-height: 180px; }
.map-node h3 { margin-top: 6px; }
.map-node.core { border-color: rgba(244,181,68,.5); background: linear-gradient(180deg, rgba(244,181,68,.16), rgba(255,255,255,.04)); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { border: 1px solid var(--line); background: rgba(7,17,31,.5); color: var(--muted); padding: 7px 10px; border-radius: 999px; font-size: .86rem; }
.quote-card blockquote { margin: 0; color: #dbeaff; font-size: 1.2rem; line-height: 1.45; }
.quote-card cite { display: block; color: var(--gold); font-style: normal; margin-top: 12px; font-weight: 800; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.stat-strip div { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: rgba(7,17,31,.5); }
.stat-strip strong { display: block; color: var(--gold); font-size: 1.5rem; }
.page-note { border-left: 4px solid var(--gold); padding: 14px 18px; background: rgba(244,181,68,.08); border-radius: 0 18px 18px 0; }
@media (max-width: 1100px) {
  .header-inner { align-items: flex-start; padding: 12px 0; }
  .primary-nav { max-width: 720px; }
}
@media (max-width: 980px) {
  .hero-grid, .two-grid, .footer-grid, .map-row { grid-template-columns: 1fr; }
  .card-grid, .profile-grid, .four-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-row, .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1120px); }
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; left: 14px; right: 14px; top: 76px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(7,17,31,.98); box-shadow: var(--shadow); }
  .primary-nav.open { display: grid; grid-template-columns: 1fr 1fr; }
  .primary-nav a { border-radius: 12px; }
  .header-inner { min-height: 76px; align-items: center; }
  .brand small { display: none; }
  .hero { padding-top: 44px; }
  .card-grid, .profile-grid, .mission-grid, .badge-grid, .kpi-row, .four-grid, .stat-strip { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; }
  .codex-list { columns: 1; }
}
@media print {
  .site-header, .hero-actions, .nav-toggle, .site-footer { display: none; }
  body { background: #fff; color: #111; }
  p, li, td { color: #333; }
  .card, .mission, .badge-card, .callout { box-shadow: none; border-color: #999; }
}


/* v0.3 guided tour and environment map additions */
.feature-panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(95,211,255,.10), rgba(255,255,255,.035)); padding: 24px; box-shadow: var(--shadow); }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.path-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(7,17,31,.55); padding: 22px; }
.path-card h3 { color: var(--gold); }
.tour-shell { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.tour-rail { position: sticky; top: 104px; display: grid; gap: 10px; }
.tour-rail button { text-align: left; border: 1px solid var(--line); background: rgba(7,17,31,.68); color: var(--muted); border-radius: 14px; padding: 12px 14px; cursor: pointer; font-weight: 800; }
.tour-rail button.active { color: var(--text); border-color: rgba(244,181,68,.55); background: rgba(244,181,68,.13); }
.tour-stop { display: none; }
.tour-stop.active { display: block; }
.tour-stage { min-height: 480px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035)); padding: 28px; box-shadow: var(--shadow); }
.tour-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.map-legend { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 24px; }
.map-legend span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; color: var(--muted); background: rgba(7,17,31,.55); }
.environment-blueprint { border: 1px solid var(--line); border-radius: 28px; padding: 18px; background: rgba(7,17,31,.55); box-shadow: var(--shadow); }
.blueprint-grid { display: grid; grid-template-columns: 1.05fr .8fr 1.05fr; grid-template-areas: 'classroom briefing cyber' 'mission patch forge' 'support launch engineering'; gap: 14px; }
.zone-tile { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; border: 1px solid var(--line); border-radius: 22px; padding: 18px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.zone-tile:hover, .zone-tile:focus { transform: translateY(-3px); border-color: rgba(244,181,68,.65); background: linear-gradient(180deg, rgba(244,181,68,.15), rgba(255,255,255,.04)); outline: none; }
.zone-tile small { color: var(--gold); text-transform: uppercase; letter-spacing: .09em; font-weight: 900; }
.zone-tile strong { display: block; font-size: 1.15rem; margin-top: 8px; }
.zone-tile p { margin: 8px 0 0; font-size: .95rem; }
.zone-classroom { grid-area: classroom; }
.zone-briefing { grid-area: briefing; }
.zone-cyber { grid-area: cyber; }
.zone-mission { grid-area: mission; }
.zone-patch { grid-area: patch; }
.zone-forge { grid-area: forge; }
.zone-support { grid-area: support; }
.zone-launch { grid-area: launch; }
.zone-engineering { grid-area: engineering; }
.character-usage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.usage-list { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.usage-list li { margin-bottom: 9px; }
.canon-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.canon-strip div { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: rgba(7,17,31,.5); }
.canon-strip strong { color: var(--gold); display: block; }
.sequence-card { border-left: 4px solid var(--gold); padding: 20px; border-radius: 0 20px 20px 0; background: rgba(244,181,68,.08); margin: 16px 0; }
@media (max-width: 980px) {
  .tour-shell, .path-grid, .character-usage { grid-template-columns: 1fr; }
  .tour-rail { position: static; }
  .blueprint-grid { grid-template-columns: 1fr 1fr; grid-template-areas: 'classroom classroom' 'mission support' 'patch briefing' 'forge engineering' 'launch cyber'; }
  .canon-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .blueprint-grid, .canon-strip { grid-template-columns: 1fr; grid-template-areas: 'classroom' 'mission' 'support' 'patch' 'briefing' 'forge' 'engineering' 'launch' 'cyber'; }
}


/* v0.5 zones, pathways, visitor badge, and guide kit additions */
.pathway-map { display:grid; gap:18px; }
.pathway-row { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; align-items:stretch; }
.pathway-row.single { grid-template-columns: minmax(240px, 420px); justify-content:center; }
.pathway-node { border:1px solid var(--line); border-radius:var(--radius); background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); padding:22px; text-align:center; box-shadow:0 12px 35px rgba(0,0,0,.18); }
.pathway-node.foundation { border-color:rgba(244,181,68,.55); background:linear-gradient(180deg, rgba(244,181,68,.16), rgba(255,255,255,.04)); }
.pathway-node.branch { min-height:210px; }
.pathway-node h3 { color:var(--gold); }
.pathway-arrow { text-align:center; color:var(--gold); font-weight:900; letter-spacing:.12em; }
.curriculum-label { display:inline-flex; margin-bottom:10px; border:1px solid var(--line); border-radius:999px; padding:5px 10px; color:var(--muted); background:rgba(7,17,31,.55); font-size:.82rem; font-weight:800; }
.badge-preview { display:grid; grid-template-columns: 160px 1fr; gap:20px; align-items:center; }
.badge-art { width:140px; height:140px; border-radius:50%; display:grid; place-items:center; text-align:center; padding:18px; border:3px solid rgba(244,181,68,.75); background:radial-gradient(circle at 30% 20%, rgba(244,181,68,.45), rgba(255,122,26,.18) 45%, rgba(7,17,31,.9)); box-shadow:var(--shadow); font-weight:900; color:#fff; }
.zone-note { border:1px dashed rgba(244,181,68,.55); border-radius:var(--radius); padding:18px; background:rgba(244,181,68,.08); }
.guide-script { border-left:4px solid var(--blue); padding:18px 20px; border-radius:0 18px 18px 0; background:rgba(95,211,255,.08); margin:18px 0; }
.guide-script strong { color:var(--blue); }
.audience-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.image-slot { min-height:190px; border:2px dashed rgba(255,255,255,.2); border-radius:var(--radius); display:grid; place-items:center; text-align:center; padding:18px; color:var(--muted); background:rgba(7,17,31,.45); }
.image-slot strong { display:block; color:var(--gold); margin-bottom:6px; }
@media (max-width:980px){ .pathway-row, .audience-grid { grid-template-columns:1fr; } .badge-preview { grid-template-columns:1fr; } }


/* v0.5 project status board additions */
.project-pulse { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.project-pulse div { border:1px solid var(--line); border-radius:22px; background:rgba(7,17,31,.55); padding:20px; }
.project-pulse strong { display:block; color:var(--gold); font-size:2.2rem; line-height:1; }
.project-pulse span { color:var(--muted); font-weight:800; }
.filter-panel { border:1px solid var(--line); border-radius:var(--radius); background:rgba(7,17,31,.55); padding:18px; margin:20px 0; }
.filter-panel label { display:block; color:var(--gold); margin-bottom:10px; }
.filter-panel input { width:100%; border:1px solid var(--line); background:rgba(7,17,31,.78); color:var(--text); border-radius:999px; padding:14px 16px; }
.status-filter-bar { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0; }
.status-filter-bar button { border:1px solid var(--line); background:rgba(7,17,31,.65); color:var(--muted); border-radius:999px; padding:10px 13px; cursor:pointer; font-weight:900; }
.status-filter-bar button span { opacity:.78; }
.status-filter-bar button.active, .status-filter-bar button:hover { border-color:rgba(244,181,68,.65); color:var(--text); background:rgba(244,181,68,.13); }
.bucket-filter button { border-radius:14px; }
.project-board { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:26px; }
.project-card { border:1px solid var(--line); border-radius:var(--radius); background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035)); padding:22px; box-shadow:0 16px 45px rgba(0,0,0,.18); }
.project-card-top { display:flex; gap:10px; justify-content:space-between; align-items:center; flex-wrap:wrap; margin-bottom:12px; }
.status-badge { display:inline-flex; align-items:center; border-radius:999px; padding:7px 10px; font-size:.82rem; font-weight:900; letter-spacing:.03em; border:1px solid var(--line); }
.status-progress { color:#f7f1de; background:rgba(244,181,68,.18); border-color:rgba(244,181,68,.58); }
.status-ready { color:#e8fff6; background:rgba(79,217,160,.15); border-color:rgba(79,217,160,.5); }
.status-drafted { color:#e5f6ff; background:rgba(95,211,255,.13); border-color:rgba(95,211,255,.5); }
.status-online { color:#e8fff6; background:rgba(79,217,160,.22); border-color:rgba(79,217,160,.7); }
.status-blocked { color:#ffe8e8; background:rgba(255,92,92,.16); border-color:rgba(255,92,92,.55); }
.status-concept { color:#e9e2ff; background:rgba(173,136,255,.14); border-color:rgba(173,136,255,.45); }
.status-future { color:#dce6f8; background:rgba(155,171,196,.13); border-color:rgba(155,171,196,.36); }
.priority-pill { color:var(--muted); font-size:.8rem; font-weight:900; border:1px solid var(--line); border-radius:999px; padding:7px 10px; }
.project-official { color:var(--gold); font-weight:800; margin-top:-4px; }
.project-meta { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:16px 0; }
.project-meta span { border:1px solid var(--line); border-radius:16px; background:rgba(7,17,31,.45); padding:10px; color:var(--muted); font-size:.87rem; }
.project-meta strong { display:block; color:var(--blue); font-size:.76rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:4px; }
.next-action { border-left:4px solid var(--gold); border-radius:0 14px 14px 0; background:rgba(244,181,68,.08); padding:12px 14px; color:#dbeaff; }
.support-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.support-card { border:1px solid var(--line); border-radius:var(--radius); background:rgba(7,17,31,.55); padding:22px; }
.project-detail-panel { border:1px solid var(--line); border-radius:var(--radius); background:rgba(7,17,31,.55); padding:24px; box-shadow:var(--shadow); }
.project-detail-panel dl { margin:18px 0 0; display:grid; gap:10px; }
.project-detail-panel div { border-top:1px solid var(--line); padding-top:10px; }
.project-detail-panel dt { color:var(--blue); text-transform:uppercase; letter-spacing:.08em; font-weight:900; font-size:.78rem; }
.project-detail-panel dd { margin:4px 0 0; color:var(--text); font-weight:800; }
.compact-hero { padding-bottom:44px; }
@media (max-width:980px){ .project-board, .support-grid, .project-meta, .project-pulse { grid-template-columns:1fr; } }


/* v0.6 active Technology Cadet demo, project submission, and character lore */
.badge-hero-panel img { max-width: 260px; width: 100%; margin: 0 auto; display:block; border-radius: 50%; box-shadow: var(--shadow); }
.featured-mission { border-color: rgba(244,181,68,.65); background: linear-gradient(180deg, rgba(244,181,68,.13), rgba(255,255,255,.04)); }
.featured-mission h3 a, .active-badge-preview h3 a, .active-pathway h3 a { color: var(--gold); text-decoration:none; }
.featured-mission h3 a:hover, .active-badge-preview h3 a:hover, .active-pathway h3 a:hover { text-decoration: underline; }
.featured-mission-grid { display:grid; grid-template-columns:180px 1fr; gap:22px; align-items:center; }
.featured-mission-grid img { width:170px; border-radius:50%; box-shadow: var(--shadow); }
.inactive { opacity:.78; }
.inactive .pill { background: rgba(255,255,255,.06); color: var(--muted); }
.badge-art-link img { width: 170px; max-width:100%; border-radius:50%; box-shadow: var(--shadow); display:block; }
.active-badge-preview { grid-template-columns: 190px 1fr; }
.badge-placeholder { width:92px; height:92px; border-radius:50%; display:grid; place-items:center; margin:12px 0 16px; border:2px dashed rgba(255,255,255,.25); color:var(--gold); font-weight:900; font-size:1.4rem; background:rgba(7,17,31,.55); }
.mission-demo-card { border:1px solid var(--line); border-radius:var(--radius); background:rgba(7,17,31,.55); padding:24px; box-shadow:var(--shadow); display:grid; gap:14px; }
.mission-demo-card label { display:flex; gap:12px; align-items:flex-start; color:var(--text); font-weight:800; border:1px solid var(--line); border-radius:16px; padding:14px; background:rgba(255,255,255,.04); }
.mission-demo-card input[type="checkbox"] { transform: scale(1.25); margin-top:5px; }
.mission-progress { height:16px; border:1px solid var(--line); border-radius:999px; overflow:hidden; background:rgba(0,0,0,.22); }
.mission-progress div { height:100%; width:0; background:linear-gradient(90deg, var(--orange), var(--gold), var(--green)); transition:width .2s ease; }
.mission-progress-text { margin:0; font-weight:900; color:var(--gold); }
.completion-callout { border:1px solid rgba(124,227,139,.5); border-radius:18px; padding:18px; background:rgba(124,227,139,.12); }
.proposal-form { display:grid; gap:16px; border:1px solid var(--line); border-radius:var(--radius); padding:22px; background:rgba(7,17,31,.55); box-shadow:var(--shadow); }
.proposal-form label { display:grid; gap:8px; color:var(--gold); font-weight:900; }
.proposal-form input, .proposal-form select, .proposal-form textarea, .generated-output textarea { width:100%; border:1px solid var(--line); border-radius:16px; background:rgba(7,17,31,.78); color:var(--text); padding:13px 15px; font:inherit; }
.generated-output { margin-top:22px; border:1px solid rgba(95,211,255,.45); border-radius:var(--radius); background:rgba(95,211,255,.08); padding:22px; }
.template-pre { white-space:pre-wrap; color:var(--text); background:rgba(7,17,31,.7); border:1px solid var(--line); border-radius:18px; padding:18px; overflow:auto; }
.quote-card blockquote, blockquote { margin:0 0 12px; color:#fff7d0; font-size:1.25rem; line-height:1.35; font-weight:900; }
.portrait-panel img { max-width:300px; margin:0 auto; }
@media (max-width:720px){ .featured-mission-grid, .active-badge-preview { grid-template-columns:1fr; } }


/* v0.7 placeholder replacement pass */
.concept-note { border:1px solid rgba(95,211,255,.45); border-radius:18px; padding:14px 16px; background:rgba(95,211,255,.08); color:#dbeaff; }
.concept-note strong { color:var(--blue); }
.badge-thumb { width:96px; height:96px; border-radius:50%; display:block; margin:12px 0 16px; box-shadow:0 12px 34px rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.16); }
.zone-visual img, .character-art-card img { width:100%; border-radius:20px; box-shadow:var(--shadow); border:1px solid var(--line); background:rgba(7,17,31,.5); }
.character-art-card { display:grid; gap:14px; }
.zone-dashboard { display:grid; grid-template-columns: 1.1fr .9fr; gap:18px; align-items:start; }
.zone-facts { display:grid; gap:12px; }
.zone-facts div { border:1px solid var(--line); border-radius:16px; padding:14px; background:rgba(7,17,31,.55); }
.zone-facts strong { color:var(--blue); display:block; text-transform:uppercase; letter-spacing:.08em; font-size:.78rem; margin-bottom:3px; }
.asset-checklist { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.asset-checklist article { border:1px solid var(--line); border-radius:20px; padding:18px; background:rgba(7,17,31,.55); }
.asset-checklist h3 { color:var(--gold); }
.badge-card.inactive .badge-thumb { opacity:.76; filter:saturate(.75); }
@media (max-width:980px){ .zone-dashboard, .asset-checklist { grid-template-columns:1fr; } }


/* v0.8 real asset staging additions */
.media-board { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.asset-card { border:1px solid var(--line); border-radius:var(--radius); background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035)); padding:20px; }
.asset-card img { width:100%; border-radius:18px; border:1px solid var(--line); background:rgba(7,17,31,.5); }
.asset-card code, .file-code { display:inline-block; background:rgba(7,17,31,.75); border:1px solid var(--line); border-radius:10px; padding:4px 8px; color:var(--gold); font-size:.88rem; }
.asset-status { display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px; font-size:.78rem; font-weight:900; text-transform:uppercase; background:rgba(244,181,68,.14); border:1px solid rgba(244,181,68,.45); color:var(--gold); }
.asset-status.needed { color:#ffd1d6; background:rgba(255,91,110,.13); border-color:rgba(255,91,110,.4); }
.asset-status.ready { color:#baffc2; background:rgba(124,227,139,.13); border-color:rgba(124,227,139,.4); }
.facility-map-frame { border:1px solid var(--line); border-radius:var(--radius); padding:18px; background:rgba(7,17,31,.55); box-shadow:var(--shadow); }
.facility-map-frame img { width:100%; border-radius:18px; display:block; }
.photo-target-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.photo-target { border:2px dashed rgba(244,181,68,.45); border-radius:var(--radius); padding:18px; background:rgba(244,181,68,.07); }
.photo-target strong { color:var(--gold); display:block; }
.print-sheet img { width:100%; display:block; border-radius:18px; }
@media (max-width:980px){ .media-board, .photo-target-grid { grid-template-columns:1fr; } }


/* v0.9 approved media recovery baseline */
.image-panel { padding: 14px; }
.image-panel img, .image-card img, .asset-card img, .onesheet-card img { width: 100%; height: auto; display:block; border-radius: 18px; }
.image-caption { margin: 10px 4px 0; font-size: .92rem; color: var(--muted); }
.brand img { object-fit: cover; background: #07111f; }
.approved-media-strip { display:grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap:14px; align-items:stretch; }
.approved-media-strip img { width:100%; height: 150px; object-fit: cover; border-radius: 20px; border:1px solid var(--line); background:rgba(7,17,31,.55); box-shadow:0 12px 35px rgba(0,0,0,.18); }
.approved-media-strip img:first-child { object-fit: contain; padding:16px; }
.profile-card img { object-fit: cover; background: rgba(255,255,255,.05); }
.character-art-card img { width:100%; border-radius:18px; display:block; }
.onesheet-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:18px; }
.onesheet-grid .card img { width:100%; border-radius:18px; display:block; margin-bottom:12px; }
.asset-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:18px; }
.asset-card { border:1px solid var(--line); background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035)); border-radius:var(--radius); padding:14px; }
.asset-card img { aspect-ratio: 4 / 3; object-fit:contain; background:#fff; padding:8px; }
.asset-card code { display:block; margin-top:10px; color:var(--gold); word-break:break-all; font-size:.78rem; }
.mission-icon { width:96px; height:96px; object-fit:cover; border-radius:24px; float:right; margin:0 0 10px 14px; border:1px solid var(--line); box-shadow:0 10px 24px rgba(0,0,0,.18); }
.badge-thumb { width:100%; max-width:160px; display:block; border-radius:18px; margin:12px 0; border:1px solid var(--line); }
.featured-mission-grid img, .badge-hero-panel img, .active-badge-preview img { max-height:520px; object-fit:contain; }
.zone-visual img { width:100%; height:auto; border-radius:18px; display:block; }
@media (max-width:980px){ .approved-media-strip, .asset-grid, .onesheet-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width:720px){ .approved-media-strip, .asset-grid, .onesheet-grid { grid-template-columns:1fr; } .approved-media-strip img{height:auto;} }


/* v1.1 Knowledge Article reader */
.kb-card-link { color:var(--text); text-decoration:none; }
.kb-card-link:hover, .kb-card-link:focus { color:var(--gold); text-decoration:underline; }
.kb-open { margin-top:6px; }
.kb-back { display:inline-block; margin-bottom:18px; color:var(--blue); font-weight:900; text-decoration:none; }
.ka-reader { max-width:900px; }
.ka-status-warning { display:grid; gap:4px; border:1px solid rgba(244,181,68,.6); border-radius:18px; padding:16px 18px; background:rgba(244,181,68,.11); margin-bottom:22px; }
.ka-status-warning strong { color:var(--gold); }
.ka-status-warning span { color:var(--muted); }
.ka-document { border:1px solid var(--line); border-radius:var(--radius); background:rgba(7,17,31,.62); padding:clamp(22px,5vw,46px); box-shadow:var(--shadow); }
.ka-document h1 { font-size:clamp(2rem,5vw,3.8rem); margin-bottom:18px; }
.ka-document h2 { margin-top:38px; padding-top:22px; border-top:1px solid var(--line); color:var(--gold); }
.ka-document h3 { margin-top:26px; color:var(--blue); }
.ka-document p, .ka-document li { color:#dbeaff; }
.ka-document li { margin-bottom:8px; }
.ka-document code { color:#fff7d0; background:rgba(255,255,255,.07); border:1px solid var(--line); border-radius:7px; padding:2px 6px; }
.ka-document pre { overflow:auto; background:#050b14; border:1px solid var(--line); border-radius:16px; padding:16px; }
.ka-document pre code { border:0; padding:0; background:none; }
.ka-meta-line { margin:4px 0; }


/* v1.2 CIT-205 contribution launchpad */
.contribute-launch { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr); gap:18px; margin:26px 0 42px; }
.contribute-primary, .contribute-boundary { border:1px solid var(--line); border-radius:var(--radius); padding:24px; background:rgba(7,17,31,.6); }
.contribute-primary { background:linear-gradient(135deg,rgba(95,211,255,.10),rgba(244,181,68,.08)); }
.contribute-primary h3 { font-size:1.65rem; margin-top:12px; }
.contribute-boundary { border-color:rgba(244,181,68,.5); background:rgba(244,181,68,.08); }
.contribute-boundary strong { color:var(--gold); font-size:1.1rem; }
.contribute-heading { margin-top:18px; }
.contribute-steps { display:grid; gap:14px; }
.contribute-step { display:grid; grid-template-columns:76px 1fr; gap:20px; align-items:start; border:1px solid var(--line); border-radius:var(--radius); padding:22px 24px; background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025)); }
.step-number { color:var(--gold); font-size:1.35rem; font-weight:900; letter-spacing:.06em; }
.contribute-step h3 { margin:0 0 6px; }
.contribute-step p { margin:0 0 10px; }
.contribute-step a, .resource-grid a { color:var(--blue); font-weight:900; text-decoration:none; }
.contribute-step a:hover, .resource-grid a:hover { text-decoration:underline; }
.step-links { display:flex; gap:16px; flex-wrap:wrap; }
.resource-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:28px; }
.resource-grid .tag { margin-bottom:14px; }
.contribute-finish { margin-top:28px; }
@media (max-width:980px){ .contribute-launch,.resource-grid { grid-template-columns:1fr; } }
@media (max-width:620px){ .contribute-step { grid-template-columns:1fr; gap:6px; } }


/* v1.3 streamlined Command Portal front door */
.prototype-banner {
  padding: 6px 20px;
  text-align: center;
  font-size: .76rem;
  line-height: 1.25;
  color: var(--muted);
  background: rgba(0,0,0,.28);
  border-bottom: 1px solid var(--line);
}
.site-header { position: relative; }
.header-inner { min-height: 72px; }
.brand img { width: 44px; height: 44px; }
.brand strong { font-size: 1rem; }
.primary-nav a { font-size: .84rem; padding: 8px 10px; }
.home-hero { padding: 48px 0 30px; }
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr);
  gap: 52px;
  align-items: center;
}
.home-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(2.8rem,5vw,4.7rem);
}
.home-hero-copy .hero-text { max-width: 690px; margin-top: 20px; }
.home-hero-visual {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
  background: rgba(255,255,255,.035);
}
.home-hero-visual img { width: 100%; height: auto; display: block; }
.home-paths { padding-top: 32px; padding-bottom: 54px; }
.home-paths .section-heading { margin-bottom: 20px; }
.home-paths .card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.home-paths .card p { margin-top: 4px; }
.home-paths .card-link { margin-top: auto; padding-top: 18px; }
@media (max-width: 980px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-hero-visual { max-width: 680px; }
}


/* v1.4 one-screen portal landing */
.home-hero { padding: 26px 0 14px; }
.home-hero-grid {
  grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr);
  gap: 34px;
}
.home-hero-copy h1 {
  font-size: clamp(2.25rem,4vw,3.75rem);
  line-height: .98;
  margin: 8px 0 12px;
}
.home-hero-copy .hero-text {
  font-size: 1.05rem;
  margin-top: 10px;
}
.home-hero-visual {
  max-width: 420px;
  justify-self: end;
  border-radius: 18px;
}
.home-paths { padding: 12px 0 28px; }
.home-paths .section-heading { margin-bottom: 12px; }
.home-paths .section-heading h2 { font-size: clamp(1.7rem,3vw,2.35rem); }
.home-paths .card-grid { gap: 14px; }
.home-paths .card {
  min-height: 170px;
  padding: 18px;
}
.home-paths .card h3 { font-size: 1.2rem; margin: 10px 0 5px; }
.home-paths .card p { font-size: .9rem; line-height: 1.45; }
.home-paths .card-link { padding-top: 10px; }
@media (min-width:981px) {
  .home-hero-visual img { max-height: 245px; object-fit: cover; }
}


/* v1.5 pathways-first homepage */
.home-hero { padding: 24px 0 8px; }
.home-intro { text-align:center; max-width:900px; }
.home-intro .home-hero-copy h1 {
  font-size:clamp(2.4rem,4.5vw,4rem);
  margin:6px 0 8px;
}
.home-intro .hero-text {
  max-width:760px;
  margin:0 auto;
  font-size:1rem;
}
.home-paths { padding:10px 0 22px; }
.home-paths .section-heading { text-align:center; margin-bottom:12px; }
.home-paths .section-heading h2 { font-size:1.65rem; }
.home-paths .card-grid { gap:16px; }
.home-paths .card {
  min-height:190px;
  padding:20px;
}
@media (min-width:981px) {
  body#top .site-footer { padding-top:20px; padding-bottom:20px; }
}


/* live GitHub project dashboard */
.live-indicator{display:inline-flex;gap:8px;align-items:center;margin-top:18px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:.86rem;background:rgba(255,255,255,.035)}
.live-indicator span:first-child{color:#58d68d}
.live-pulse{margin:0 0 38px}
.dashboard-heading{margin-top:8px}
.live-project-card h3{margin-top:12px}
.activity-feed{display:grid;gap:10px}
.activity-item{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:14px 18px;border:1px solid var(--line);border-radius:14px;background:rgba(7,17,31,.55)}
.activity-item div{display:grid;gap:4px}
.activity-item span{color:var(--muted);font-size:.82rem}
.activity-item a{color:var(--blue);font-weight:800;text-decoration:none;white-space:nowrap}
@media(max-width:720px){.activity-item{align-items:flex-start;flex-direction:column;gap:8px}}


/* v1.6 mobile homepage repair */
@media (max-width: 720px) {
  .home-hero { padding: 22px 0 10px; }
  .home-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .home-hero-copy { text-align: center; }
  .home-hero-copy .eyebrow {
    margin-bottom: 6px;
    font-size: .78rem;
    letter-spacing: .16em;
  }
  .home-hero-copy h1,
  .home-intro .home-hero-copy h1 {
    max-width: none;
    font-size: clamp(2.35rem, 12vw, 3.25rem);
    line-height: .92;
    margin: 4px 0 10px;
  }
  .home-hero-copy .hero-text,
  .home-intro .hero-text {
    max-width: 34ch;
    margin: 0 auto;
    font-size: .96rem;
    line-height: 1.45;
  }
  .home-hero-visual {
    width: 100%;
    max-width: 520px;
    justify-self: center;
    border-radius: 14px;
  }
  .home-hero-visual img {
    width: 100%;
    max-height: 190px;
    object-fit: cover;
  }
  .home-paths { padding: 14px 0 24px; }
  .home-paths .section-heading {
    text-align: center;
    margin-bottom: 12px;
  }
  .home-paths .section-heading h2 { font-size: 1.55rem; }
  .home-paths .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .home-paths .card {
    min-height: 0;
    padding: 17px 18px;
  }
  .home-paths .card h3 {
    margin: 8px 0 4px;
    font-size: 1.12rem;
  }
  .home-paths .card p {
    font-size: .88rem;
    line-height: 1.4;
  }
  .home-paths .card-link { padding-top: 8px; }
}
