/* global window */
/* CartoonforChrist — Skills & Hobbies data
 * Source of truth for the Explore (explore.html) and How We Learn (learn.html)
 * pages. Transcribed from master_skills_v3 — every domain, subcategory and
 * individual skill, with difficulty stars (s: 1=foundation, 2=intermediate,
 * 3=advanced). Course/book recommendations are intentionally omitted here to
 * keep the kid-facing explorer playful; the methodology lives in LEARN below.
 */

const SKILL_DOMAINS = [
  /* ───────── FOUNDATION META-SKILLS ───────── */
  {
    id: "adaptable-mind", num: "01", family: "Foundation meta-skills",
    title: "The Adaptable Mind", glyph: "🧠", color: "var(--cfc-purple)", fg: "#fff",
    blurb: "Keep learning, unlearning and re-learning as the world changes — the master skill under every other skill.",
    subs: [
      { title: "Curiosity habit", skills: [
        { n: "Asking “why” & “how” daily", s: 1 },
        { n: "Wonder walks", s: 1 },
      ]},
      { title: "Growth mindset", skills: [
        { n: "Fixed vs growth thinking", s: 1 },
        { n: "Reframing failure as data", s: 2 },
        { n: "Embracing constructive criticism", s: 2 },
      ]},
      { title: "Adaptability & resilience", skills: [
        { n: "Comfort with discomfort", s: 1 },
        { n: "Bouncing back from setbacks", s: 2 },
        { n: "Mental flexibility & unlearning", s: 3 },
      ]},
      { title: "Learning how to learn", skills: [
        { n: "Active recall & spaced repetition", s: 2 },
        { n: "Pomodoro & focus blocks", s: 1 },
        { n: "Project-based learning", s: 2 },
        { n: "Meta-learning framework", s: 3 },
      ]},
      { title: "Ready for change", skills: [
        { n: "Trying one new thing weekly", s: 1 },
        { n: "Lifelong-learning habit", s: 2 },
        { n: "Future-skill scouting", s: 3 },
      ]},
      { title: "Critical thinking", skills: [
        { n: "Spotting logical fallacies", s: 2 },
        { n: "Evaluating sources & evidence", s: 2 },
        { n: "Asking better questions", s: 3 },
      ]},
    ],
  },
  {
    id: "psychology", num: "02", family: "Foundation meta-skills",
    title: "Psychology & Emotional Intelligence", glyph: "💗", color: "var(--cfc-pink)", fg: "#fff",
    blurb: "Understanding yourself and others — probably the highest-leverage soft skill there is.",
    subs: [
      { title: "Emotional self-awareness", skills: [
        { n: "Naming feelings", s: 1 },
        { n: "Identifying triggers & body signals", s: 2 },
        { n: "Emotional intelligence basics", s: 2 },
      ]},
      { title: "Social skills & relationships", skills: [
        { n: "Real listening", s: 1 },
        { n: "Empathy practice", s: 2 },
        { n: "Difficult conversations", s: 3 },
        { n: "Conflict resolution", s: 3 },
      ]},
      { title: "Decision-making & behaviour", skills: [
        { n: "Understanding bias", s: 2 },
        { n: "Decision-making frameworks", s: 3 },
        { n: "Habit formation & behaviour change", s: 2 },
      ]},
      { title: "Parenting (for grown-ups)", skills: [
        { n: "Parenting frameworks", s: 2 },
      ]},
    ],
  },
  {
    id: "ai-digital", num: "03", family: "Foundation meta-skills",
    title: "AI, Automation & Digital Fluency", glyph: "🤖", color: "var(--cfc-blue)", fg: "#fff",
    blurb: "The skill set that quietly decides who thrives. Tools change every six months — fluency and curiosity are the real skills.",
    subs: [
      { title: "Digital foundations", skills: [
        { n: "Touch typing", s: 1 },
        { n: "Computer literacy", s: 1 },
        { n: "Search literacy", s: 1 },
      ]},
      { title: "Cybersecurity & online safety", skills: [
        { n: "Personal digital safety for kids", s: 1 },
        { n: "Strong-password & 2FA habits", s: 1 },
        { n: "Phishing & scam recognition", s: 2 },
        { n: "Cybersecurity foundations", s: 3 },
      ]},
      { title: "AI literacy", skills: [
        { n: "Using AI chat tools", s: 1 },
        { n: "Understanding what AI is and isn’t", s: 1 },
        { n: "Prompt engineering basics", s: 2 },
        { n: "Advanced prompt & context engineering", s: 3 },
      ]},
      { title: "AI for creation", skills: [
        { n: "AI image generation", s: 2 },
        { n: "AI video generation", s: 3 },
        { n: "AI 3D generation", s: 3 },
        { n: "AI music generation", s: 2 },
        { n: "AI voice / cloning (ethical)", s: 3 },
      ]},
      { title: "No-code automation", skills: [
        { n: "Simple automations (Zapier, IFTTT)", s: 2 },
        { n: "n8n / Make.com", s: 3 },
        { n: "AI agents", s: 3 },
      ]},
      { title: "Data literacy", skills: [
        { n: "Reading charts & graphs critically", s: 1 },
        { n: "Spreadsheet basics", s: 2 },
        { n: "Data analysis with Python (pandas)", s: 3 },
      ]},
      { title: "Personal knowledge management", skills: [
        { n: "Note-taking apps", s: 2 },
        { n: "Building a second brain", s: 3 },
      ]},
    ],
  },

  /* ───────── CREATIVE & EXPRESSIVE ───────── */
  {
    id: "music", num: "04", family: "Creative & Expressive",
    title: "Music & Sound", glyph: "🎵", color: "var(--cfc-purple)", fg: "#fff",
    blurb: "Scripture you can sing, melodies you can make. Every child can be trained to make music.",
    subs: [
      { title: "Vocal & performance", skills: [
        { n: "Singing", s: 1 },
        { n: "Choir / harmony singing", s: 2 },
        { n: "Beatboxing / vocal percussion", s: 2 },
      ]},
      { title: "Foundation instruments", skills: [
        { n: "Recorder", s: 1 },
        { n: "Ukulele", s: 1 },
        { n: "Piano / Keyboard", s: 2 },
      ]},
      { title: "Stringed instruments", skills: [
        { n: "Guitar (acoustic basics)", s: 2 },
        { n: "Guitar (electric)", s: 2 },
        { n: "Fingerstyle guitar", s: 3 },
        { n: "Bass guitar", s: 3 },
        { n: "Violin / Cello", s: 3 },
        { n: "Mandolin / Banjo", s: 3 },
      ]},
      { title: "Percussion", skills: [
        { n: "Hand drumming (bongos, djembe, frame drum)", s: 1 },
        { n: "Cajón", s: 2 },
        { n: "Drum kit", s: 2 },
      ]},
      { title: "Wind & other", skills: [
        { n: "Harmonica", s: 1 },
        { n: "Tin whistle / penny whistle", s: 1 },
        { n: "Flute", s: 3 },
        { n: "Saxophone / clarinet", s: 3 },
      ]},
      { title: "Theory & composition", skills: [
        { n: "Music theory basics", s: 2 },
        { n: "Songwriting & composition", s: 3 },
      ]},
      { title: "Production & engineering", skills: [
        { n: "Music production (FL Studio / GarageBand / Ableton)", s: 2 },
        { n: "Audio engineering", s: 3 },
        { n: "DJing", s: 3 },
        { n: "Podcast audio production", s: 3 },
      ]},
    ],
  },
  {
    id: "visual-arts", num: "05", family: "Creative & Expressive",
    title: "Visual Arts & Craft", glyph: "🎨", color: "var(--cfc-pink)", fg: "#fff",
    blurb: "Draw, paint, fold, stitch, sculpt and print — gifts made with your hands to give away.",
    subs: [
      { title: "Drawing", skills: [
        { n: "Doodling & sketching", s: 1 },
        { n: "Cartoon drawing", s: 1 },
        { n: "Character design", s: 2 },
        { n: "Anatomy & figure drawing", s: 3 },
        { n: "Comic & manga creation", s: 3 },
      ]},
      { title: "Painting", skills: [
        { n: "Watercolour", s: 1 },
        { n: "Acrylic", s: 2 },
        { n: "Gouache", s: 2 },
        { n: "Oil painting", s: 3 },
        { n: "Plein-air painting", s: 3 },
      ]},
      { title: "Lettering & calligraphy", skills: [
        { n: "Hand lettering basics", s: 1 },
        { n: "Brush pen calligraphy", s: 2 },
        { n: "Pointed-pen / dip-pen calligraphy", s: 3 },
      ]},
      { title: "Paper crafts", skills: [
        { n: "Origami", s: 1 },
        { n: "Paper engineering / pop-up books", s: 2 },
        { n: "Quilling", s: 2 },
        { n: "Bookbinding", s: 3 },
      ]},
      { title: "Fiber arts", skills: [
        { n: "Friendship bracelets / simple weaving", s: 1 },
        { n: "Crochet (basics)", s: 1 },
        { n: "Amigurumi (crochet characters)", s: 2 },
        { n: "Knitting", s: 2 },
        { n: "Embroidery", s: 2 },
        { n: "Hand sewing", s: 2 },
        { n: "Sewing machine work", s: 3 },
        { n: "Macramé", s: 2 },
        { n: "Quilting / patchwork", s: 3 },
      ]},
      { title: "Clay & sculpture", skills: [
        { n: "Air-dry clay", s: 1 },
        { n: "Polymer clay", s: 2 },
        { n: "Pottery / wheel-throwing", s: 3 },
      ]},
      { title: "Other crafts", skills: [
        { n: "Tie-dye", s: 1 },
        { n: "Block / lino printing", s: 2 },
        { n: "Pixel art", s: 2 },
        { n: "Candle making", s: 2 },
        { n: "Soap making", s: 2 },
        { n: "Construction toys (Polydron, K’Nex, LEGO Technic)", s: 1 },
        { n: "Paper circuits / LED art", s: 2 },
      ]},
    ],
  },
  {
    id: "digital-art", num: "06", family: "Creative & Expressive",
    title: "Digital Art, 3D & Animation", glyph: "🖌️", color: "var(--cfc-orange)", fg: "#fff",
    blurb: "From a first doodle on a tablet to characters that move, in 2D, 3D and AI.",
    subs: [
      { title: "Digital drawing", skills: [
        { n: "Tablet drawing (Procreate, Krita, Photoshop)", s: 2 },
        { n: "Vector design (Affinity Designer / Inkscape)", s: 2 },
        { n: "Affinity Photo / Photoshop", s: 3 },
      ]},
      { title: "3D modelling", skills: [
        { n: "Tinkercad", s: 1 },
        { n: "Nomad Sculpt", s: 2 },
        { n: "AI-to-3D (Tripo, Meshy)", s: 2 },
        { n: "Blender", s: 3 },
      ]},
      { title: "Animation", skills: [
        { n: "Stop-motion (phone-based)", s: 1 },
        { n: "Clay / LEGO stop-motion", s: 2 },
        { n: "2D animation (Krita, Procreate Dreams, Toon Boom)", s: 2 },
        { n: "Rive (interactive vector animation)", s: 3 },
        { n: "3D animation (Blender)", s: 3 },
        { n: "2D animation (After Effects)", s: 3 },
      ]},
      { title: "AI-powered creative tools", skills: [
        { n: "AI image generation", s: 2 },
        { n: "AI image-to-3D pipelines", s: 3 },
        { n: "AI video tools (Veo, Sora, Runway)", s: 3 },
      ]},
    ],
  },
  {
    id: "photo-film", num: "07", family: "Creative & Expressive",
    title: "Photography & Filmmaking", glyph: "📷", color: "var(--cfc-blue)", fg: "#fff",
    blurb: "Capture light and tell stories — starting with the phone already in your pocket.",
    subs: [
      { title: "Still photography", skills: [
        { n: "Phone photography", s: 1 },
        { n: "Composition fundamentals", s: 1 },
        { n: "DSLR / Mirrorless basics", s: 2 },
        { n: "Photo editing (Lightroom, Snapseed)", s: 2 },
        { n: "Portrait photography", s: 3 },
        { n: "Landscape & nature photography", s: 3 },
        { n: "Astrophotography", s: 3 },
        { n: "Macro photography", s: 3 },
      ]},
      { title: "Video editing", skills: [
        { n: "CapCut", s: 1 },
        { n: "iMovie", s: 1 },
        { n: "DaVinci Resolve", s: 3 },
        { n: "Premiere Pro / Final Cut Pro", s: 3 },
      ]},
      { title: "Filmmaking & content", skills: [
        { n: "Phone filmmaking", s: 1 },
        { n: "YouTube content workflow", s: 2 },
        { n: "Short film production", s: 3 },
        { n: "Drone / aerial video", s: 3 },
      ]},
    ],
  },
  {
    id: "writing", num: "08", family: "Creative & Expressive",
    title: "Writing, Speaking & Storytelling", glyph: "✍️", color: "var(--cfc-green)", fg: "var(--cfc-ink)",
    blurb: "Words on the page and words out loud — read, write, tell, speak.",
    subs: [
      { title: "Reading & journaling", skills: [
        { n: "Daily reading habit", s: 1 },
        { n: "Journaling", s: 1 },
        { n: "Bullet journaling", s: 2 },
      ]},
      { title: "Writing", skills: [
        { n: "Creative writing", s: 1 },
        { n: "Poetry", s: 2 },
        { n: "Short story writing", s: 2 },
        { n: "Novel / long-form writing", s: 3 },
        { n: "Screenwriting", s: 3 },
        { n: "Non-fiction / essay writing", s: 3 },
      ]},
      { title: "Storytelling (spoken)", skills: [
        { n: "Storytelling fundamentals", s: 2 },
      ]},
      { title: "Speaking", skills: [
        { n: "Public speaking basics", s: 2 },
        { n: "Acting & theatre", s: 2 },
        { n: "Debate", s: 3 },
        { n: "Voice acting", s: 3 },
        { n: "TEDx-style talks", s: 3 },
      ]},
      { title: "Audio production", skills: [
        { n: "Podcasting basics", s: 2 },
        { n: "Audiobook narration", s: 3 },
        { n: "Spoken-word performance", s: 3 },
      ]},
    ],
  },
  {
    id: "languages", num: "09", family: "Creative & Expressive",
    title: "Languages", glyph: "🗣️", color: "var(--cfc-yellow)", fg: "var(--cfc-ink)",
    blurb: "Pick whichever sparks curiosity — motivation beats difficulty every time.",
    subs: [
      { title: "Spoken languages", skills: [
        { n: "Spanish", s: 1 },
        { n: "French", s: 1 },
        { n: "Italian", s: 1 },
        { n: "Portuguese", s: 1 },
        { n: "German", s: 2 },
        { n: "Hindi", s: 2 },
        { n: "Mandarin Chinese", s: 3 },
        { n: "Japanese", s: 3 },
        { n: "Korean", s: 3 },
        { n: "Arabic", s: 3 },
        { n: "Russian", s: 3 },
      ]},
      { title: "Classical languages", skills: [
        { n: "Latin", s: 3 },
        { n: "Biblical Greek", s: 3 },
        { n: "Biblical Hebrew", s: 3 },
      ]},
      { title: "Sign languages", skills: [
        { n: "ASL / ISL / BSL", s: 2 },
      ]},
    ],
  },

  /* ───────── TECHNICAL & ANALYTICAL ───────── */
  {
    id: "coding", num: "10", family: "Technical & Analytical",
    title: "Coding & Game Development", glyph: "💻", color: "var(--cfc-blue)", fg: "#fff",
    blurb: "From drag-and-drop blocks to building real games and apps.",
    subs: [
      { title: "Foundation", skills: [
        { n: "Touch typing", s: 1 },
        { n: "Computer literacy", s: 1 },
      ]},
      { title: "Visual / block coding", skills: [
        { n: "code.org (Hour of Code)", s: 1 },
        { n: "Scratch", s: 1 },
        { n: "Block coding for hardware (micro:bit, MakeCode)", s: 1 },
      ]},
      { title: "Text-based languages", skills: [
        { n: "Python", s: 2 },
        { n: "JavaScript", s: 2 },
        { n: "Lua (Roblox)", s: 2 },
      ]},
      { title: "Web development", skills: [
        { n: "HTML & CSS", s: 2 },
        { n: "JavaScript for the web", s: 3 },
        { n: "Full-stack web development", s: 3 },
      ]},
      { title: "Games & apps", skills: [
        { n: "Roblox Studio (Lua)", s: 2 },
        { n: "Minecraft modding", s: 3 },
        { n: "App development (Flutter / React Native)", s: 3 },
        { n: "Game development (Unity, Godot, Unreal)", s: 3 },
        { n: "AI / ML basics", s: 3 },
      ]},
    ],
  },
  {
    id: "robotics", num: "11", family: "Technical & Analytical",
    title: "Robotics, Electronics & Making", glyph: "⚙️", color: "var(--cfc-orange)", fg: "#fff",
    blurb: "Make things that light up, move and obey — circuits, code and 3D printers.",
    subs: [
      { title: "Entry electronics", skills: [
        { n: "Squishy / paper circuits", s: 1 },
        { n: "Snap Circuits / littleBits", s: 1 },
      ]},
      { title: "Microcontrollers", skills: [
        { n: "micro:bit", s: 1 },
        { n: "Arduino", s: 2 },
        { n: "Raspberry Pi", s: 3 },
      ]},
      { title: "Building & robotics", skills: [
        { n: "LEGO basics & free-building", s: 1 },
        { n: "LEGO Robotics (SPIKE Prime, Mindstorms)", s: 2 },
        { n: "Soldering & wiring", s: 2 },
        { n: "Custom robotics (motors, sensors, chassis)", s: 3 },
      ]},
      { title: "3D printing", skills: [
        { n: "Operating a 3D printer (Bambu, Creality, Prusa)", s: 2 },
        { n: "Designing prints from scratch", s: 3 },
        { n: "Resin printing", s: 3 },
      ]},
      { title: "DIY & home skills", skills: [
        { n: "Basic tool use", s: 1 },
        { n: "Simple repairs", s: 2 },
        { n: "Woodworking basics", s: 2 },
        { n: "Furniture / shelving projects", s: 3 },
        { n: "Home electrical safety", s: 2 },
      ]},
    ],
  },
  {
    id: "stem", num: "12", family: "Technical & Analytical",
    title: "STEM, Science & Nature", glyph: "🧪", color: "var(--cfc-green)", fg: "var(--cfc-ink)",
    blurb: "Discovering God through everyday science — from the kitchen table to the night sky.",
    subs: [
      { title: "Foundation", skills: [
        { n: "Curiosity habit", s: 1 },
        { n: "Documentary streaming (Curiosity Stream)", s: 1 },
        { n: "Kitchen-table & backyard experiments", s: 1 },
        { n: "Khan Academy", s: 1 },
        { n: "Brilliant.org", s: 2 },
      ]},
      { title: "Specific sciences", skills: [
        { n: "Biology & botany", s: 2 },
        { n: "Chemistry", s: 2 },
        { n: "Physics", s: 2 },
        { n: "Astronomy", s: 2 },
        { n: "Earth science / geology", s: 2 },
        { n: "Marine biology", s: 2 },
        { n: "Palaeontology", s: 2 },
      ]},
      { title: "Citizen science & nature", skills: [
        { n: "Nature journaling", s: 1 },
        { n: "Birdwatching", s: 2 },
        { n: "Wildlife identification", s: 2 },
        { n: "Star navigation", s: 3 },
        { n: "Gardening (herbs → vegetable plot)", s: 2 },
      ]},
    ],
  },
  {
    id: "math-games", num: "13", family: "Technical & Analytical",
    title: "Math & Thinking Games", glyph: "🧩", color: "var(--cfc-purple)", fg: "#fff",
    blurb: "Numbers, chess, cubes and puzzles — train the mind like a muscle.",
    subs: [
      { title: "Mathematics", skills: [
        { n: "Mental maths", s: 1 },
        { n: "Vedic / speed maths", s: 2 },
        { n: "Algebra & geometry foundations", s: 2 },
        { n: "Higher maths (Brilliant.org)", s: 3 },
        { n: "Olympiad / competition maths", s: 3 },
      ]},
      { title: "Chess & strategy games", skills: [
        { n: "Chess (rules & piece movement)", s: 1 },
        { n: "Chess (tactics & openings)", s: 2 },
        { n: "Chess (tournament play)", s: 3 },
        { n: "Go / Shogi / Xiangqi", s: 3 },
        { n: "Strategy board games (Catan, Carcassonne, Ticket to Ride)", s: 2 },
      ]},
      { title: "Puzzles & cubes", skills: [
        { n: "Logic puzzles & riddles", s: 1 },
        { n: "Sudoku, KenKen, Kakuro", s: 1 },
        { n: "Rubik’s Cube (beginner method)", s: 2 },
        { n: "Rubik’s Cube (speedcubing)", s: 3 },
        { n: "Crosswords & cryptic crosswords", s: 3 },
      ]},
      { title: "Memory & meta-cognition", skills: [
        { n: "Memory techniques (memory palace, peg system)", s: 2 },
        { n: "Mind mapping", s: 2 },
        { n: "Speed reading", s: 3 },
      ]},
    ],
  },

  /* ───────── BODY, LIFE & CHARACTER ───────── */
  {
    id: "cooking", num: "14", family: "Body, Life & Character",
    title: "Cooking & Food", glyph: "🍳", color: "var(--cfc-orange)", fg: "#fff",
    blurb: "A true life skill — and anything that leaves the kitchen counts twice.",
    subs: [
      { title: "Kitchen basics", skills: [
        { n: "Kitchen safety & hygiene", s: 1 },
        { n: "Basic cooking (eggs, rice, pasta, sandwiches)", s: 1 },
        { n: "Reading & following recipes", s: 1 },
        { n: "Knife skills", s: 2 },
      ]},
      { title: "Baking", skills: [
        { n: "Cookies, simple cakes, muffins", s: 2 },
        { n: "Bread baking", s: 3 },
        { n: "Sourdough", s: 3 },
        { n: "Cake decoration", s: 3 },
        { n: "Pastry & laminated doughs", s: 3 },
      ]},
      { title: "Cuisines & specialized", skills: [
        { n: "World cuisines (Italian, Mexican, Indian, Thai, Japanese)", s: 2 },
        { n: "Fermentation (yogurt, kimchi, kombucha)", s: 3 },
        { n: "Kitchen science experiments", s: 2 },
        { n: "Meal planning & shopping", s: 2 },
      ]},
    ],
  },
  {
    id: "movement", num: "15", family: "Body, Life & Character",
    title: "Physical Exercise & Movement", glyph: "🤸", color: "var(--cfc-pink)", fg: "#fff",
    blurb: "Conditioning, agility and play — the body God gave you, kept strong.",
    subs: [
      { title: "Daily movement habits", skills: [
        { n: "Walking", s: 1 },
        { n: "Active play", s: 1 },
        { n: "Posture habits", s: 1 },
      ]},
      { title: "Stretching & flexibility", skills: [
        { n: "Daily stretching routine", s: 1 },
        { n: "Mobility work (hips, shoulders, ankles)", s: 2 },
        { n: "Pre-sport dynamic warm-ups", s: 2 },
        { n: "Full splits / advanced flexibility", s: 3 },
      ]},
      { title: "Strength & conditioning", skills: [
        { n: "Bodyweight basics (push-ups, squats, planks)", s: 1 },
        { n: "Resistance bands & light weights", s: 2 },
        { n: "Calisthenics (pull-ups, dips, handstands)", s: 3 },
        { n: "Strength training with weights", s: 3 },
      ]},
      { title: "Cardio & endurance", skills: [
        { n: "Brisk walks / cycling", s: 1 },
        { n: "Skipping rope", s: 1 },
        { n: "Running (Couch to 5K → 10K)", s: 2 },
        { n: "Long-distance running / training plans", s: 3 },
      ]},
      { title: "Coordination & agility", skills: [
        { n: "Balance drills (one-leg stand, beam walking)", s: 1 },
        { n: "Jumping rope tricks", s: 2 },
        { n: "Juggling", s: 2 },
        { n: "Agility ladder drills", s: 2 },
        { n: "Acrobatics / parkour basics", s: 3 },
      ]},
      { title: "Dance & rhythmic movement", skills: [
        { n: "Free-form dance", s: 1 },
        { n: "Hip-hop", s: 2 },
        { n: "Latin (salsa, bachata)", s: 2 },
        { n: "Contemporary", s: 3 },
        { n: "Ballet", s: 3 },
        { n: "Classical Indian dance (Bharatanatyam, Kathak, Odissi)", s: 3 },
      ]},
      { title: "Breath training", skills: [
        { n: "Slow-breath drills for recovery", s: 1 },
        { n: "Box breathing for focus", s: 2 },
      ]},
    ],
  },
  {
    id: "sports", num: "16", family: "Body, Life & Character",
    title: "Sports & Outdoors", glyph: "⚽", color: "var(--cfc-green)", fg: "var(--cfc-ink)",
    blurb: "Best learned in person, with running and sweat and fresh air.",
    subs: [
      { title: "Foundation", skills: [
        { n: "Swimming", s: 1 },
        { n: "Cycling", s: 1 },
        { n: "Running", s: 1 },
      ]},
      { title: "Court & team sports", skills: [
        { n: "Tennis", s: 2 },
        { n: "Badminton", s: 2 },
        { n: "Table tennis", s: 2 },
        { n: "Basketball", s: 2 },
        { n: "Football / Soccer", s: 2 },
        { n: "Cricket", s: 2 },
        { n: "Volleyball", s: 2 },
      ]},
      { title: "Individual sports", skills: [
        { n: "Inline skating", s: 2 },
        { n: "Ice skating", s: 2 },
        { n: "Skiing / snowboarding", s: 3 },
        { n: "Archery", s: 2 },
        { n: "Climbing (bouldering → top-rope → lead)", s: 3 },
        { n: "Skateboarding", s: 3 },
        { n: "Horse riding", s: 3 },
      ]},
      { title: "Martial arts", skills: [
        { n: "Karate", s: 2 },
        { n: "Taekwondo", s: 2 },
        { n: "Judo", s: 2 },
        { n: "Aikido", s: 2 },
        { n: "Brazilian Jiu-Jitsu", s: 3 },
        { n: "Kung Fu", s: 3 },
        { n: "Boxing", s: 3 },
      ]},
      { title: "Outdoor & survival skills", skills: [
        { n: "Hiking & trail walking", s: 1 },
        { n: "Knot tying", s: 1 },
        { n: "Camping & tent setup", s: 2 },
        { n: "Map reading & compass navigation", s: 2 },
        { n: "Fire-making (responsibly)", s: 2 },
        { n: "First aid & CPR", s: 2 },
        { n: "Bushcraft basics", s: 3 },
        { n: "Foraging (with a knowledgeable adult)", s: 3 },
        { n: "Star navigation", s: 3 },
      ]},
    ],
  },
  {
    id: "faith", num: "17", family: "Body, Life & Character",
    title: "Faith & Character", glyph: "✝️", color: "var(--cfc-blue)", fg: "#fff",
    blurb: "The soil the rest grows in — we learn because curiosity is a gift from God.",
    subs: [
      { title: "Foundation", skills: [
        { n: "Daily Bible reading habit", s: 1 },
        { n: "Quiet time / personal devotion", s: 1 },
        { n: "Scripture memorization", s: 1 },
        { n: "Personal prayer life", s: 1 },
        { n: "Prayer journaling", s: 2 },
      ]},
      { title: "Study & exploration", skills: [
        { n: "Inductive Bible study", s: 2 },
        { n: "Theology basics", s: 2 },
        { n: "Christian biographies", s: 2 },
        { n: "Apologetics", s: 3 },
        { n: "Biblical Greek", s: 3 },
        { n: "Biblical Hebrew", s: 3 },
      ]},
      { title: "Audio & content", skills: [
        { n: "Christian audiobooks", s: 1 },
        { n: "Children’s Bible curricula", s: 1 },
        { n: "Worship music", s: 1 },
      ]},
      { title: "Creative ministry", skills: [
        { n: "Christian children’s content creation", s: 2 },
        { n: "Worship leading", s: 3 },
        { n: "Christian app / game development", s: 3 },
      ]},
      { title: "Character & virtue", skills: [
        { n: "Family read-alouds with discussion", s: 1 },
        { n: "Memorising the catechism / character traits", s: 2 },
        { n: "Service projects & volunteering", s: 2 },
      ]},
    ],
  },
  {
    id: "money", num: "18", family: "Body, Life & Character",
    title: "Money & Entrepreneurship", glyph: "💰", color: "var(--cfc-yellow)", fg: "var(--cfc-ink)",
    blurb: "Give, save, spend — and maybe build a little something that sells.",
    subs: [
      { title: "Foundation", skills: [
        { n: "Recognising coins, notes, prices", s: 1 },
        { n: "Allowance basics (give, save, spend)", s: 1 },
        { n: "Delayed gratification", s: 1 },
      ]},
      { title: "Money management", skills: [
        { n: "Saving habits", s: 2 },
        { n: "Budgeting", s: 2 },
        { n: "Understanding banking", s: 2 },
        { n: "Financial literacy course", s: 2 },
      ]},
      { title: "Growth & investing", skills: [
        { n: "Compound interest understanding", s: 2 },
        { n: "Investing basics (index funds, stocks)", s: 3 },
        { n: "Reading a balance sheet", s: 3 },
      ]},
      { title: "Entrepreneurship", skills: [
        { n: "Lemonade-stand mindset", s: 1 },
        { n: "Craft sales (Etsy, local markets)", s: 2 },
        { n: "Lean startup thinking", s: 3 },
        { n: "Online business basics", s: 3 },
      ]},
    ],
  },
  {
    id: "productivity", num: "19", family: "Body, Life & Character",
    title: "Productivity & Organization", glyph: "🗂️", color: "var(--cfc-purple)", fg: "#fff",
    blurb: "The day-to-day habits that keep wonder from turning into chaos.",
    subs: [
      { title: "Personal organization", skills: [
        { n: "Note-taking (Cornell method)", s: 1 },
        { n: "Time management", s: 2 },
        { n: "Calendar habits", s: 2 },
        { n: "Bullet journaling", s: 2 },
      ]},
      { title: "Workflow & systems", skills: [
        { n: "Personal kanban / to-do lists", s: 2 },
        { n: "Personal knowledge management (Obsidian, Notion)", s: 3 },
        { n: "Spaced-repetition study (Anki)", s: 3 },
      ]},
      { title: "Reading & comprehension", skills: [
        { n: "Reading comprehension", s: 1 },
        { n: "Speed reading", s: 3 },
      ]},
    ],
  },
];

