/* ============================================================
   From Play to Abstraction — CT & AI 2026–27
   Interactive teaching site
   ============================================================ */

:root {
  --bg: #0c1024;
  --bg2: #131a3a;
  --panel: #1a2148;
  --panel2: #222b5c;
  --ink: #eef1ff;
  --muted: #9aa6d6;
  --line: rgba(255, 255, 255, 0.10);
  --brand: #7c5cff;
  --brand2: #00d4ff;
  --pink: #ff6ec7;
  --amber: #ffc24b;
  --green: #2fe6a8;
  --red: #ff6b6b;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --maxw: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(124, 92, 255, 0.25), transparent 60%),
    radial-gradient(1000px 600px at -10% 20%, rgba(0, 212, 255, 0.16), transparent 55%),
    var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.4em; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; color: #d7ddff; }
a { color: var(--brand2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 34, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand .dot {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  display: grid; place-items: center; font-size: 16px;
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.5);
}
.nav-links { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted); font-size: 13.5px; font-weight: 600;
  padding: 7px 11px; border-radius: 10px; transition: 0.2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.06); text-decoration: none; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 78px 0 60px; overflow: hidden; }
#neuralCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.hero .wrap { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand2); background: rgba(0, 212, 255, 0.10);
  border: 1px solid rgba(0, 212, 255, 0.30); padding: 7px 14px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 64px); margin: 22px 0 14px; max-width: 16ch;
  background: linear-gradient(120deg, #fff 20%, #c9b8ff 55%, #8ee9ff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { font-size: clamp(16px, 2.2vw, 21px); color: var(--muted); max-width: 60ch; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tag {
  font-size: 13px; font-weight: 600; color: var(--ink);
  background: rgba(255,255,255,0.06); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px;
}
.tag b { color: var(--amber); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 13px; cursor: pointer; border: none; transition: 0.2s;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #0a0e22; box-shadow: 0 12px 30px rgba(124, 92, 255, 0.45); }
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; }
.btn-ghost { background: rgba(255,255,255,0.05); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

/* ---------- Section scaffolding ---------- */
section { padding: 64px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.kicker {
  font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 40px); }
.section-head p { font-size: 17px; color: var(--muted); }

.divider { height: 1px; background: var(--line); margin: 0 auto; max-width: var(--maxw); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: 0.25s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: rgba(124,92,255,0.5); box-shadow: var(--shadow); }
.card h3 { font-size: 19px; }
.card .ic { font-size: 30px; margin-bottom: 12px; display: block; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* journey ribbon */
.journey { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; counter-reset: step; }
.journey .step {
  flex: 1 1 150px; background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  padding: 20px 18px; position: relative; min-width: 150px;
}
.journey .step:first-child { border-radius: 16px 0 0 16px; }
.journey .step:last-child { border-radius: 0 16px 16px 0; }
.journey .step .n {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #0a0e22; margin-bottom: 12px;
}
.journey .step h4 { font-size: 15px; margin: 0 0 4px; }
.journey .step p { font-size: 12.5px; color: var(--muted); margin: 0; }
.journey .step .arrow { position: absolute; right: -11px; top: 50%; transform: translateY(-50%); z-index: 3; color: var(--brand2); font-size: 20px; }

/* ---------- Module blocks ---------- */
.module { margin-bottom: 30px; }
.module-card {
  border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
}
.module-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; }
.module-text { padding: 34px; }
.module-lab { padding: 34px; background: rgba(0,0,0,0.22); border-left: 1px solid var(--line); }
.module-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: #0a0e22;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 14px;
}
.module h3 { font-size: 23px; }
.module .lead { color: #d7ddff; font-size: 15px; }
.teach-steps { list-style: none; padding: 0; margin: 18px 0 0; }
.teach-steps li {
  position: relative; padding: 10px 0 10px 38px; font-size: 14.5px; color: var(--muted);
  border-top: 1px dashed var(--line);
}
.teach-steps li:first-child { border-top: none; }
.teach-steps li .si {
  position: absolute; left: 0; top: 9px; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(124,92,255,0.18); border: 1px solid rgba(124,92,255,0.5);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #cbb9ff;
}
.teach-steps li b { color: var(--ink); }
.lab-title { font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand2); margin-bottom: 6px; }
.lab-hint { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

.vocab { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.vocab span {
  font-size: 12px; font-weight: 700; color: #cbb9ff; background: rgba(124,92,255,0.12);
  border: 1px solid rgba(124,92,255,0.3); padding: 5px 11px; border-radius: 8px;
}

/* grade pills */
.grades { display: flex; gap: 8px; margin: 14px 0 0; flex-wrap: wrap; }
.gpill { font-size: 12px; padding: 5px 11px; border-radius: 8px; font-weight: 700; }
.g35 { background: rgba(47,230,168,0.13); color: var(--green); border: 1px solid rgba(47,230,168,0.35); }
.g68 { background: rgba(255,194,75,0.13); color: var(--amber); border: 1px solid rgba(255,194,75,0.35); }

/* ---------- Interactive widgets ---------- */
.demo { display: grid; gap: 14px; }
.demo-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chip-btn {
  font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--ink); transition: 0.18s;
}
.chip-btn:hover { background: rgba(255,255,255,0.13); }
.chip-btn.active { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #0a0e22; border-color: transparent; }

input[type=range] { width: 100%; accent-color: var(--brand); }

/* Module 1 — reveal */
.reveal-stage { display: grid; place-items: center; height: 190px; background: rgba(0,0,0,0.25); border-radius: 16px; border: 1px solid var(--line); }
.reveal-emoji { font-size: 110px; transition: filter 0.1s, opacity 0.1s; }
.reveal-guess { text-align: center; font-size: 14px; color: var(--muted); min-height: 22px; }

/* Module 2 — sorter */
.sorter-bins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bin {
  min-height: 120px; border: 1.5px dashed var(--line); border-radius: 14px; padding: 10px;
  background: rgba(0,0,0,0.18); transition: 0.2s;
}
.bin h5 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); text-align: center; }
.bin .items { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tok { font-size: 30px; line-height: 1; transition: transform 0.4s cubic-bezier(.2,.9,.3,1.4); cursor: default; user-select: none; }
.tok:hover { transform: scale(1.25) rotate(-6deg); }

/* Module 3 — train machine */
.machine {
  display: grid; place-items: center; gap: 6px; padding: 16px; border-radius: 16px;
  background: rgba(0,0,0,0.22); border: 1px solid var(--line); text-align: center;
}
.machine .face { font-size: 60px; transition: 0.2s; }
.machine .verdict { font-weight: 800; font-size: 15px; min-height: 22px; }
.ok { color: var(--green); } .bad { color: var(--red); } .neu { color: var(--amber); }
.examples-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ex {
  display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line);
}
.ex.healthy { background: rgba(47,230,168,0.10); border-color: rgba(47,230,168,0.35); }
.ex.junk { background: rgba(255,107,107,0.10); border-color: rgba(255,107,107,0.35); }