/* Order the four families for the explorer's group headings. */
const SKILL_FAMILIES = [
  { name: "Foundation meta-skills", glyph: "🌱", blurb: "Build these first, refresh them forever — they decide whether every other skill actually grows." },
  { name: "Creative & Expressive", glyph: "✨", blurb: "Make things and tell stories — music, art, film, words and languages." },
  { name: "Technical & Analytical", glyph: "🔧", blurb: "Code, build, experiment and reason your way through the world." },
  { name: "Body, Life & Character", glyph: "❤️", blurb: "Cook, move, play, believe, save and stay organised — the whole person." },
];

/* ───────── How We Learn (learn.html) ───────── */
const LEARN = {
  beliefs: [
    { icon: "🧠", t: "Knowledge is free now", b: "The real advantage is how you think and what you build. Anyone can look up facts; few can question well and go deeper." },
    { icon: "🔨", t: "Go to first principles", b: "Don’t copy what exists. Ask what something is really made of, then rebuild a fresh version from the bedrock up." },
    { icon: "🤖", t: "AI is the tutor, family is the mentor", b: "Use AI to ask better questions, never to skip the thinking. The human in the loop is the fine tuning." },
    { icon: "🪑", t: "Adults sit beside, not across", b: "Learn alongside the kids. The fastest way to lose a learner is to lecture them." },
    { icon: "📦", t: "Real output beats fake homework", b: "Anything that leaves the house — a gifted craft, a song, a printed object — counts twice." },
  ],
  moves: [
    { icon: "🔨", t: "Break it down to bedrock", b: "What is this really made of? Ignore “how everyone does it.” Rebuild from basics." },
    { icon: "🔍", t: "Zoom in, zoom out", b: "Examine the smallest part. Then the whole system. Then hold both views at once." },
    { icon: "🌐", t: "Same word, different world", b: "The same word means different things in different places. Ask: what does this mean here?" },
    { icon: "🗺️", t: "Map ≠ territory", b: "A diagram, a theory, an AI answer — none of these is reality. Test them against the real thing." },
    { icon: "🎯", t: "Guess → predict → test", b: "Hypothesise. Predict what should happen. Then verify in the real world." },
    { icon: "👤", t: "Who / how / what happened", b: "Separate the doer, the method and the outcome. Each can be improved on its own." },
    { icon: "❓", t: "How much do you trust this?", b: "Every claim, fact or AI output gets a confidence rating. Nothing is automatic." },
    { icon: "🌉", t: "Connect the islands", b: "What does this new skill share with one already learned? The deepest learning is the link." },
  ],
  stages: [
    { n: "1", t: "Explore", b: "Try it, taste it, no commitment. This is the monthly new-skill slot.", color: "var(--cfc-yellow)", fg: "var(--cfc-ink)" },
    { n: "2", t: "Commit", b: "Pick a few to go deeper. Set a weekly rhythm.", color: "var(--cfc-orange)", fg: "#fff" },
    { n: "3", t: "Build", b: "Make something finished, real and shareable.", color: "var(--cfc-pink)", fg: "#fff" },
    { n: "4", t: "Improve", b: "Practise, get feedback, refine. Explaining it to someone is the real test of mastery.", color: "var(--cfc-purple)", fg: "#fff" },
    { n: "5", t: "Connect", b: "Put multiple skills together to build something new — a song you wrote, drew and filmed. Combining skills is where the magic, and the wisdom, lives.", color: "var(--cfc-blue)", fg: "#fff" },
  ],
  game: {
    title: "A new creative family game every day, right after lunch",
    body: "Using whatever props are around. Some days active (charades, “the floor is lava”), some a walking adventure (street-photo bingo, story-passing), some quiet indoors (a board game made from kitchen items). The rules: it has to be new, invented or remixed together, and involve everyone.",
    note: "This single 20-minute habit builds invention, adaptability, humour, leadership and listening — more than any course on the list. We cherish this slot.",
  },
  rhythm: [
    { when: "Daily", color: "var(--cfc-yellow)", fg: "var(--cfc-ink)", items: [
      "The creative family game after lunch — 20 min, non-negotiable",
      "Reading habit · journal one line · one maths drill",
      "20 min language · 30 min instrument practice",
      "One creative micro-task (a sketch, a paragraph, a crochet row)",
      "10 minutes stretching or active play",
    ]},
    { when: "Weekly", color: "var(--cfc-green)", fg: "var(--cfc-ink)", items: [
      "One real sport session (running and sweat)",
      "One sit-down art / craft session",
      "One science experiment or backyard biology",
      "One family read-aloud session",
      "One family documentary or movie night",
      "One “wonder walk” — somewhere new, asking questions",
    ]},
    { when: "Monthly", color: "var(--cfc-pink)", fg: "#fff", items: [
      "Introduce one new skill — explore for the whole month",
      "One hike or outdoor adventure",
      "One museum, library or cultural visit",
      "Finish one course module",
      "Complete one creative artefact each",
    ]},
    { when: "Quarterly", color: "var(--cfc-purple)", fg: "#fff", items: [
      "Family “show and tell” night — three best creations each",
      "Review and prune the active hobby list",
      "Pick the next big skill investment per person",
      "One bigger trip or experience that needs planning",
    ]},
  ],
  interests: [
    { love: "Drawing", start: "Procreate + character drawing + Nomad Sculpt", emoji: "🎨" },
    { love: "Building & construction", start: "Tinkercad → micro:bit → Arduino → 3D printing", emoji: "🏗️" },
    { love: "Stories & reading", start: "Creative writing + audiobooks + journaling", emoji: "📚" },
    { love: "Music", start: "Ukulele or piano → singing → music production", emoji: "🎵" },
    { love: "Animals & nature", start: "Backyard biology + Seek app + watercolour + photography", emoji: "🦋" },
    { love: "Cooking & food", start: "Cooking with Children + a family recipe journal", emoji: "🍳" },
    { love: "Games of any kind", start: "code.org → Scratch → Roblox → Python → game dev", emoji: "🎮" },
    { love: "Talking & people", start: "Public speaking + creative writing + debate club", emoji: "🗣️" },
    { love: "Outdoors", start: "Cycling + knot tying + camping + nature photography", emoji: "🏕️" },
    { love: "Numbers & puzzles", start: "Brilliant.org + chess + Vedic maths + Rubik’s", emoji: "🧩" },
    { love: "Performing", start: "Singing + drama + dance + storytelling", emoji: "🎭" },
    { love: "Tech & gadgets", start: "Touch typing → code.org → Scratch → Python → Raspberry Pi", emoji: "🔌" },
    { love: "Tinkering with hands", start: "Origami → paper circuits → micro:bit → 3D printing", emoji: "🛠️" },
    { love: "Quiet creative work", start: "Crochet → embroidery → knitting → hand lettering", emoji: "🧶" },
    { love: "Faith & study", start: "Daily Bible + scripture memory → inductive study → apologetics", emoji: "✝️" },
    { love: "AI & the future", start: "ChatGPT/Claude → prompt engineering → AI image/video → automation", emoji: "🤖" },
    { love: "Understanding people", start: "Emotional intelligence → empathy practice → behavioural science", emoji: "💗" },
    { love: "Movement & strength", start: "Daily stretching → bodyweight basics → sport of choice", emoji: "🤸" },
  ],
  tips: [
    "Use the five-stage model (Explore → Commit → Build → Improve → Connect) as the operating system.",
    "Protect the daily family game — it’s worth more than any single course.",
    "Buy the cheapest tool first; upgrade only after commitment is proven.",
    "Project-based beats curriculum-based. Mud on the boots beats ink on the worksheet.",
    "One showcase per quarter creates real-world stakes.",
    "Boredom is the gateway to most lifelong hobbies.",
    "Sit beside, not across — practise next to them, don’t lecture.",
    "Free first, paid second. YouTube and library books usually beat a paid course.",
    "Private practice beats public output — you go deeper when no one's watching.",
    "Star levels are guides, not gates. Match difficulty to interest.",
    "Track what sticks every six months; double down on those, retire the rest.",
    "Use the thinking moves on everything — a sandwich, an essay, a robot circuit.",
    "Adaptability is the real curriculum. Staying curious outlasts any single skill.",
  ],
};

Object.assign(window.CFC, { SKILL_DOMAINS, SKILL_FAMILIES, LEARN });