/* Module 4 — pixel grid + neural net */
.pixel-wrap { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.pgrid { display: grid; gap: 3px; }
.px {
  width: 26px; height: 26px; border-radius: 5px; background: rgba(255,255,255,0.07);
  cursor: pointer; transition: 0.12s; display: grid; place-items: center; font-size: 10px; color: transparent;
}
.px.on { background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.px.shownum { color: rgba(255,255,255,0.85); }
.matrix { font-family: ui-monospace, "SF Mono", monospace; font-size: 12px; color: var(--brand2); white-space: pre; background: rgba(0,0,0,0.3); padding: 12px; border-radius: 12px; border: 1px solid var(--line); overflow:auto; }

.nn { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.nn-layer { display: grid; gap: 10px; flex: 1; }
.nn-node {
  padding: 9px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 700; text-align: center;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--muted); transition: 0.3s;
}
.nn-node.fire { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #0a0e22; border-color: transparent; transform: scale(1.06); box-shadow: 0 8px 20px rgba(124,92,255,0.4); }
.nn-cap { text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.nn-arrow { color: var(--brand2); font-size: 22px; align-self: center; }

/* Module 5 — compression */
.comp-stage { height: 200px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0,0,0,0.25); display: grid; place-items: center; overflow: hidden; position: relative; }
.comp-detail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 14px; }
.comp-detail span { font-size: 26px; text-align: center; }
.comp-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; font-weight: 800; color: var(--brand2); background: rgba(0,0,0,0.55); }
.comp-result { font-size: 14px; color: var(--muted); }

/* Module 6 — next word */
.sentence { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.blank { color: var(--amber); border-bottom: 3px dashed var(--amber); padding: 0 18px; }
.blank.filled { color: var(--green); border-bottom-color: var(--green); }
.wordbars { display: grid; gap: 8px; }
.wordbar { display: grid; grid-template-columns: 96px 1fr 46px; gap: 10px; align-items: center; font-size: 13px; cursor: pointer; }
.wordbar .lbl { font-weight: 700; text-align: right; }
.wordbar .track { height: 16px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.wordbar .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand2)); width: 0; transition: width 0.9s cubic-bezier(.2,.8,.2,1); }
.wordbar .pct { color: var(--muted); font-weight: 700; }
.wordbar:hover .lbl { color: var(--brand2); }

/* ---------- Exercises gallery ---------- */
.ex-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ex-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: rgba(255,255,255,0.035); transition: 0.25s; }
.ex-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(0,212,255,0.4); }
.ex-card .num { font-size: 12px; font-weight: 800; color: var(--brand2); letter-spacing: 0.1em; }
.ex-card h4 { font-size: 17px; margin: 6px 0 8px; }
.ex-card p { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.ex-card .learns { font-size: 12px; color: var(--green); font-weight: 700; }
.ex-card .ic { font-size: 26px; }

/* clickable exercise cards */
.ex-card { cursor: pointer; display: flex; flex-direction: column; }
.ex-card .run {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 800; color: #0a0e22; padding: 8px 15px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); transition: 0.2s;
}
.ex-card:hover .run { transform: translateX(3px); box-shadow: 0 8px 20px rgba(124,92,255,0.4); }
.ex-card:focus-visible { outline: 2px solid var(--brand2); outline-offset: 3px; }

/* ---------- Modal / activity player ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: rgba(5, 8, 22, 0.78); backdrop-filter: blur(8px); padding: 20px;
  animation: fade 0.2s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(680px, 100%); max-height: 90vh; overflow-y: auto; position: relative;
  background: linear-gradient(180deg, #1b2350, #141a3a); border: 1px solid rgba(124,92,255,0.4);
  border-radius: 24px; box-shadow: var(--shadow); animation: pop 0.25s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { transform: scale(0.94) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line); color: var(--ink);
  font-size: 17px; cursor: pointer; z-index: 2; transition: 0.18s;
}
.modal-close:hover { background: rgba(255,107,107,0.25); border-color: var(--red); }
.modal-head { padding: 30px 30px 18px; border-bottom: 1px solid var(--line); }
.modal-head .modal-ic { font-size: 34px; }
.modal-head h3 { font-size: 22px; margin: 8px 0 4px; }
.modal-head p { font-size: 14px; color: var(--muted); margin: 0; }
.modal-body { padding: 26px 30px 34px; }

/* activity shared bits */
.act-prompt { font-size: 17px; font-weight: 700; margin-bottom: 16px; text-align: center; }
.act-stage {
  background: rgba(0,0,0,0.28); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; margin-bottom: 18px; min-height: 90px; display: grid; place-items: center;
}
.act-seq { font-size: 40px; letter-spacing: 8px; text-align: center; }
.act-seq .q { color: var(--amber); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.act-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.opt {
  font-size: 18px; font-weight: 700; padding: 14px 12px; border-radius: 13px; cursor: pointer;
  background: rgba(255,255,255,0.06); border: 1.5px solid var(--line); color: var(--ink); transition: 0.15s;
}
.opt:hover { background: rgba(124,92,255,0.18); border-color: var(--brand); }
.opt.correct { background: rgba(47,230,168,0.22); border-color: var(--green); color: #fff; }
.opt.wrong { background: rgba(255,107,107,0.22); border-color: var(--red); color: #fff; }
.opt:disabled { cursor: default; }
.act-feedback { text-align: center; font-weight: 700; min-height: 26px; margin: 14px 0 6px; font-size: 15px; }
.act-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.act-score { font-size: 13px; color: var(--muted); font-weight: 700; }
.act-score b { color: var(--green); }
.act-next {
  font-size: 14px; font-weight: 800; color: #0a0e22; padding: 11px 20px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); cursor: pointer; transition: 0.18s;
}
.act-next:hover { transform: translateY(-2px); }
.act-next:disabled { opacity: 0.4; cursor: default; transform: none; }
.act-tip { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; font-style: italic; }
.act-done { text-align: center; padding: 10px; }
.act-done .big { font-size: 46px; }
.act-done h4 { font-size: 20px; margin: 8px 0 6px; }

/* clue list (ex2) */
.clues { display: grid; gap: 8px; width: 100%; }
.clue { padding: 11px 14px; border-radius: 11px; background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.3); font-size: 15px; animation: pop 0.3s; }
.clue .ci { font-weight: 800; color: var(--brand2); margin-right: 8px; }

/* memory grid (ex5) */
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
.mem-cell { font-size: 34px; text-align: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1.5px solid var(--line); cursor: pointer; transition: 0.15s; }
.mem-cell:hover { border-color: var(--brand); }
.mem-cell.picked { background: rgba(124,92,255,0.25); border-color: var(--brand); }
.mem-cell.hit { background: rgba(47,230,168,0.22); border-color: var(--green); }
.mem-cell.miss { background: rgba(255,107,107,0.18); border-color: var(--red); }

/* layered NN walk (ex6) */
.layer-step { width: 100%; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lchip { font-size: 14px; font-weight: 700; padding: 10px 14px; border-radius: 11px; cursor: pointer; background: rgba(255,255,255,0.06); border: 1.5px solid var(--line); transition: 0.15s; }
.lchip:hover { border-color: var(--brand); }
.lchip.sel { background: rgba(124,92,255,0.25); border-color: var(--brand); }
.lchip.good { background: rgba(47,230,168,0.2); border-color: var(--green); }

/* word bars inside modal reuse .wordbar styles */
.modal .wordbars { width: 100%; }

/* ---------- Competencies ---------- */
.comp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.comp-pill {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center;
  background: rgba(255,255,255,0.035); transition: 0.2s;
}
.comp-pill:hover { background: rgba(124,92,255,0.12); transform: translateY(-3px); }
.comp-pill .ic { font-size: 26px; }
.comp-pill h4 { font-size: 14.5px; margin: 8px 0 4px; }
.comp-pill p { font-size: 12px; color: var(--muted); margin: 0; }

/* ---------- Assessment ---------- */
.flip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.qcard { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: rgba(255,255,255,0.035); }
.qcard h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand2); }
.qcard ul { margin: 10px 0 0; padding-left: 18px; }
.qcard li { font-size: 14px; color: var(--muted); margin-bottom: 8px; }

.shift { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin-top: 8px; }
.shift .before, .shift .after { padding: 14px; border-radius: 14px; font-size: 14px; }
.shift .before { background: rgba(255,107,107,0.10); border: 1px solid rgba(255,107,107,0.3); }
.shift .after { background: rgba(47,230,168,0.10); border: 1px solid rgba(47,230,168,0.3); }
.shift .mid { font-size: 22px; color: var(--brand2); }

.reflection {
  border: 1px dashed rgba(255,194,75,0.5); background: rgba(255,194,75,0.07);
  border-radius: 16px; padding: 24px; font-size: 16px; line-height: 2;
}
.reflection u { text-decoration-color: var(--amber); text-underline-offset: 4px; }

/* ---------- Feature lists (inclusivity, scale, challenges) ---------- */
.feat { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.feat:first-child { border-top: none; }
.feat .fi { font-size: 24px; flex: none; }
.feat h4 { font-size: 15.5px; margin: 0 0 3px; }
.feat p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* subjects */
.subj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.subj { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: rgba(255,255,255,0.035); }
.subj h4 { font-size: 14px; margin: 0 0 6px; color: var(--brand2); }
.subj p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0 60px; margin-top: 30px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer p { font-size: 13px; color: var(--muted); }
.foot-note { font-size: 12px; color: #6a76aa; margin-top: 18px; }

/* reveal-on-scroll */
.reveal-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-up.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .g2, .g3, .g4, .ex-grid, .flip-grid, .comp-grid, .subj-grid { grid-template-columns: 1fr; }
  .module-top { grid-template-columns: 1fr; }
  .module-lab { border-left: none; border-top: 1px solid var(--line); }
  .comp-grid { grid-template-columns: repeat(2, 1fr); }
  .pixel-wrap { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; background: var(--bg2); padding: 12px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-grid; place-items: center; margin-left: auto; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--ink); font-size: 18px; cursor: pointer; }
  .shift { grid-template-columns: 1fr; }
}
