/* Farsamo Labs — forge palette: charcoal, ember, brass, sand */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --charcoal: #1a1614;
  --charcoal-2: #26201c;
  --ember: #ad380a;
  --ember-glow: #ffa05a;
  --brass: #c9a24a;
  --sand: #f4ede2;
  --sand-2: #ebe0cf;
  --ink: #221d19;
  --muted: #625850;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;

  --radius: 14px;
  --wrap: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ember);
  margin-bottom: 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(26, 22, 20, 0.95);
  backdrop-filter: blur(6px);
  color: var(--sand);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ember), var(--brass));
  color: var(--charcoal);
}
nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
nav a {
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
}
nav a:hover { opacity: 1; color: var(--ember-glow); }

/* Pilots dropdown */
nav { align-items: center; }
.dropdown { position: relative; }
.dropdown summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: "▾"; font-size: 0.75rem; transition: transform 0.15s ease; }
.dropdown[open] summary { opacity: 1; color: var(--ember-glow); }
.dropdown[open] summary::after { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: var(--charcoal-2);
  border: 1px solid rgba(244, 237, 226, 0.15);
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.dropdown-menu a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  opacity: 1;
}
.dropdown-menu a:hover { background: rgba(226, 87, 28, 0.18); color: var(--sand); }
.dropdown-menu strong { display: block; font-size: 0.95rem; }
.dropdown-menu span { display: block; font-size: 0.8rem; opacity: 0.7; }
@media (max-width: 640px) {
  .dropdown-menu { left: 0; transform: none; }
}

/* Marketplace flow */
.flow {
  list-style: none;
  counter-reset: f;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}
.flow li {
  counter-increment: f;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem;
  border: 1px solid rgba(34, 29, 25, 0.08);
}
.flow li::before {
  content: counter(f);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ember);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.flow p { color: var(--muted); font-size: 0.95rem; }

/* Pilots */
.pilot { scroll-margin-top: 90px; }
.pilot h3 { font-size: 1.6rem; }
.pilot p { margin-bottom: 1rem; }
.pilot ul { list-style: none; display: grid; gap: 0.5rem; }
.pilot li { color: var(--muted); font-size: 0.95rem; }
.pilot li strong { color: var(--ink); }
.pilot-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--charcoal);
  color: var(--brass);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
section[id] { scroll-margin-top: 70px; }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 80% 110%, rgba(226, 87, 28, 0.45), transparent 55%),
    radial-gradient(circle at 20% 120%, rgba(201, 162, 74, 0.25), transparent 50%),
    var(--charcoal);
  color: var(--sand);
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}
.forge-art { width: 100%; height: auto; max-height: 440px; }
@media (max-width: 860px) {
  .hero { padding-top: 4rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .forge-art { max-width: 420px; margin: 0 auto; }
}

/* Fire motion */
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.6s ease-in-out infinite; }
.f2 { animation-duration: 1.9s; animation-delay: -0.4s; }
.f3 { animation-duration: 1.4s; animation-delay: -0.8s; }
@keyframes flicker {
  0%, 100% { transform: scale(1, 1); }
  35% { transform: scale(0.95, 1.08); }
  70% { transform: scale(1.04, 0.94); }
}
.spark { transform-box: fill-box; animation: rise 2.2s linear infinite; opacity: 0; }
.s2 { animation-delay: -0.4s; animation-duration: 2.6s; }
.s3 { animation-delay: -0.9s; }
.s4 { animation-delay: -1.3s; animation-duration: 1.9s; }
.s5 { animation-delay: -1.7s; animation-duration: 2.4s; }
.s6 { animation-delay: -0.6s; animation-duration: 2.8s; }
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(18px, -150px); opacity: 0; }
}
.s1, .s3, .s5 { animation-name: rise-left; }
@keyframes rise-left {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(-22px, -140px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flame, .spark { animation: none; }
  .spark { opacity: 0.8; }
}

.hero h1 { max-width: 15ch; margin-bottom: 1.25rem; }
.lede { max-width: 60ch; font-size: 1.15rem; opacity: 0.9; }
.hero-actions { display: flex; gap: 0.8rem; margin-top: 2rem; flex-wrap: wrap; }
.ember-line {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--ember), var(--ember-glow), var(--brass), transparent);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: #8f2e08; }
.btn-ghost { border: 1px solid rgba(244, 237, 226, 0.4); }

/* Principle */
.principle { background: var(--brass); padding: 2.5rem 0; }
.principle blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  color: var(--charcoal);
  max-width: 50ch;
}

/* Sections */
.section { padding: 5rem 0; }
.section-intro { max-width: 65ch; margin-bottom: 2.5rem; color: var(--muted); font-size: 1.05rem; }
.section-dark { background: var(--charcoal); color: var(--sand); }
.section-dark .section-intro, .section-dark p { color: rgba(244, 237, 226, 0.82); }
.section-warm { background: var(--sand-2); }

/* Grid + cards */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(34, 29, 25, 0.08);
}
.card p { color: var(--muted); }
.card-school { position: relative; padding-top: 2.2rem; }
.school-num {
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--ember);
}
.card-wide { grid-column: 1 / -1; background: var(--charcoal); color: var(--sand); }
.card-wide p { color: rgba(244, 237, 226, 0.8); }

/* Problems */
.problem-list {
  list-style: none;
  counter-reset: p;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.problem-list li {
  counter-increment: p;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--charcoal-2);
  border-top: 3px solid var(--ember);
}
.problem-list li::before {
  content: "0" counter(p);
  display: block;
  font-family: var(--font-heading);
  color: var(--ember-glow);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* Tech table */
.tech-table {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(34, 29, 25, 0.1);
  background: #fff;
}
.tech-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 2.4fr;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid rgba(34, 29, 25, 0.08);
}
.tech-row span:first-child { font-weight: 700; }
.tech-row span:nth-child(2) { color: var(--muted); }
.tech-head {
  background: var(--charcoal);
  color: var(--sand);
  border-top: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tech-head span:nth-child(2) { color: var(--sand); }

@media (max-width: 640px) {
  .tech-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .tech-head { display: none; }
  .tech-row span:nth-child(2)::before { content: "Today: "; font-weight: 600; }
  .tech-row span:nth-child(3)::before { content: "Upgrade: "; font-weight: 600; color: var(--ember); }
}

/* Dignity */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: start;
}
.two-col p { margin-bottom: 1rem; }
.pillars { list-style: none; display: grid; gap: 0.9rem; }
.pillars li {
  background: #fff;
  border-left: 4px solid var(--ember);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.step {
  padding: 1.5rem;
  border: 1px solid rgba(244, 237, 226, 0.15);
  border-radius: var(--radius);
}
.step-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--charcoal);
  background: var(--brass);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* Footer */
.site-footer {
  background: #110e0c;
  color: var(--sand);
  padding: 2rem 0;
}
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.muted { opacity: 0.65; }

/* ---------- Farsamo Learn ---------- */
nav a[aria-current="page"] { opacity: 1; color: var(--ember-glow); }
.hero-learn { padding: 5rem 0 4rem; }
.hero-learn h1 { max-width: 20ch; }

.path {
  list-style: none;
  counter-reset: s;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
}
.path li {
  counter-increment: s;
  background: #fff;
  border: 1px solid rgba(34, 29, 25, 0.08);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.path li::before {
  content: "Stage " counter(s);
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ember);
  margin-bottom: 0.3rem;
}
.path strong { display: block; font-family: var(--font-heading); font-size: 1.25rem; }
.path span { color: var(--muted); font-size: 0.92rem; }

.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tab {
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 29, 25, 0.2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--charcoal); color: var(--sand); border-color: var(--charcoal); }
.tab:focus-visible, .lesson summary:focus-visible, #heatSlider:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }

.track-panel { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid rgba(34, 29, 25, 0.08); }
.track-head { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.track-head h3 { font-size: 1.5rem; }
.muted-ink { color: var(--muted); }
.progress-wrap { min-width: 200px; font-size: 0.9rem; color: var(--muted); }
.progress { height: 8px; background: var(--sand-2); border-radius: 999px; margin-top: 0.4rem; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--ember); border-radius: 999px; transition: width 0.3s ease; }

.lessons { display: grid; gap: 0.6rem; }
.lesson { border: 1px solid rgba(34, 29, 25, 0.1); border-radius: 12px; }
.lesson summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  min-height: 56px;
}
.lesson summary::-webkit-details-marker { display: none; }
.lesson-num {
  flex: none;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--sand-2);
  font-weight: 700;
}
.lesson.is-done .lesson-num { background: var(--ember); color: #fff; }
.lesson-title { flex: 1; font-weight: 600; }
.lesson-title small { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.lesson-status { font-size: 0.8rem; font-weight: 700; color: var(--ember); }
.lesson-body { padding: 0 1rem 1rem 3.9rem; }
.lesson-body ul { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; padding-left: 1rem; color: var(--ink); }
.check { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; cursor: pointer; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--ember); }
.note { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 600px) { .lesson-body { padding-left: 1rem; } }

.heat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; align-items: center; }
.slider-label { display: block; margin-top: 1.5rem; font-weight: 600; color: var(--sand); }
#heatSlider { width: 100%; accent-color: var(--ember); height: 44px; }
.heat-read { font-family: var(--font-heading); font-size: 1.6rem; color: var(--sand) !important; }
.heat-card { background: var(--charcoal-2); border-radius: var(--radius); padding: 1.5rem; }
.heat-bar { height: 34px; border-radius: 8px; margin-bottom: 1.2rem; transition: background 0.2s ease, box-shadow 0.2s ease; }
.heat-card h3 { font-size: 1.4rem; color: var(--sand); }

/* ---------- Tech Academy ---------- */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.level { background: #fff; border: 1px solid rgba(34,29,25,.08); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.level p { color: var(--muted); }
.level-wide { grid-column: 1 / -1; background: var(--charcoal); color: var(--sand); }
.level-wide h3 { color: var(--sand); }
.level-tag { font-size: .75rem; font-weight: 700; color: var(--ember); }
.level-meta { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--ink); padding-top: .5rem; }
.level-wide .level-meta { color: var(--brass); }
.track-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .8rem; margin: .5rem 0; }
.track-grid div { background: var(--charcoal-2); border-radius: 10px; padding: 1rem; border-top: 3px solid var(--ember); }
.track-grid strong { display: block; margin-bottom: .25rem; }
.track-grid span { font-size: .9rem; color: rgba(244,237,226,.75); }
.langs-title { margin-top: 2.5rem; margin-bottom: .8rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: var(--sand-2); border-radius: 999px; padding: .35rem .85rem; font-size: .9rem; font-weight: 600; }
.unit-card { text-decoration: none; display: flex; flex-direction: column; gap: .4rem; transition: transform .15s ease, box-shadow .15s ease; }
.unit-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(34,29,25,.12); }
.unit-card h3 { font-size: 1.6rem; }
.unit-link { margin-top: auto; font-weight: 700; color: var(--ember); }

/* Crafts grid */
.craft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.craft-grid article { background: var(--charcoal-2); border-radius: var(--radius); padding: 1.25rem; border-left: 3px solid var(--brass); }
.craft-grid h3 { font-size: 1.1rem; color: var(--sand); }
.craft-grid p { font-size: .92rem; }

/* Value chain */
.chain { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 0; margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; }
.chain li { position: relative; padding: 1.5rem 1.4rem; background: var(--charcoal); color: var(--sand); }
.chain li:nth-child(2) { background: #3a2018; }
.chain li:nth-child(3) { background: #8a3414; }
.chain li:nth-child(4) { background: var(--ember); }
.chain li p { color: #fff; font-size: .95rem; }
.chain h3 { color: #fff; }
.chain-step { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(244,237,226,.5); font-weight: 700; margin-bottom: .7rem; }
@media (min-width: 900px) {
  .chain li:not(:last-child)::after { content: "→"; position: absolute; right: -0.55rem; top: 50%; transform: translateY(-50%); z-index: 1; width: 1.1rem; height: 1.1rem; display: grid; place-items: center; font-weight: 700; color: var(--brass); }
}
.value-grid .card h3 { color: var(--ink); }

/* Design principles */
.principles { list-style: none; counter-reset: pr; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.principles li { counter-increment: pr; background: var(--charcoal-2); border-radius: var(--radius); padding: 1.3rem; }
.principles li::before { content: counter(pr); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brass); color: var(--charcoal); font-weight: 700; margin-bottom: .7rem; }
.principles h3 { color: var(--sand); font-size: 1.1rem; }
.principles p { font-size: .93rem; }

/* ---------- Local markets ---------- */
.market-path { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.mp { border-radius: var(--radius); padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .15rem; }
.mp span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mp strong { font-family: var(--font-heading); font-size: 1.25rem; }
.mp small { font-size: .88rem; opacity: .85; }
.mp.now { background: var(--ember); color: #fff; }
.mp.next { background: var(--sand-2); color: var(--ink); }
.mp.vision { background: transparent; border: 2px dashed rgba(34,29,25,.25); color: var(--muted); }
.local-grid { margin-bottom: 2rem; }
.sub-title { margin-bottom: 1rem; }
.steps-list { display: grid; gap: .6rem; padding-left: 1.3rem; max-width: 70ch; }
.steps-list li { padding-left: .3rem; }
.steps-list strong { color: var(--ink); }

/* ---------- Mentor network ---------- */
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: .6rem; margin-bottom: 1.5rem; }
.stages div { background: #fff; border: 1px solid rgba(34,29,25,.08); border-radius: 12px; padding: 1rem; display: flex; flex-direction: column; gap: .1rem; border-bottom: 4px solid var(--ember); }
.stages div:nth-child(1) { border-bottom-color: #f3c9a8; }
.stages div:nth-child(2) { border-bottom-color: #f0a06a; }
.stages div:nth-child(3) { border-bottom-color: #ad380a; }
.stages div:nth-child(4) { border-bottom-color: #8a3414; }
.stages span { font-size: .75rem; font-weight: 700; color: var(--ember); }
.stages strong { font-family: var(--font-heading); font-size: 1.2rem; }
.stages small { color: var(--muted); font-size: .88rem; }
.matcher { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.matcher-form { background: var(--sand-2); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .4rem; align-content: start; }
.matcher-form label { font-weight: 700; margin-top: .4rem; }
.matcher-form select { font: inherit; font-size: 16px; min-height: 44px; padding: .5rem .7rem; border-radius: 10px; border: 1px solid rgba(34,29,25,.25); background: #fff; color: var(--ink); }
.matcher-form select:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
.matcher-result { background: var(--charcoal); color: var(--sand); border-radius: var(--radius); padding: 1.4rem; }
.matcher-result h3 { color: var(--sand); font-size: 1.35rem; margin: .4rem 0 .6rem; }
.matcher-result .muted-ink { color: rgba(244,237,226,.7); margin-top: .5rem; }
.match-tag { font-size: .75rem; font-weight: 700; color: var(--brass); }

/* ---------- Hands-on lab ---------- */
.lab { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(244,237,226,.15); background: #0d0b0a; }
.lab-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .6rem; background: var(--charcoal-2); }
.os-tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.os-tab { font: inherit; font-weight: 600; font-size: .9rem; min-height: 40px; padding: .4rem .9rem; border-radius: 8px; border: 1px solid rgba(244,237,226,.2); background: transparent; color: var(--sand); cursor: pointer; }
.os-tab[aria-selected="true"] { background: var(--sand); color: var(--charcoal); }
.os-tab:focus-visible, #vmBtn:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
.lab-actions { display: flex; align-items: center; gap: .6rem; }
.btn-sm { padding: .5rem 1rem; min-height: 40px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.vm-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: rgba(244,237,226,.75); }
.vm-status i { width: 9px; height: 9px; border-radius: 50%; background: #6b605a; }
.vm-status.is-boot i { background: var(--brass); }
.vm-status.is-on i { background: #4cc46a; box-shadow: 0 0 8px #4cc46a; }
.term { height: 300px; overflow-y: auto; padding: 1rem; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; color: #d9f2dc; cursor: text; }
.term pre { white-space: pre-wrap; word-break: break-word; margin: 0; font: inherit; }
.term-line { display: flex; gap: .5rem; align-items: center; }
.term-line span { color: #8fd19e; white-space: nowrap; }
.term-line input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: inherit; font-size: 16px; outline: none; caret-color: var(--ember-glow); }
.lab-note { color: rgba(244,237,226,.6) !important; }
.lab-cards { margin-top: 1.5rem; }
.lab-cards .card h3 { color: var(--ink); }

/* Logo */
.logo-svg { flex: none; display: block; filter: drop-shadow(0 0 6px rgba(226,87,28,.25)); }

/* Export-ready note */
.export-ready { background: var(--charcoal); color: var(--sand); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 2rem; border-left: 4px solid var(--brass); }
.export-ready h3 { color: var(--sand); margin-bottom: .4rem; }
.export-ready p { color: rgba(244,237,226,.85); max-width: 75ch; }

/* ---------- Python lab ---------- */
.pylab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(34,29,25,.12); background: #fff; }
@media (max-width: 760px) { .pylab { grid-template-columns: minmax(0, 1fr); } }
.py-lesson { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.py-steps { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .4rem; }
.py-step { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(34,29,25,.2); background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.py-step[aria-selected="true"] { background: var(--charcoal); color: var(--sand); border-color: var(--charcoal); }
.py-step.done { background: #2f8a4a; color: #fff; border-color: #2f8a4a; }
.py-step:focus-visible, .btn-ghost-dark:focus-visible, #pyRun:focus-visible, #pyCode:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
.py-lesson p { color: var(--muted); }
.py-task { background: var(--sand-2); border-radius: 10px; padding: .8rem; color: var(--ink) !important; }
.py-check { font-weight: 700; min-height: 1.5em; }
.py-check.ok { color: #2f8a4a; }
.py-check.no { color: #b33a12; }
.py-work { background: #0d0b0a; display: flex; flex-direction: column; }
.py-bar { display: flex; justify-content: space-between; align-items: center; padding: .5rem .75rem; background: var(--charcoal-2); color: rgba(244,237,226,.75); font-size: .85rem; gap: .5rem; }
.py-bar div { display: flex; gap: .4rem; }
.btn-ghost-dark { font: inherit; font-weight: 600; min-height: 40px; padding: .4rem .9rem; border-radius: 999px; border: 1px solid rgba(244,237,226,.25); background: transparent; color: var(--sand); cursor: pointer; }
#pyCode { min-height: 220px; resize: vertical; background: transparent; color: #f4ede2; border: 0; padding: 1rem; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; line-height: 1.5; tab-size: 4; }
.py-out-label { padding: .4rem 1rem; font-size: .75rem; font-weight: 700; color: var(--brass); border-top: 1px solid rgba(244,237,226,.1); }
#pyOut { margin: 0; padding: 0 1rem 1rem; min-height: 70px; color: #d9f2dc; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; white-space: pre-wrap; word-break: break-word; }

/* ---------- Lab catalogue ---------- */
.lab-filters { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.lab-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .9rem; }
.lab-room { background: var(--charcoal-2); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .4rem; border: 1px solid rgba(244,237,226,.08); }
.lab-room h3 { color: var(--sand); font-size: 1.08rem; }
.lab-room p { font-size: .92rem; }
.room-top { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; font-weight: 700; }
.room-cat { color: var(--brass); }
.room-lvl { padding: .1rem .55rem; border-radius: 999px; }
.room-lvl.l1 { background: #f3c9a8; color: var(--charcoal); }
.room-lvl.l2 { background: #f0a06a; color: var(--charcoal); }
.room-lvl.l3 { background: #ad380a; color: #fff; }
.room-lvl.l4 { background: #8a3414; color: #fff; }
.room-vm { margin-top: auto; padding-top: .4rem; font-size: .82rem; color: #8fd19e; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* ---------- AI school ---------- */
.ai-path { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: .9rem; margin-bottom: 1.5rem; }
.ai-path li { display: flex; gap: 1rem; background: #fff; border: 1px solid rgba(34,29,25,.08); border-radius: var(--radius); padding: 1.2rem; }
.ai-num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--charcoal); color: var(--ember-glow); font-weight: 700; font-family: var(--font-heading); }
.ai-path p { color: var(--muted); font-size: .94rem; }
.ai-path li:nth-child(6), .ai-path li:nth-child(7) { border-color: var(--ember); box-shadow: inset 4px 0 0 var(--ember); }
.capstones { background: var(--sand-2); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.capstones ul { padding-left: 1.2rem; display: grid; gap: .35rem; margin-top: .6rem; }

/* ---------- Ways to learn ---------- */
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; margin-bottom: 2rem; }
.ways article { background: var(--charcoal-2); border-radius: var(--radius); padding: 1.3rem; }
.ways h3 { color: var(--sand); }
.ways p { font-size: .94rem; }
.way-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ember); color: #fff; font-size: 1.3rem; margin-bottom: .7rem; }
.sub-title.light { color: var(--sand); }
.scroll { overflow-x: auto; }
.week { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--charcoal-2); border-radius: var(--radius); overflow: hidden; }
.week th, .week td { text-align: left; padding: .75rem 1rem; border-top: 1px solid rgba(244,237,226,.08); font-size: .94rem; vertical-align: top; }
.week th { background: #110e0c; color: var(--brass); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; border-top: 0; }
.week td:first-child { font-weight: 700; color: var(--sand); white-space: nowrap; }
.week td { color: rgba(244,237,226,.85); }

/* ---------- Who it's for ---------- */
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .9rem; }
.who-grid article { background: #fff; border: 1px solid rgba(34,29,25,.08); border-radius: var(--radius); padding: 1.2rem; border-top: 4px solid var(--ember); }
.who-grid article:nth-child(even) { border-top-color: var(--brass); }
.who-grid h3 { font-size: 1.1rem; }
.who-grid p { color: var(--muted); font-size: .93rem; }

/* ---------- Apprenticeship & innovation ---------- */
.feature ul { padding-left: 1.1rem; display: grid; gap: .4rem; margin: .5rem 0; color: var(--muted); }
.feature li strong { color: var(--ink); }
.feature p { margin-bottom: .4rem; }
.bridge-strip { margin-top: 1.25rem; background: linear-gradient(90deg, var(--charcoal), #3a2018 60%, var(--ember)); color: var(--sand); border-radius: var(--radius); padding: 1.5rem; }
.bridge-strip h3 { color: #fff; margin-bottom: .4rem; }
.bridge-strip p { max-width: 75ch; color: rgba(244,237,226,.9); }

/* ---------- Contact button + modal ---------- */
.nav-cta { font: inherit; font-size: .9rem; font-weight: 700; min-height: 38px; padding: .4rem 1rem; border-radius: 999px; border: 0; background: var(--ember); color: #fff; cursor: pointer; }
.nav-cta:hover { background: #8f2e08; }
.nav-cta:focus-visible, .modal-x:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.hero-actions button.btn { font: inherit; font-weight: 600; cursor: pointer; background: transparent; color: inherit; }
.no-scroll { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(17,14,12,.7); display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(100%, 480px); max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--sand); color: var(--ink); border-radius: 18px; padding: 1.6rem; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.modal-box h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.modal-sub { color: var(--muted); margin-bottom: 1rem; }
.modal-x { position: absolute; top: .6rem; right: .6rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
#cForm { display: grid; gap: .35rem; }
#cForm label { font-weight: 700; font-size: .9rem; margin-top: .4rem; }
#cForm input, #cForm select, #cForm textarea { font: inherit; font-size: 16px; padding: .6rem .75rem; min-height: 44px; border-radius: 10px; border: 1px solid rgba(34,29,25,.25); background: #fff; color: var(--ink); }
#cForm input:focus-visible, #cForm select:focus-visible, #cForm textarea:focus-visible { outline: 3px solid var(--ember); outline-offset: 1px; }
#cForm button { margin-top: .8rem; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.form-err { color: #b33a12; font-weight: 600; min-height: 1.2em; }
.modal-done { display: grid; gap: .6rem; }
.modal-done button { border: 0; font: inherit; font-weight: 700; cursor: pointer; justify-self: start; }

/* ---------- Live sessions ---------- */
.live-list { display: grid; gap: .6rem; }
.live-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; background: var(--charcoal-2); border-radius: var(--radius); padding: .9rem 1rem; }
.live-when { display: grid; place-items: center; width: 64px; padding: .4rem; border-radius: 10px; background: #110e0c; }
.live-when strong { color: var(--ember-glow); font-size: .85rem; }
.live-when span { color: var(--sand); font-weight: 700; white-space: nowrap; }
.live-what h3 { color: var(--sand); font-size: 1.02rem; margin-bottom: .1rem; }
.live-what span { font-size: .85rem; color: rgba(244,237,226,.65); }
.live-item .btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
@media (max-width: 560px) {
  .live-item { grid-template-columns: auto minmax(0, 1fr); }
  .live-item .btn { grid-column: 1 / -1; }
}

/* ---------- Python path ---------- */
.py-path { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.py-path article { background: #fff; border: 1px solid rgba(34,29,25,.08); border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.py-path p { color: var(--muted); font-size: .93rem; }
.py-stage { align-self: start; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.py-stage.s1 { background: #f3c9a8; } .py-stage.s2 { background: #f0a06a; }
.py-stage.s3 { background: #ad380a; color: #fff; } .py-stage.s4 { background: #8a3414; color: #fff; }
.py-project { margin-top: auto; background: var(--sand-2); border-radius: 10px; padding: .8rem; font-size: .9rem; }
.py-project strong { display: block; color: var(--ember); font-size: .78rem; margin-bottom: .2rem; }
.cert { background: var(--charcoal); color: var(--sand); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.cert h3 { color: var(--sand); margin-bottom: .5rem; }
.cert ul { padding-left: 1.2rem; display: grid; gap: .35rem; color: rgba(244,237,226,.88); }

/* ---------- Main menu (desktop + mobile) ---------- */
.header-row { flex-wrap: nowrap; position: relative; }
.logo span { white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 1.2rem; flex-wrap: nowrap; }
.site-nav .nav-link, .site-nav summary { font-size: .92rem; opacity: .85; text-decoration: none; }
.site-nav .nav-link:hover, .site-nav summary:hover { opacity: 1; color: var(--ember-glow); }
.site-nav a[aria-current="page"] strong { color: var(--ember-glow); }
.dropdown-menu { min-width: 280px; z-index: 30; }
.menu-toggle { display: none; font: inherit; font-weight: 700; font-size: .9rem; color: var(--sand); background: transparent; border: 1px solid rgba(244,237,226,.25); border-radius: 999px; min-height: 44px; padding: .4rem .9rem; align-items: center; gap: .5rem; cursor: pointer; }
.menu-toggle:focus-visible, .site-nav summary:focus-visible, .site-nav a:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .3rem; padding: 1rem 1.25rem 1.4rem; background: var(--charcoal); border-bottom: 1px solid rgba(244,237,226,.12); box-shadow: 0 16px 30px rgba(0,0,0,.35); max-height: calc(100vh - 70px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-nav .dropdown summary, .site-nav .nav-link { padding: .8rem .2rem; font-size: 1.05rem; opacity: 1; border-bottom: 1px solid rgba(244,237,226,.08); }
  .dropdown-menu { position: static; transform: none; min-width: 0; box-shadow: none; border: 0; background: transparent; padding: 0 0 .5rem .5rem; }
  .nav-cta { margin-top: .6rem; min-height: 48px; font-size: 1rem; }
}
.practice-card { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; background: var(--charcoal-2); border-radius: var(--radius); padding: 1.5rem; border: 1px solid rgba(244,237,226,.1); transition: transform .15s ease, border-color .15s ease; }
.practice-card:hover { transform: translateY(-3px); border-color: var(--ember); }
.practice-card h3 { color: var(--sand); font-size: 1.35rem; }
.practice-card .pilot-tag { align-self: start; background: var(--ember); color: #fff; }

/* ---------- Cloud Desktop ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cd { border-radius: 16px; overflow: hidden; border: 1px solid rgba(244,237,226,.15); background: #0d0b0a; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.cd-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .6rem .9rem; background: #1f1a17; }
.cd-brand { display: flex; align-items: center; gap: .45rem; color: var(--sand); font-size: .9rem; }
.cd-dot { width: 11px; height: 11px; border-radius: 50%; } .cd-dot.r { background: #ad380a; } .cd-dot.y { background: #c9a24a; } .cd-dot.g { background: #4cc46a; }
.cd-controls { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.cd-controls select, .np-bar select { font: inherit; font-size: 16px; min-height: 40px; padding: .3rem .6rem; border-radius: 8px; border: 1px solid rgba(244,237,226,.25); background: #0d0b0a; color: var(--sand); }
.cd-body { display: grid; grid-template-columns: 96px minmax(0, 1fr); min-height: 440px; }
.cd-dock { display: flex; flex-direction: column; gap: .4rem; padding: .7rem .5rem; background: #15110f; border-right: 1px solid rgba(244,237,226,.08); }
.cd-icon { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .5rem .2rem; border: 0; border-radius: 10px; background: transparent; color: rgba(244,237,226,.8); font: inherit; font-size: .75rem; cursor: pointer; min-height: 60px; }
.cd-icon span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--charcoal-2); font-family: ui-monospace, Menlo, monospace; font-size: .85rem; font-weight: 700; color: var(--ember-glow); }
.cd-icon.on { background: rgba(226,87,28,.18); color: #fff; }
.cd-icon:disabled { opacity: .35; cursor: not-allowed; }
.cd-icon:focus-visible, #cdStart:focus-visible, #npSave:focus-visible, #ideRun:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
.cd-window { display: flex; flex-direction: column; min-width: 0; }
.cd-title { padding: .45rem .9rem; font-size: .8rem; color: var(--brass); background: #17130f; border-bottom: 1px solid rgba(244,237,226,.06); }
.cd-app { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cd-app[hidden] { display: none; }
.cd-welcome { margin: auto; text-align: center; padding: 2rem; color: var(--sand); max-width: 420px; }
.cd-welcome h3 { color: var(--sand); margin-bottom: .5rem; }
.cd-term { flex: 1; height: auto; min-height: 380px; max-height: 460px; }
.cd-term.ps { background: #012456; color: #eef3ff; }
.cd-term.ps .term-line span { color: #fff; }
.np-bar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .6rem .8rem; background: #17130f; color: var(--sand); font-size: .85rem; }
.np-status { color: #8fd19e; font-size: .85rem; }
#npText { flex: 1; min-height: 330px; resize: vertical; border: 0; padding: 1rem; font: 15px/1.6 ui-monospace, Menlo, Consolas, monospace; background: #fbf7f0; color: #1a1614; }
#npText:focus-visible, #ideCode:focus-visible { outline: 3px solid var(--ember); outline-offset: -3px; }
.cd-hint { padding: .5rem .9rem; font-size: .82rem; color: rgba(244,237,226,.6); }
.cd-hint code { color: var(--ember-glow); }
.ide { display: grid; grid-template-rows: minmax(220px, 1fr) auto; flex: 1; }
#ideCode { resize: vertical; border: 0; padding: 1rem; background: #0d0b0a; color: #f4ede2; font: 15px/1.5 ui-monospace, Menlo, Consolas, monospace; tab-size: 4; min-height: 240px; }
.ide-out { border-top: 1px solid rgba(244,237,226,.1); }
#ideOut { margin: 0; padding: 0 1rem 1rem; min-height: 90px; color: #d9f2dc; font: 14px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.cd-intro { padding: 1rem 1rem .4rem; color: rgba(244,237,226,.8); }
.sdk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .6rem; padding: .6rem 1rem 1.2rem; max-height: 400px; overflow-y: auto; }
.sdk { background: var(--charcoal-2); border-radius: 10px; padding: .8rem; display: flex; flex-direction: column; gap: .25rem; }
.sdk h4 { color: var(--sand); font-size: .95rem; }
.sdk p { color: rgba(244,237,226,.7); font-size: .82rem; }
.sdk-ok { margin-top: auto; font-size: .72rem; font-weight: 700; color: #4cc46a; }
@media (max-width: 600px) {
  .cd-body { grid-template-columns: minmax(0, 1fr); }
  .cd-dock { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(244,237,226,.08); }
  .cd-icon { min-width: 72px; }
}

/* ---------- Competitions ---------- */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.comp-grid article { background: #fff; border: 1px solid rgba(34,29,25,.08); border-radius: var(--radius); padding: 1.3rem; }
.comp-grid p { color: var(--muted); font-size: .94rem; }
.comp-tag { display: inline-block; font-size: .75rem; font-weight: 700; color: #fff; background: var(--charcoal); padding: .2rem .65rem; border-radius: 999px; margin-bottom: .6rem; }
.lb { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--charcoal-2); border-radius: var(--radius); overflow: hidden; }
.lb th, .lb td { padding: .75rem 1rem; text-align: left; border-top: 1px solid rgba(244,237,226,.07); color: rgba(244,237,226,.88); }
.lb th { background: #110e0c; color: var(--brass); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; border-top: 0; }
.lb .num { text-align: right; font-variant-numeric: tabular-nums; }
.lb tr.me td { background: rgba(226,87,28,.22); color: #fff; font-weight: 700; }
.rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #110e0c; font-weight: 700; font-size: .85rem; }
.rank.r1 { background: #c9a24a; color: var(--charcoal); } .rank.r2 { background: #b8b3ad; color: var(--charcoal); } .rank.r3 { background: #a86a3d; color: #fff; }
.sql { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(34,29,25,.12); background: #fff; }
@media (max-width: 760px) { .sql { grid-template-columns: minmax(0, 1fr); } }
.sql-side { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.sql-side p { color: var(--muted); }
.schema summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.schema code { font-size: .85rem; }
#sqlCode { min-height: 160px; resize: vertical; background: transparent; color: #f4ede2; border: 0; padding: 1rem; font: 15px/1.5 ui-monospace, Menlo, Consolas, monospace; }
#sqlCode:focus-visible { outline: 3px solid var(--ember); outline-offset: -3px; }
.sql-out { padding: 0 1rem 1rem; color: #d9f2dc; font-size: .9rem; min-height: 60px; }
.sql-table { border-collapse: collapse; min-width: 100%; }
.sql-table th, .sql-table td { padding: .35rem .7rem; border-bottom: 1px solid rgba(244,237,226,.1); text-align: left; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; white-space: nowrap; }
.sql-table th { color: var(--brass); }
.sql-err { color: #ff9b7a; }
.ctf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.flag { background: #fff; border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column; gap: .55rem; border: 1px solid rgba(34,29,25,.08); }
.flag .room-cat { color: var(--ember); }
.flag p { color: var(--muted); font-size: .94rem; }
.flag.solved { border-color: #2f8a4a; box-shadow: inset 0 4px 0 #2f8a4a; }
.clue { display: block; background: var(--charcoal); color: #8fd19e; padding: .6rem .8rem; border-radius: 8px; font-size: .9rem; overflow-wrap: anywhere; }
.flag-form { display: flex; gap: .5rem; }
.flag-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; min-height: 44px; padding: .5rem .7rem; border-radius: 10px; border: 1px solid rgba(34,29,25,.25); }
.flag-form input:focus-visible { outline: 3px solid var(--ember); outline-offset: 1px; }
.flag-form button, .live-item .btn, #sqlRun { border: 0; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- Digital skills framework ---------- */
.skills { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: .88rem; }
.skills th, .skills td { padding: .7rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(34,29,25,.07); }
.skills thead th { background: var(--charcoal); color: var(--sand); font-size: .82rem; }
.skills thead th:nth-child(2) { background: #6a4a33; } .skills thead th:nth-child(3) { background: #8a3414; }
.skills thead th:nth-child(4) { background: #9a3412; } .skills thead th:nth-child(5) { background: #ad380a; } .skills thead th:nth-child(6) { background: #f08a3d; color: var(--charcoal); }
.lvl-n { display: block; font-size: .7rem; }
.skills tbody th { background: var(--sand-2); font-weight: 700; white-space: nowrap; }
.skills td { color: var(--muted); }

/* ---------- Pilot programs (Tun Maal, Jua Kali) ---------- */
.pilot-sec { scroll-margin-top: 70px; }
.pilot-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: -1rem 0 2rem; }
.pilot-tags span { font-size: .82rem; font-weight: 600; background: #fff; border: 1px solid rgba(34,29,25,.12); padding: .3rem .75rem; border-radius: 999px; }
.two-wf { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: stretch; margin-bottom: 2.5rem; }
.two-wf article { background: #fff; border-radius: var(--radius); padding: 1.4rem; border: 1px solid rgba(34,29,25,.08); }
.two-wf .wf-tech { background: var(--charcoal); color: var(--sand); }
.two-wf .wf-tech h3 { color: var(--sand); } .two-wf .wf-tech p { color: rgba(244,237,226,.85); }
.two-wf p { color: var(--muted); }
.wf-label { display: block; font-size: .75rem; font-weight: 700; color: var(--ember); margin-bottom: .4rem; }
.wf-tech .wf-label { color: var(--ember-glow); }
.wf-join { align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ember); color: #fff; font-weight: 700; font-size: 1.4rem; }
@media (max-width: 700px) { .two-wf { grid-template-columns: minmax(0, 1fr); } .wf-join { justify-self: center; } }
.ladder { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: .9rem; margin-bottom: 2.5rem; }
.ladder th, .ladder td { padding: .75rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(34,29,25,.07); }
.ladder thead th { font-size: .8rem; color: var(--sand); background: var(--charcoal); }
.ladder thead th:nth-child(2) { background: #6a4a33; } .ladder thead th:nth-child(3) { background: #9a3412; } .ladder thead th:nth-child(4) { background: var(--ember); }
.ladder tbody th { background: var(--sand-2); white-space: nowrap; }
.ladder td { color: var(--muted); }
.ladder td:last-child { color: var(--ink); font-weight: 600; }
.track-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: .9rem; margin-bottom: 2.5rem; }
.track-card { background: #fff; border-radius: var(--radius); padding: 1.2rem; border: 1px solid rgba(34,29,25,.08); display: flex; flex-direction: column; gap: .35rem; }
.track-card h4 { font-family: var(--font-heading); font-size: 1.15rem; }
.track-card p { color: var(--muted); font-size: .92rem; }
.tc-who { font-size: .75rem; font-weight: 700; color: var(--ember); }
.tc-meta { margin-top: auto; padding-top: .4rem; font-size: .82rem; font-weight: 700; }
.roles-wrap { margin-bottom: 2.5rem; }
.roles { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .6rem; }
.roles li { background: var(--charcoal); color: var(--sand); border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .15rem; }
.roles strong { color: #fff; }
.roles span { font-size: .85rem; color: rgba(244,237,226,.72); }
.pilot-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .9rem; margin-bottom: 2.5rem; }
.pilot-products div { background: #fff; border-radius: var(--radius); padding: 1.2rem; border-left: 4px solid var(--brass); }
.pilot-products h4 { margin-bottom: .3rem; }
.pilot-products p { color: var(--muted); font-size: .93rem; }
.light-timeline .step { background: #fff; border-color: rgba(34,29,25,.1); }
.light-timeline .step p { color: var(--muted); }

/* ---------- Built for reach ---------- */
.reach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.reach-grid article { background: #fff; border: 1px solid rgba(34,29,25,.08); border-radius: var(--radius); padding: 1.3rem; }
.reach-grid article:first-child { background: var(--charcoal); }
.reach-grid article:first-child h3 { color: var(--sand); }
.reach-grid article:first-child p { color: rgba(244,237,226,.85); }
.reach-grid p { color: var(--muted); font-size: .94rem; }
.ambition { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; background: var(--ember); color: #fff; border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.ambition strong { font-family: var(--font-heading); font-size: 1.4rem; }
.ambition p { flex: 1; min-width: 240px; font-size: 1.05rem; }

/* ---------- Gorgor Cyber Labs ---------- */
.gorgor-hero { background: radial-gradient(circle at 78% 40%, rgba(201,162,74,.28), transparent 50%), radial-gradient(circle at 15% 120%, rgba(226,87,28,.35), transparent 55%), #120f0d; }
.eagle-wrap { display: grid; place-items: center; }
.eagle { width: min(100%, 340px); height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.gorgor-paths .pilot-tag { background: var(--charcoal); color: var(--brass); }
.ctf-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.ctf-card { background: var(--charcoal-2); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem; border: 1px solid rgba(244,237,226,.08); }
.ctf-card h3 { color: var(--sand); font-size: 1.1rem; }
.ctf-card p { font-size: .92rem; }
.ctf-card a { color: var(--ember-glow); }
.ctf-card.solved { border-color: #4cc46a; box-shadow: inset 0 4px 0 #4cc46a; }
.ctf-done { color: #4cc46a !important; font-weight: 700; }
.ctf-lock { color: rgba(244,237,226,.55) !important; font-style: italic; }
.ctf-card .flag-form input { background: #0d0b0a; color: var(--sand); border-color: rgba(244,237,226,.2); }
.gorgor-band { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.gorgor-band > div { max-width: 60ch; }
.gorgor-band p { color: var(--muted); }
.comp-link { display: flex; flex-direction: column; text-decoration: none; background: var(--charcoal); color: var(--sand); border-radius: var(--radius); padding: 1.3rem; }
.comp-link h3 { color: var(--sand); } .comp-link p { color: rgba(244,237,226,.8); font-size: .94rem; }
.comp-link .comp-tag { background: var(--ember); align-self: start; }
.comp-link .unit-link { margin-top: .6rem; color: var(--ember-glow); }

/* ---------- Player profile + scoreboard ---------- */
.fp-profile { margin-bottom: 1.8rem; }
.join { background: var(--charcoal-2); border-radius: var(--radius); padding: 1.4rem; border: 1px solid rgba(244,237,226,.1); }
.join-head h3 { color: var(--sand); } .join-head p { margin-bottom: 1rem; }
.join-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: .8rem; align-items: end; }
.join-fields label { display: block; font-size: .85rem; font-weight: 700; color: var(--sand); margin-bottom: .3rem; }
.join-fields input, .join-fields select { width: 100%; font: inherit; font-size: 16px; min-height: 44px; padding: .5rem .7rem; border-radius: 10px; border: 1px solid rgba(244,237,226,.2); background: #0d0b0a; color: var(--sand); }
.join-fields input:focus-visible, .join-fields select:focus-visible { outline: 3px solid var(--ember); outline-offset: 1px; }
.join-fields button { border: 0; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.join .form-err { color: #ff9b7a; margin-top: .5rem; }
.profile { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: linear-gradient(90deg, #2a1d15, #3a2018); border-radius: var(--radius); padding: 1.2rem 1.4rem; border: 1px solid rgba(201,162,74,.35); }
.profile-main { flex: 1; min-width: 150px; }
.profile-main h3 { color: #fff; font-size: 1.4rem; }
.profile-main p { color: rgba(244,237,226,.7); }
.profile-stats { display: flex; gap: 1.2rem; }
.profile-stats div { display: grid; text-align: center; }
.profile-stats strong { font-family: var(--font-heading); font-size: 1.5rem; color: var(--ember-glow); }
.profile-stats span { font-size: .78rem; color: rgba(244,237,226,.7); }
.profile-recent { margin-top: .6rem; font-size: .88rem; color: rgba(244,237,226,.7); }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brass); color: var(--charcoal); font-size: .72rem; font-weight: 800; margin-right: .55rem; vertical-align: middle; }
.avatar.big { width: 56px; height: 56px; font-size: 1.1rem; margin: 0; background: var(--ember); color: #fff; }
.lb em { font-style: normal; color: var(--ember-glow); font-size: .85rem; }
.board-light .lb { background: var(--charcoal); }
.board-light .os-tab { color: var(--ink); border-color: rgba(34,29,25,.25); }
.board-light .os-tab[aria-selected="true"] { background: var(--charcoal); color: var(--sand); }

/* ---------- Program logos ---------- */
.prog-badge { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem; padding: .45rem .9rem .45rem .55rem; border-radius: 999px; background: rgba(244,237,226,.08); border: 1px solid rgba(201,162,74,.4); }
.prog-badge span { font-weight: 700; font-size: .9rem; color: var(--sand); }
.prog-badge.light { background: var(--charcoal); border-color: var(--charcoal); }
.prog-badge svg { flex: none; display: block; }
.unit-card .prog-badge { align-self: start; }
.nav-ico { width: 22px; height: 22px; vertical-align: -6px; margin-right: .35rem; }
.nav-ico.hub { width: 32px; }
@media (max-width: 980px) { .nav-ico { width: 26px; height: 26px; } .nav-ico.hub { width: 38px; } }
.unit-card .pilot-tag { align-self: start; }
.prog-badge .hub-logo { width: 66px; height: 44px; } .prog-badge .tech-logo { width: 40px; height: 40px; }

/* ---------- Main logo ---------- */
.logo { gap: .65rem; }
.logo-svg { width: 58px; height: 58px; filter: drop-shadow(0 0 8px rgba(226,87,28,.3)); }
.logo span { font-size: 1.3rem; }
.logo-cursor { animation: cursor-blink 1.1s steps(1) infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .logo-cursor { animation: none; } }
@media (max-width: 420px) { .logo-svg { width: 44px; height: 44px; } .logo span { font-size: 1.1rem; } }

/* ---------- Offline ---------- */
.offline-banner { position: sticky; top: 0; z-index: 60; background: var(--brass); color: var(--charcoal); text-align: center; font-weight: 700; font-size: .9rem; padding: .55rem 1rem; }
.offline-banner[hidden] { display: none; }
.offline-box { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: #fff; border: 2px dashed var(--brass); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.offline-box p { color: var(--muted); font-size: .93rem; max-width: 70ch; }
.offline-box .btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.section-dark .offline-box { background: var(--charcoal-2); }
.section-dark .offline-box strong { color: var(--sand); }

/* ---------- Code playground ---------- */
.pg { border-radius: 16px; overflow: hidden; border: 1px solid rgba(244,237,226,.15); background: #0d0b0a; }
.pg-bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .6rem; background: var(--charcoal-2); }
.pg-actions { display: flex; gap: .4rem; }
.pg-actions .btn, .tut .btn, #prRun { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.pg-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: 360px; }
@media (max-width: 760px) { .pg-body { grid-template-columns: minmax(0, 1fr); } }
#pgCode { min-height: 340px; resize: vertical; border: 0; padding: 1rem; background: #0d0b0a; color: #f4ede2; font: 15px/1.5 ui-monospace, Menlo, Consolas, monospace; tab-size: 4; border-right: 1px solid rgba(244,237,226,.1); }
#pgCode:focus-visible, #prCode:focus-visible { outline: 3px solid var(--ember); outline-offset: -3px; }
.pg-out { display: flex; flex-direction: column; min-height: 200px; }
#pgOut { flex: 1; margin: 0; padding: 0 1rem 1rem; color: #d9f2dc; font: 14px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
#pgFrame { flex: 1; width: 100%; min-height: 300px; border: 0; background: #fff; }
.light-tab { color: var(--ink); border-color: rgba(34,29,25,.25); }
.light-tab[aria-selected="true"] { background: var(--charcoal); color: var(--sand); }
.tut-list { display: grid; gap: .6rem; }
.tut { background: #fff; border: 1px solid rgba(34,29,25,.1); border-radius: 12px; }
.tut summary { list-style: none; cursor: pointer; display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; min-height: 52px; }
.tut summary::-webkit-details-marker { display: none; }
.tut summary .room-cat { color: var(--ember); font-size: .75rem; font-weight: 700; min-width: 76px; }
.tut summary:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
.tut-body { padding: 0 1rem 1rem; display: grid; gap: .6rem; justify-items: start; }
.tut-body p { color: var(--muted); }
.tut-code { width: 100%; margin: 0; background: var(--charcoal); color: #d9f2dc; border-radius: 10px; padding: .8rem 1rem; font: 13.5px/1.5 ui-monospace, Menlo, Consolas, monospace; overflow-x: auto; }
#prCode { min-height: 190px; resize: vertical; background: transparent; color: #f4ede2; border: 0; padding: 1rem; font: 15px/1.5 ui-monospace, Menlo, Consolas, monospace; tab-size: 4; }
.pr-out { margin: 0; padding: 0 1rem 1rem; min-height: 70px; color: #d9f2dc; font: 13.5px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.practice-box .room-lvl { align-self: start; }

/* ---------- Math ---------- */
.ai-flow { margin-bottom: 1.5rem; }
.chat-demo { max-width: 680px; display: grid; gap: .6rem; background: var(--sand-2); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1rem; }
.chat-label { font-size: .78rem; font-weight: 700; color: var(--ember); }
.msg { max-width: 85%; padding: .7rem .95rem; border-radius: 14px; font-size: .95rem; }
.msg.learner { justify-self: end; background: var(--charcoal); color: var(--sand); border-bottom-right-radius: 4px; }
.msg.teacher { justify-self: start; background: #fff; border: 1px solid rgba(34,29,25,.1); border-bottom-left-radius: 4px; }
.math-bands { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .9rem; }
.math-bands article { background: #fff; border-radius: var(--radius); padding: 1.2rem; border: 1px solid rgba(34,29,25,.08); }
.math-bands p { color: var(--muted); font-size: .93rem; }
.math-bands .band-wide { grid-column: 1 / -1; background: var(--charcoal); }
.math-bands .band-wide h3 { color: var(--sand); } .math-bands .band-wide p { color: rgba(244,237,226,.85); }
.band { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--ember); color: #fff; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .5rem; }
.mp-box { background: var(--charcoal-2); border-radius: 16px; padding: 1.4rem; border: 1px solid rgba(244,237,226,.1); }
.mp-controls { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.2rem; color: var(--sand); }
.mp-controls label { font-weight: 700; }
.mp-controls select { font: inherit; font-size: 16px; min-height: 44px; padding: .4rem .7rem; border-radius: 10px; border: 1px solid rgba(244,237,226,.25); background: #0d0b0a; color: var(--sand); }
.streak { margin-left: auto; font-size: .9rem; color: rgba(244,237,226,.75); }
.streak strong { color: var(--ember-glow); }
.mp-q { font-family: var(--font-heading); font-size: clamp(1.5rem, 5vw, 2.3rem); color: #fff; margin-bottom: 1rem; overflow-wrap: anywhere; }
.mp-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.mp-form input { flex: 1; min-width: 140px; font: inherit; font-size: 18px; min-height: 48px; padding: .5rem .8rem; border-radius: 10px; border: 1px solid rgba(244,237,226,.25); background: #0d0b0a; color: var(--sand); }
.mp-form input:focus-visible, .mp-controls select:focus-visible { outline: 3px solid var(--ember); outline-offset: 1px; }
.mp-form .btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; min-height: 48px; }
.mp-box .py-check.ok { color: #4cc46a; } .mp-box .py-check.no { color: #ff9b7a; }
.mp-steps { margin-top: .6rem; background: #0d0b0a; border-radius: 10px; padding: 1rem 1.2rem; color: var(--sand); }
.mp-steps ol { padding-left: 1.2rem; display: grid; gap: .35rem; margin-top: .4rem; color: rgba(244,237,226,.88); }

/* ---------- Join page ---------- */
.join-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .7rem; margin-bottom: 1.5rem; }
.jt { font: inherit; text-align: left; cursor: pointer; display: grid; gap: .15rem; padding: 1rem 1.2rem; min-height: 64px; border-radius: var(--radius); border: 2px solid rgba(34,29,25,.15); background: #fff; color: var(--ink); }
.jt span { font-size: .85rem; color: var(--muted); }
.jt[aria-selected="true"] { border-color: var(--ember); background: var(--charcoal); color: var(--sand); }
.jt[aria-selected="true"] span { color: rgba(244,237,226,.75); }
.jt:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
.reg { display: grid; gap: 1rem; background: #fff; border-radius: var(--radius); padding: 1.4rem; border: 1px solid rgba(34,29,25,.08); }
.reg[hidden] { display: none; }
.reg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .9rem; }
.reg label, .checks legend { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.reg input:not([type=checkbox]), .reg select, .reg textarea { width: 100%; font: inherit; font-size: 16px; min-height: 44px; padding: .55rem .75rem; border-radius: 10px; border: 1px solid rgba(34,29,25,.25); background: #fff; color: var(--ink); }
.reg input:focus-visible, .reg select:focus-visible, .reg textarea:focus-visible { outline: 3px solid var(--ember); outline-offset: 1px; }
.checks { border: 0; padding: 0; margin: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .4rem; }
.check-grid label, .toggle { display: flex; align-items: center; gap: .55rem; font-weight: 500; min-height: 40px; padding: .3rem .6rem; border-radius: 10px; background: var(--sand); cursor: pointer; margin: 0; }
.toggle { font-weight: 700; background: var(--sand-2); }
.check-grid input, .toggle input { width: 20px; height: 20px; accent-color: var(--ember); flex: none; }
.reg > .btn { justify-self: start; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.reg-done { background: var(--charcoal); color: var(--sand); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .6rem; }
.reg-done h3 { color: var(--sand); }
.reg-done .btn { justify-self: start; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.live-on-join { margin-top: 2rem; }
.live-on-join .os-tab { color: var(--ink); border-color: rgba(34,29,25,.25); }
.live-on-join .os-tab[aria-selected="true"] { background: var(--charcoal); color: var(--sand); }

/* ---------- Maker space + donations ---------- */
.ms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: .9rem; margin-bottom: 2rem; }
.ms-grid article { background: var(--charcoal-2); border-radius: var(--radius); padding: 1.2rem; border: 1px solid rgba(244,237,226,.08); }
.ms-grid h3 { color: var(--sand); font-size: 1.1rem; }
.ms-grid p { font-size: .93rem; }
.ms-n { display: block; font-family: var(--font-heading); color: var(--brass); font-size: 1.1rem; margin-bottom: .3rem; }
.donate { background: var(--sand); color: var(--ink); border-radius: 18px; padding: 1.6rem; }
.donate-head h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.donate-head p { color: var(--muted) !important; max-width: 70ch; margin-bottom: 1.2rem; }
.donate-steps { list-style: none; counter-reset: d; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .7rem; margin-bottom: 1.3rem; }
.donate-steps li { counter-increment: d; background: #fff; border-radius: 12px; padding: 1rem; display: grid; gap: .25rem; border-top: 4px solid var(--ember); }
.donate-steps li::before { content: counter(d); font-weight: 800; color: var(--ember); font-size: .85rem; }
.donate-steps span { color: var(--muted); font-size: .9rem; }
.donate-cta { display: flex; gap: .7rem; flex-wrap: wrap; }
.donate-cta .btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.donate-cta .btn-ghost, .dark-ghost { color: var(--ink); border: 1px solid rgba(34,29,25,.35); }

/* ---------- Trade school ---------- */
.trade-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.trade-grid span { background: var(--charcoal); color: var(--sand); padding: .5rem .95rem; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.tvet-grid { margin-bottom: 1.5rem; }
.tvet-grid .card h3 { font-size: 1.15rem; }

/* ---------- AI teachers ---------- */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .8rem; margin-bottom: 2rem; }
.teacher-grid article { background: var(--charcoal-2); border-radius: var(--radius); padding: 1.1rem; border: 1px solid rgba(244,237,226,.08); }
.teacher-grid h3 { color: var(--sand); font-size: 1.05rem; }
.teacher-grid p { font-size: .9rem; }
.teacher-grid a { color: var(--ember-glow); }
.t-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ember); color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; font-family: ui-monospace, Menlo, monospace; }
.teacher-flow li { background: var(--charcoal-2); border-color: rgba(244,237,226,.1); }
.teacher-flow li h3 { color: var(--sand); }
.low-bw { margin-top: 1.5rem; background: var(--brass); color: var(--charcoal); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.low-bw h3 { margin-bottom: .5rem; }
.low-bw ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.low-bw li, .low-bw p { color: var(--charcoal) !important; }
.donate-steps li { align-content: start; }

/* ---------- Darasa ---------- */
.darasa-hero { background: radial-gradient(circle at 80% 30%, rgba(201,162,74,.25), transparent 50%), radial-gradient(circle at 10% 120%, rgba(226,87,28,.35), transparent 55%), #120f0d; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .9rem; }
.agent { background: #fff; border-radius: var(--radius); padding: 1.2rem; border: 1px solid rgba(34,29,25,.08); border-top: 5px solid var(--ac); display: grid; gap: .2rem; align-content: start; }
.agent-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ac); color: #1a1614; font-weight: 800; margin-bottom: .4rem; }
.agent h3 { font-size: 1.3rem; }
.agent-role { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.agent p { color: var(--muted); font-size: .93rem; margin-top: .3rem; }
.console { border-radius: 16px; overflow: hidden; border: 1px solid rgba(244,237,226,.15); background: #0d0b0a; }
.console-bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .6rem .9rem; background: var(--charcoal-2); }
.console-title { color: var(--brass); font-weight: 700; font-size: .9rem; }
.console-actions { display: flex; gap: .4rem; }
.console-actions .btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.console-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; min-height: 420px; }
@media (max-width: 760px) { .console-body { grid-template-columns: minmax(0, 1fr); } .console-side { border-left: 0; border-top: 1px solid rgba(244,237,226,.08); } }
.feed { list-style: none; padding: 1rem; display: grid; gap: .55rem; align-content: start; max-height: 460px; overflow-y: auto; }
.feed-item { display: grid; gap: .15rem; padding: .7rem .9rem; border-radius: 12px; background: var(--charcoal-2); border-left: 4px solid var(--ac, #6b605a); animation: feed-in .35s ease; }
.feed-item.learner { --ac: #f4ede2; } .feed-item.tutor { --ac: #f4ede2; background: #2a2420; }
.feed-item.approve { --ac: #c9a24a; background: rgba(201,162,74,.16); }
.feed-who { font-size: .78rem; font-weight: 800; color: var(--ac); }
.feed-item.approve .feed-who { color: var(--brass); }
.feed-text { color: rgba(244,237,226,.9); font-size: .93rem; }
@keyframes feed-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .feed-item { animation: none; } }
.console-side { border-left: 1px solid rgba(244,237,226,.08); padding: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.console-side h3 { color: var(--sand); font-size: 1rem; }
.mini-agents { list-style: none; display: grid; gap: .3rem; }
.mini-agents li { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: rgba(244,237,226,.55); padding: .25rem .4rem; border-radius: 8px; }
.mini-agents li span { width: 9px; height: 9px; border-radius: 50%; background: #4a403b; }
.mini-agents li.on { color: #fff; background: rgba(244,237,226,.08); }
.mini-agents li.on span { background: var(--ac); box-shadow: 0 0 8px var(--ac); }
.time-saved { margin-top: auto; background: var(--ember); color: #fff; border-radius: 12px; padding: .8rem; display: grid; }
.time-saved strong { font-family: var(--font-heading); font-size: 1.6rem; }
.time-saved span { font-size: .82rem; }
.mode-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .7rem; margin-bottom: 1rem; }
.mode-desc { max-width: 75ch; color: var(--muted); margin-bottom: 1rem; }
.mode-table { width: 100%; min-width: 480px; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.mode-table th, .mode-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid rgba(34,29,25,.07); }
.mode-table th { background: var(--charcoal); color: var(--sand); font-size: .8rem; }
.who { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.who.ai { background: #fde3d3; color: #8a3414; } .who.mix { background: #f3e5bf; color: #5a4310; } .who.h { background: var(--charcoal); color: var(--sand); }

/* ---------- Manufacturing ambition ---------- */
.ambition-path { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.ambition-path li { padding: 1.3rem; color: var(--sand); }
.ambition-path li:nth-child(1) { background: #3a2a20; } .ambition-path li:nth-child(2) { background: #5a3020; }
.ambition-path li:nth-child(3) { background: #8a3414; } .ambition-path li:nth-child(4) { background: #9a3412; } .ambition-path li:nth-child(5) { background: var(--ember); }
.ambition-path span { display: block; font-size: .75rem; font-weight: 700; color: #fff; margin-bottom: .3rem; }
.ambition-path h3 { color: #fff; font-size: 1.1rem; margin-bottom: .3rem; }
.ambition-path p { font-size: .9rem; color: #fff; }
.talent-pool { background: #fff; border-radius: var(--radius); padding: 1.3rem 1.5rem; border-left: 5px solid var(--brass); }
.talent-pool p { color: var(--muted); max-width: 75ch; }
.talent-pool ul { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin-top: .8rem; }
.talent-pool li { background: var(--sand-2); padding: .35rem .8rem; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.darasa-link { margin-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--charcoal-2); border: 1px solid var(--ember); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.darasa-link strong { color: #fff; font-family: var(--font-heading); font-size: 1.2rem; }
.darasa-link p { margin-top: .2rem; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 100; background: var(--ember); color: #fff; padding: .7rem 1rem; border-radius: 0 0 10px 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 0; outline: 3px solid var(--brass); }
main:focus { outline: none; }

/* ---------- Welcome chatbot ---------- */
.chat-launch { position: fixed; right: 18px; bottom: 18px; z-index: 45; display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: .6rem 1.1rem .6rem .8rem; border: 0; border-radius: 999px; background: var(--ember); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.chat-launch:hover { background: #8f2e08; }
.chat-launch:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.chat-launch-icon { font-size: 1.25rem; }
.chat-launch.open .chat-launch-text { display: none; }
.chat-launch.wave { animation: chat-wave 1.2s ease 2; }
@keyframes chat-wave { 0%, 100% { transform: none; } 30% { transform: translateY(-6px); } 60% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .chat-launch.wave { animation: none; } }
.chat-panel { position: fixed; right: 18px; bottom: 84px; z-index: 46; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--sand); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); border: 1px solid rgba(34,29,25,.15); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .85rem 1rem; background: var(--charcoal); color: var(--sand); }
.chat-head strong { display: block; font-family: var(--font-heading); font-size: 1.1rem; }
.chat-head span { font-size: .8rem; color: rgba(244,237,226,.8); }
.chat-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--sand); font-size: 1.6rem; cursor: pointer; }
.chat-close:focus-visible { outline: 3px solid var(--brass); }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.chat-msg { max-width: 88%; padding: .7rem .9rem; border-radius: 14px; font-size: .95rem; line-height: 1.5; }
.chat-msg p + p { margin-top: .4rem; }
.chat-msg.bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid rgba(34,29,25,.1); border-bottom-left-radius: 4px; }
.chat-msg.me { align-self: flex-end; background: var(--charcoal); color: var(--sand); border-bottom-right-radius: 4px; }
.chat-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.chat-links a { font-weight: 700; color: #a8380c; text-decoration: none; background: var(--sand-2); padding: .35rem .7rem; border-radius: 999px; font-size: .88rem; }
.chat-links a:hover { text-decoration: underline; }
.chat-contact { margin-top: .5rem; border: 0; background: var(--ember); color: #fff; font: inherit; font-weight: 700; font-size: .88rem; padding: .45rem .9rem; border-radius: 999px; cursor: pointer; min-height: 36px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .7rem; }
.chat-quick button { border: 1px solid rgba(34,29,25,.25); background: #fff; color: var(--ink); font: inherit; font-size: .85rem; font-weight: 600; padding: .4rem .75rem; border-radius: 999px; cursor: pointer; min-height: 36px; }
.chat-quick button:hover { border-color: var(--ember); }
.chat-form { display: flex; gap: .4rem; padding: .7rem; border-top: 1px solid rgba(34,29,25,.1); background: #fff; }
.chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; min-height: 44px; padding: .5rem .8rem; border-radius: 999px; border: 1px solid rgba(34,29,25,.25); }
.chat-send { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ember); color: #fff; font-size: 1.1rem; cursor: pointer; }
.chat-quick button:focus-visible, .chat-form input:focus-visible, .chat-send:focus-visible, .chat-links a:focus-visible, .chat-contact:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
@media (max-width: 480px) { .chat-launch-text { display: none; } .chat-launch { padding: .6rem; width: 56px; justify-content: center; } .chat-panel { right: 12px; bottom: 80px; } }

/* ---------- Accessibility: readable accent text on dark backgrounds ---------- */
.hero .eyebrow, .section-dark .eyebrow, .gorgor-hero .eyebrow, .darasa-hero .eyebrow, .card-wide .eyebrow { color: var(--ember-glow); }
.section-dark .unit-link, .practice-card .unit-link, .comp-link .unit-link { color: var(--ember-glow); }
.section-dark .school-num, .card-wide .school-num { color: var(--ember-glow); }
.section-dark .tc-who, .section-dark .level-tag, .level-wide .level-tag { color: var(--ember-glow); }
:focus-visible { outline-color: var(--ember-glow); }
.mp small { opacity: 1; }
.section-dark .offline-box p { color: rgba(244,237,226,.85); }
.rank.r3 { background: #8a5530; }
.cd-icon:disabled { opacity: .5; }

/* ---------- Workshop simulations ---------- */
.sim { border-radius: 18px; overflow: hidden; border: 1px solid rgba(244,237,226,.15); background: #0d0b0a; }
.sim.light { border-color: rgba(34,29,25,.12); background: #fff; }
.sim-top { display: flex; justify-content: space-between; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .7rem .8rem; background: var(--charcoal-2); }
.sim.light .sim-top { background: var(--charcoal); }
.sim-steps { display: flex; gap: .3rem; flex-wrap: wrap; }
.sim-step { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .3rem .7rem .3rem .35rem; border-radius: 999px; border: 1px solid rgba(244,237,226,.2); background: transparent; color: rgba(244,237,226,.8); font: inherit; font-size: .82rem; cursor: pointer; }
.sim-step span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #2a2420; font-weight: 800; }
.sim-step em { font-style: normal; }
.sim-step.done span { background: #4a6b3f; color: #fff; }
.sim-step[aria-selected="true"] { background: var(--sand); color: var(--charcoal); border-color: var(--sand); }
.sim-step[aria-selected="true"] span { background: var(--ember); color: #fff; }
.sim-step:focus-visible, .seg button:focus-visible, .pump-btn:focus-visible { outline: 3px solid var(--ember-glow); outline-offset: 2px; }
@media (max-width: 900px) { .sim-step em { display: none; } .sim-step { padding: .3rem; } .sim-step[aria-selected="true"] em { display: inline; padding-right: .4rem; } }
.sim-controls { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.sim-controls .btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.seg { display: inline-flex; border: 1px solid rgba(244,237,226,.3); border-radius: 999px; overflow: hidden; }
.seg button { font: inherit; font-weight: 700; font-size: .85rem; min-height: 40px; padding: .3rem .9rem; border: 0; background: transparent; color: var(--sand); cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--brass); color: var(--charcoal); }
.btn-ghost-dark.dark { color: var(--sand); }
.sim-svg { display: block; width: 100%; height: auto; }
.sim-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; background: var(--charcoal-2); }
.sim.light .sim-bottom { background: var(--sand-2); }
.sim-cap { flex: 1; min-width: 240px; }
.sim-cap strong { display: block; font-family: var(--font-heading); font-size: 1.3rem; color: #fff; margin-bottom: .2rem; }
.sim-cap p { color: rgba(244,237,226,.85); max-width: 70ch; }
.sim.light .sim-cap strong { color: var(--ink); } .sim.light .sim-cap p { color: var(--muted); }
.pump-btn { font: inherit; font-size: 1.05rem; font-weight: 800; min-height: 56px; padding: .7rem 1.4rem; border-radius: 999px; border: 0; background: var(--brass); color: var(--charcoal); cursor: pointer; box-shadow: 0 6px 0 #8a6a2a; transition: transform .08s ease, box-shadow .08s ease; }
.pump-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 #8a6a2a; }
.pump-btn[hidden] { display: none; }
.sim-after { margin-top: 1.8rem; max-width: 75ch; }
.sim-after p { color: var(--muted); }

/* ---------- Maker hub floor plan ---------- */
.floor { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "make lab" "shared shared"; gap: .9rem; margin-bottom: 1.3rem; }
@media (max-width: 860px) { .floor { grid-template-columns: minmax(0, 1fr); grid-template-areas: "make" "lab" "shared"; } }
.zone { border-radius: 18px; padding: 1.2rem; border: 2px dashed rgba(34,29,25,.2); }
.zone-make { grid-area: make; background: #f6e3d6; border-color: rgba(173,56,10,.45); }
.zone-lab { grid-area: lab; background: var(--charcoal); border-color: rgba(201,162,74,.6); }
.zone-shared { grid-area: shared; background: var(--sand-2); }
.zone-head { margin-bottom: .8rem; }
.zone-tag { display: inline-block; font-size: .75rem; font-weight: 800; padding: .2rem .65rem; border-radius: 999px; background: var(--ember); color: #fff; margin-bottom: .35rem; }
.zone-lab .zone-tag { background: var(--brass); color: var(--charcoal); }
.zone-shared .zone-tag { background: var(--charcoal); color: var(--sand); }
.zone-lab h3 { color: var(--sand); }
.stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: .55rem; }
.station { background: #fff; border-radius: 12px; padding: .8rem; display: grid; gap: .15rem; border: 1px solid rgba(34,29,25,.08); }
.station span { font-size: .85rem; color: var(--muted); }
.zone-lab .station { background: var(--charcoal-2); border-color: rgba(244,237,226,.1); }
.zone-lab .station strong { color: var(--sand); } .zone-lab .station span { color: rgba(244,237,226,.78); }
.hub-how { list-style: none; display: grid; gap: .4rem; margin-bottom: 1.5rem; max-width: 80ch; }
.hub-how li { color: var(--muted); }
.hub-how strong { color: var(--ink); }
.forge-teaser { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: linear-gradient(90deg, #1a1614, #3a2018 60%, #7a2a0c); color: var(--sand); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.forge-teaser strong { color: #fff; font-family: var(--font-heading); font-size: 1.25rem; }
.forge-teaser p { color: rgba(244,237,226,.88); max-width: 60ch; margin-top: .2rem; }

/* ---------- Market Ready ---------- */
.ready-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .9rem; }
.ready-grid article { background: var(--charcoal-2); border-radius: var(--radius); padding: 1.2rem; border: 1px solid rgba(244,237,226,.08); }
.ready-grid h3 { color: var(--sand); font-size: 1.08rem; }
.ready-grid p { font-size: .92rem; }
.ready-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brass); color: var(--charcoal); font-weight: 800; margin-bottom: .5rem; }

/* ---------- Tool donations ---------- */
.wish-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .8rem; margin-bottom: 2rem; }
.wish { background: #fff; border-radius: var(--radius); padding: 1.1rem; border: 1px solid rgba(34,29,25,.08); }
.wish.hot { border: 2px solid var(--ember); }
.wish h4 { font-family: var(--font-heading); font-size: 1.12rem; margin-bottom: .25rem; }
.wish p { color: var(--muted); font-size: .9rem; }
.wish-tag { display: inline-block; font-size: .72rem; font-weight: 800; color: #fff; background: var(--ember); padding: .15rem .55rem; border-radius: 999px; margin-bottom: .4rem; }
.tool-steps { margin-bottom: 2rem; }
.sponsor { background: var(--charcoal); color: var(--sand); border-radius: 18px; padding: 1.5rem; }
.sponsor-head h3 { color: #fff; font-size: 1.4rem; margin-bottom: .3rem; }
.sponsor-head p { color: rgba(244,237,226,.85); max-width: 70ch; margin-bottom: 1rem; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .7rem; margin-bottom: 1.2rem; }
.sponsor-grid div { background: var(--charcoal-2); border-radius: 12px; padding: .9rem; display: grid; gap: .2rem; border-top: 3px solid var(--brass); }
.sponsor-grid strong { color: #fff; }
.sponsor-grid span { font-size: .88rem; color: rgba(244,237,226,.78); }
.sponsor .donate-cta .btn-ghost { color: var(--sand); border-color: rgba(244,237,226,.4); }
button.btn-ghost { background: transparent; font: inherit; font-weight: 700; cursor: pointer; }

/* ===== 3D logo (emblem.js) ===== */
.emblem3d { position: relative; display: block; aspect-ratio: 1; border-radius: 50%; --s: 1; }
.emblem3d > svg { width: 100%; height: 100%; display: block; }
.em-sm { width: 58px; height: 58px; flex: none; }
.em-lg { width: min(420px, 100%); margin: 0 auto; touch-action: pan-y; }
.em-clip { position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  perspective: calc(1100px * var(--s));
  background:
    radial-gradient(circle at 74% 58%, rgba(255,120,40,.22), transparent 42%),
    radial-gradient(circle at 26% 34%, rgba(143,211,255,.10), transparent 40%),
    radial-gradient(circle at 50% 35%, #2c2622, #120f0d 72%); }
.em-stage { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d;
  transform: scale(calc(var(--s) * .93)) translate(-14px, 16px); }
.em-tilt { position: absolute; transform-style: preserve-3d; transition: transform .5s ease-out; }
.em-scene { position: absolute; transform-style: preserve-3d; transform: rotateX(-20deg) rotateY(-16deg);
  animation: em-sway 14s ease-in-out infinite alternate; }
.em-sm .em-scene { animation-duration: 18s; animation-name: em-sway-sm; }
@keyframes em-sway { from { transform: rotateX(-20deg) rotateY(-24deg); } to { transform: rotateX(-14deg) rotateY(22deg); } }
@keyframes em-sway-sm { from { transform: rotateX(-20deg) rotateY(-14deg); } to { transform: rotateX(-18deg) rotateY(12deg); } }
.em-box, .em-group { position: absolute; transform-style: preserve-3d; }
.em-f { position: absolute; left: 0; top: 0; backface-visibility: hidden;
  background: linear-gradient(var(--sh), var(--sh)), var(--tex, var(--c, #555)); --sh: rgba(0,0,0,0); }
.em-top { --sh: rgba(255,240,220,.06); }
.em-left { --sh: rgba(0,0,0,.42); }
.em-right { --sh: rgba(0,0,0,.30); }
.em-back { --sh: rgba(0,0,0,.55); }
.em-floor { position: absolute; width: 640px; height: 460px; margin: -230px 0 0 -320px;
  background:
    radial-gradient(ellipse 30% 26% at 36% 50%, rgba(0,0,0,.55), transparent 70%),
    radial-gradient(ellipse 22% 24% at 65% 51%, rgba(0,0,0,.55), transparent 70%),
    radial-gradient(ellipse 30% 30% at 70% 52%, rgba(255,110,30,.12), transparent 70%),
    radial-gradient(ellipse at 50% 50%, #3a332e, #1a1614 65%); }
/* wood tables */
.em-wood { --tex: repeating-linear-gradient(90deg, rgba(0,0,0,.07) 0 2px, transparent 2px 11px), linear-gradient(180deg, #9a7656, #7c5c42); }
.em-table-b.em-wood { --tex: repeating-linear-gradient(90deg, rgba(0,0,0,.09) 0 2px, transparent 2px 9px), linear-gradient(180deg, #6e4d36, #553a28); }
.em-leg { --c: #5a3f2c; }
.em-table-b-leg { --c: #43301f; }
.em-cable { position: absolute; inset: 0; width: 100%; height: 100%; }
.em-screenlight { position: absolute; left: 10%; top: 10%; width: 50%; height: 70%;
  background: radial-gradient(ellipse at 50% 30%, rgba(143,211,255,.18), transparent 70%); }
.em-heatlight { position: absolute; left: 55%; top: 30%; width: 60%; height: 60%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,140,50,.55), rgba(255,90,20,.15) 45%, transparent 70%);
  animation: em-flicker 1.7s ease-in-out infinite; }
/* computer */
.em-case { --c: #24201d; }
.em-monitor .em-top, .em-monitor .em-left, .em-monitor .em-right { --c: #2e2925; }
.em-monitor .em-front { background: #1b1816; padding: 6px; box-sizing: border-box; box-shadow: inset 0 0 0 1.5px #c9a24a; }
.em-screen { position: relative; width: 100%; height: 100%; border-radius: 3px; overflow: hidden; box-sizing: border-box; padding: 9px 11px;
  background: radial-gradient(ellipse at 50% 40%, #10221a, #050907 80%);
  font: 700 22px/1.12 ui-monospace, Menlo, Consolas, monospace; color: #8fd19e;
  text-shadow: 0 0 6px rgba(143,209,158,.75); }
.em-screen span { display: block; letter-spacing: 1px; }
.em-cursor { display: inline-block; width: 11px; height: 20px; margin-left: 4px; vertical-align: -2px;
  background: #8fd3ff; opacity: .38; box-shadow: 0 0 6px rgba(143,211,255,.6); animation: cursor-blink 1.1s steps(1) infinite; }
.em-glare { position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.12), transparent 40%); }
/* keyboard */
.em-kb { --c: #cbbda8; }
.em-kb .em-top { --c: #d9cdbb; padding: 2px; box-sizing: border-box; }
.em-keys { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; width: 100%; height: 100%; }
.em-keys i { background: linear-gradient(#f4ede2, #ddd1bf); border-radius: 1px; box-shadow: 0 .6px 0 #9b8b75;
  font: 400 3.4px/1 sans-serif; font-style: normal; color: #c0392b; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.em-keys i em { font-style: normal; }
.em-keys .w2 { grid-column: span 2; color: #4a3f36; font-size: 3px; }
.em-keys .sp { grid-column: span 4; }
.em-mouse { --c: #d4c8b5; }
.em-mouse .em-top { border-radius: 7px 7px 6px 6px / 9px 9px 5px 5px; background: radial-gradient(ellipse at 40% 30%, #f6efe4, #cdbfa9); }
.em-mbtn { position: absolute; left: 50%; top: 0; width: 1px; height: 40%; background: #9b8b75; }
/* hammer */
.em-handle { --tex: linear-gradient(180deg, #c08552, #8d5530); }
.em-head { --tex: linear-gradient(160deg, #b9c0c8, #6b7179 60%, #4c5158); }
/* rod: cool steel to red-hot */
.em-rod { --tex: linear-gradient(90deg, #6e6862 0%, #5d5650 38%, #6b4a40 50%, #a3301a 64%, #e8501a 80%, #ff9a3c 92%, #ffd36b 100%); }
.em-rod .em-left { --tex: #5d5650; }
.em-rod .em-right { --tex: #ffe08a; box-shadow: 0 0 10px 3px rgba(255,150,50,.85); }
.em-hot { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 58%, rgba(255,225,140,.75) 100%);
  animation: em-flicker 1.3s ease-in-out infinite; }
.em-glow { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,170,70,.55), rgba(255,100,30,.18) 40%, transparent 68%);
  animation: em-flicker 1.9s ease-in-out infinite; }
.em-spark { position: absolute; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; background: #ffd36b;
  box-shadow: 0 0 4px 1px rgba(255,170,60,.9); opacity: 0;
  transform: translate3d(146px,-4px,16px); animation: em-spark 2s ease-out infinite; }
@keyframes em-spark {
  0% { opacity: 0; transform: translate3d(146px,-4px,16px); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(calc(146px + var(--dx)), calc(-4px + var(--dy)), calc(16px + var(--dz))); } }
@keyframes em-flicker { 0%,100% { opacity: .75; } 30% { opacity: 1; } 55% { opacity: .62; } 80% { opacity: .92; } }
/* gold rim, glass sheen */
.em-rim { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 0 0 max(1.5px, calc(var(--s) * 4px)) #8a6a24,
              inset 0 0 0 max(2.5px, calc(var(--s) * 9px)) #c9a24a,
              inset 0 0 0 max(3px, calc(var(--s) * 11px)) #5e4716,
              inset 0 0 calc(var(--s) * 40px) rgba(0,0,0,.6),
              0 calc(var(--s) * 14px) calc(var(--s) * 34px) rgba(0,0,0,.35),
              0 0 calc(var(--s) * 30px) rgba(226,87,28,.25); }
.em-sheen { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 20%, rgba(255,240,200,.75) 25%, transparent 30% 70%, rgba(255,240,200,.45) 75%, transparent 80%);
  -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - max(3px, var(--s) * 11px)), #000 calc(100% - max(3px, var(--s) * 11px) + 1px), #000 calc(100% - max(1px, var(--s) * 3px)), transparent calc(100% - max(1px, var(--s) * 3px) + 1px));
          mask: radial-gradient(circle closest-side, transparent calc(100% - max(3px, var(--s) * 11px)), #000 calc(100% - max(3px, var(--s) * 11px) + 1px), #000 calc(100% - max(1px, var(--s) * 3px)), transparent calc(100% - max(1px, var(--s) * 3px) + 1px));
  animation: em-turn 9s linear infinite; }
.em-sheen::after { content: ""; }
@keyframes em-turn { to { transform: rotate(360deg); } }
.em-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,255,255,.10), transparent 35%); }
.em-paused *, .em-paused::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .em-scene, .em-sheen, .em-hot, .em-glow, .em-heatlight, .em-cursor { animation: none !important; }
  .em-tilt { transition: none; }
}
.hero .em-lg { align-self: center; }

/* ===== Jamii Community Digital Equity Hub ===== */
:root { --jamii: #0b3d91; --jamii-gold: #f4c542; }
.jamii-logo { flex: none; display: block; width: 40px; height: 40px; }
.prog-badge .jamii-logo { width: 42px; height: 42px; }
.jamii-hero .prog-badge { border-color: rgba(244,197,66,.55); }
.jamii-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: 0; margin: 1.4rem 0 0; color: rgba(244,237,226,.88); font-size: .95rem; }
.jamii-facts li::before { content: "✓ "; color: var(--jamii-gold); font-weight: 800; }
.jamii-step { position: relative; border-top: 5px solid var(--jamii); }
.jamii-step:nth-child(2) { border-top-color: var(--ember); }
.jamii-step:nth-child(3) { border-top-color: #8a6a24; }
.jamii-step .lvl-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--jamii); color: #fff; font-weight: 800; font-size: 1rem; }
.jamii-step:nth-child(2) .lvl-n { background: var(--ember); }
.jamii-step:nth-child(3) .lvl-n { background: #8a6a24; }
.jamii-path { border-left: 5px solid var(--jamii); }
.jp-ico { font-size: 1.8rem; line-height: 1; }
.tick-list { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .45rem; }
.tick-list li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--jamii); font-weight: 800; }
.note-line { margin-top: 1.2rem; padding: .8rem 1rem; border-left: 4px solid var(--jamii-gold); background: var(--sand-2); max-width: 70ch; border-radius: 0 8px 8px 0; }
.card-dark { background: var(--charcoal-2); border-color: rgba(244,237,226,.14); color: var(--sand); }
.section-dark .card-dark p { color: rgba(244,237,226,.82); }
.section-dark .card-dark h3 { color: var(--sand); }
.unit-card.jamii-card { border-top: 5px solid var(--jamii); }
.jamii-card .pilot-tag { background: #e4ecfa; color: var(--jamii); }

/* ===== Order-to-forge hero scene ===== */
.order-scene { margin: 0; align-self: center; width: 100%; max-width: 560px; justify-self: center; }
.os-host { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 44px rgba(0,0,0,.45), 0 0 0 1px rgba(201,162,74,.35); background: #161210; }
.os-svg { display: block; width: 100%; height: auto; }
.os-t { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.os-head { font-size: 9px; font-weight: 700; fill: #fff; }
.os-small { font-size: 7.4px; }
.os-onl { fill: #b9f0cb; }
.os-mut { font-size: 9.5px; fill: #9fb3c8; }
.os-mut2 { fill: #6f839a; }
.os-new { font-size: 8.5px; font-weight: 800; fill: #ad380a; letter-spacing: .06em; }
.os-dk { fill: #3a3f47; }
.os-item { font-size: 10px; font-weight: 700; fill: #14181d; }
.os-btn { font-size: 8.5px; font-weight: 700; fill: #fff; }
.os-btn.os-dk { fill: #3a3f47; }
.os-ok { font-size: 8.5px; font-weight: 700; fill: #1b7a3a; }
.os-fl { transform-box: fill-box; transform-origin: 50% 100%; animation: os-flame 1.1s ease-in-out infinite alternate; }
.os-fl.f2 { animation-duration: .9s; animation-delay: -.3s; }
.os-fl.f3 { animation-duration: 1.3s; animation-delay: -.6s; }
.os-fl.f4 { animation-duration: .8s; animation-delay: -.2s; }
@keyframes os-flame { 0% { transform: scale(1, .82) skewX(-3deg); opacity: .85; } 100% { transform: scale(.92, 1.12) skewX(4deg); opacity: 1; } }
.os-glow, .os-coal, .os-rod2, .os-warm { animation: os-pulse 1.8s ease-in-out infinite; }
@keyframes os-pulse { 0%,100% { opacity: .8; } 45% { opacity: 1; } 70% { opacity: .7; } }
.os-paused * { animation-play-state: paused !important; }
.os-cap { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; justify-content: center; pointer-events: none; }
.os-step { background: rgba(20,16,14,.82); color: #f4ede2; border: 1px solid rgba(201,162,74,.45); border-radius: 999px; padding: .3rem .85rem; font-size: .85rem; font-weight: 600; text-align: center; }
.os-bridge { margin-top: .8rem; color: rgba(244,237,226,.82); font-size: .95rem; line-height: 1.5; }
.os-bridge strong { color: var(--sand); }
.os-fallback { padding: 2rem 1rem; color: var(--sand); margin: 0; }
@media (prefers-reduced-motion: reduce) { .os-fl, .os-glow, .os-coal, .os-rod2, .os-warm { animation: none; } }

/* ===== Handbag simulation ===== */
#bagSvg { --lc: #8b4a22; }
#bagSvg .lc { fill: var(--lc); transition: fill .4s ease; }
#bagSvg .lcs { stroke: var(--lc); transition: stroke .4s ease; }
.bag-emb { font: 800 13px/1 Georgia, serif; letter-spacing: .3em; fill: #000; opacity: .28; }
.bag-emb2 { font: 800 13px/1 Georgia, serif; letter-spacing: .3em; fill: #fff; opacity: .08; }
.bag-emb-s { font: 700 7px/1 Inter, system-ui, sans-serif; letter-spacing: .4em; fill: #000; opacity: .25; }
.bag-tag { font: 800 8px/1 Georgia, serif; fill: #efe3c8; }
.bag-qch { font: 800 18px/1 Inter, system-ui, sans-serif; fill: #1a1614; }
.bag-qct { font: 600 13.5px/1 Inter, system-ui, sans-serif; fill: #2a2520; }
.bag-colours { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .7rem 1rem; border-bottom: 1px solid rgba(34,29,25,.12); }
.bag-cl-label { font-weight: 700; margin-right: .3rem; min-width: 9.5rem; }
.bag-colours button { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .3rem .8rem; border-radius: 999px; border: 2px solid rgba(34,29,25,.2); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.bag-colours button i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.bag-colours button[aria-checked="true"] { border-color: var(--ember); box-shadow: 0 0 0 2px rgba(173,56,10,.18); }
.bag-spec { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; margin-top: 1.5rem; background: #fff; border-radius: 16px; padding: 1.5rem; border: 1px solid rgba(34,29,25,.1); }
.bag-spec h3 { margin-top: 0; }
.spec-dl { display: grid; gap: .1rem; margin: 0; }
.spec-dl div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid rgba(34,29,25,.08); }
.spec-dl dt { font-weight: 700; }
.spec-dl dd { margin: 0; color: var(--muted); }
.bag-cta { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; justify-content: center; }
.bag-cta p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .bag-spec { grid-template-columns: 1fr; } .spec-dl div { grid-template-columns: 1fr; gap: .1rem; } }

/* ===== Hands-on room (labs.html) ===== */
.room-head h2 { color: var(--sand); margin-bottom: .3rem; }
.room-lede { color: rgba(244,237,226,.82); max-width: 70ch; }
.machine { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin: 1.2rem 0; padding: .9rem 1rem; border-radius: 14px; background: #1f1a17; border: 1px solid rgba(244,237,226,.12); }
.machine-start { min-width: 11rem; font-size: 1.02rem; }
.machine-info { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; color: var(--sand); }
.machine-meta { color: rgba(244,237,226,.85); font-size: .92rem; }
.machine-meta code { color: #8fd19e; }
.machine-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-left: auto; }
.machine-actions select, .vm-clock-bar select { font: inherit; font-size: 15px; min-height: 40px; padding: .3rem .6rem; border-radius: 8px; border: 1px solid rgba(244,237,226,.25); background: #0d0b0a; color: var(--sand); }
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.2rem; align-items: start; }
@media (max-width: 1000px) { .room-grid { grid-template-columns: 1fr; } }
.cd { position: relative; }
.vm-clock { color: rgba(244,237,226,.85); font-size: .88rem; font-variant-numeric: tabular-nums; }
.vm-clock strong { color: #8fd3ff; }
.vm-power { font-size: 3rem; color: rgba(244,237,226,.35); line-height: 1; margin-bottom: .5rem; }
.vm-boot { margin: 0; padding: 1rem; color: #b9f0cb; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; flex: 1; }
.term-tools { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .35rem .7rem; background: #17130f; color: rgba(244,237,226,.65); font-size: .8rem; flex-wrap: wrap; }
.term-zoom { display: inline-flex; gap: .3rem; }
.term-zoom .btn-ghost-dark { min-height: 32px; padding: .1rem .55rem; }
.cd-term .cmd { color: #fff; }
.cd-term .err { color: #ff9b8a; }
.cd-term .dim { color: #9fb3a5; }
.term-chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .55rem .7rem; background: #17130f; border-top: 1px solid rgba(244,237,226,.08); color: rgba(244,237,226,.7); font-size: .82rem; }
.chip { font: 600 .82rem/1.2 ui-monospace, Menlo, Consolas, monospace; min-height: 36px; padding: .3rem .7rem; border-radius: 999px; border: 1px solid rgba(255,160,90,.5); background: rgba(226,87,28,.14); color: #ffd7b8; cursor: pointer; }
.chip:hover, .chip:focus-visible { background: rgba(226,87,28,.3); }
.chip.ghost { background: transparent; border-color: rgba(244,237,226,.3); color: rgba(244,237,226,.85); font-family: inherit; }
.chip:disabled { opacity: .5; cursor: default; }
.fm-bar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .5rem .7rem; background: #17130f; }
.fm-bar .btn-ghost-dark { min-height: 38px; padding: .2rem .7rem; }
.fm-sp { flex: 1; }
.fm-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .15rem; color: rgba(244,237,226,.5); font: .85rem ui-monospace, Menlo, monospace; }
.fm-path button { background: none; border: 0; color: #8fd3ff; font: inherit; cursor: pointer; padding: .3rem .25rem; min-height: 32px; border-radius: 6px; }
.fm-path button:hover { background: rgba(143,211,255,.12); }
.fm-name { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .5rem .7rem; background: #221c18; color: var(--sand); }
.fm-name input { flex: 1; min-width: 10rem; min-height: 40px; font: 16px ui-monospace, Menlo, monospace; padding: .3rem .6rem; border-radius: 8px; border: 1px solid rgba(244,237,226,.3); background: #0d0b0a; color: #fff; }
.fm-list { list-style: none; margin: 0; padding: .6rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; flex: 1; align-content: start; min-height: 300px; outline: none; }
.fm-list li[data-path] { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .55rem; align-items: center; padding: .6rem .65rem; border-radius: 10px; border: 1px solid transparent; color: var(--sand); cursor: pointer; user-select: none; }
.fm-list li[data-path]:hover { background: rgba(244,237,226,.06); }
.fm-list li[aria-selected="true"] { background: rgba(143,211,255,.14); border-color: rgba(143,211,255,.55); }
.fm-list li:focus-visible { outline: 3px solid var(--ember); outline-offset: 1px; }
.fm-ic { grid-row: 1 / 3; font-size: 1.6rem; }
.fm-n { font-weight: 600; word-break: break-all; }
.fm-m { font-size: .75rem; color: rgba(244,237,226,.55); }
.fm-empty { color: rgba(244,237,226,.6); padding: 1rem; grid-column: 1 / -1; }
#edText { flex: 1; min-height: 320px; resize: vertical; border: 0; padding: 1rem; background: #0b1013; color: #e8f5ea; font: 15px/1.55 ui-monospace, Menlo, Consolas, monospace; outline: none; tab-size: 4; }
#edText:focus-visible { box-shadow: inset 0 0 0 2px var(--ember); }
#edStatus { padding: .5rem .9rem; margin: 0; background: #17130f; min-height: 2.2rem; }
.np-status.err { color: #ff9b8a; }
.vm-toast { position: absolute; right: 12px; bottom: 12px; max-width: min(380px, calc(100% - 24px)); padding: .6rem .9rem; border-radius: 10px; background: #f4ede2; color: #1a1614; font-weight: 600; font-size: .9rem; box-shadow: 0 10px 24px rgba(0,0,0,.4); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; pointer-events: none; }
.vm-toast.on { opacity: 1; transform: none; }
.tasks { background: #f4ede2; color: var(--ink); border-radius: 16px; padding: 1rem; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; }
@media (max-width: 1000px) { .tasks { position: static; max-height: none; } }
.tasks-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.tasks-head h3 { margin: 0; }
.tasks-head span { font-size: .88rem; color: var(--muted); }
.task-bar { height: 8px; border-radius: 99px; background: rgba(34,29,25,.12); overflow: hidden; margin: .6rem 0 .8rem; }
.task-bar i { display: block; height: 100%; width: 0; background: #1b7a3a; transition: width .4s; }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.task { background: #fff; border-radius: 12px; padding: .7rem .8rem; border: 1px solid rgba(34,29,25,.1); }
.task.done { background: #eaf6ee; border-color: rgba(27,122,58,.35); }
.task-top { display: flex; gap: .55rem; align-items: center; }
.task-n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--charcoal); color: var(--sand); font-size: .8rem; font-weight: 800; }
.task.done .task-n { background: #1b7a3a; color: #fff; }
.task p { margin: .4rem 0 0; font-size: .9rem; color: var(--muted); }
.task code { font-size: .82rem; background: #f1ebe1; color: #6b2a10; padding: .05rem .3rem; border-radius: 4px; word-break: break-word; }
.task .chip { background: var(--charcoal); color: var(--sand); border-color: var(--charcoal); }
.task .chip.ghost { background: transparent; color: var(--ink); border-color: rgba(34,29,25,.3); }
.task-acts { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.task-hint { background: #fff7e6; border-left: 3px solid var(--brass); padding: .4rem .6rem; border-radius: 0 6px 6px 0; }
.task-ans { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }
.task-ans input { flex: 1; min-width: 9rem; min-height: 40px; font: 15px ui-monospace, Menlo, monospace; padding: .3rem .6rem; border-radius: 8px; border: 1px solid rgba(34,29,25,.3); }
.ans-msg { width: 100%; font-size: .85rem; color: #8a2a0a; }
.task-done { margin-top: .8rem; padding: .8rem; border-radius: 12px; background: #1b7a3a; color: #fff; }
.task-done a { color: #fff; font-weight: 700; }
.fm-name[hidden], .vm-boot[hidden], .task-done[hidden], .task-hint[hidden] { display: none !important; }

/* Header: About, Contact, Join Farsamo */
.site-nav .nav-contact { background: none; border: 0; color: inherit; font: inherit; font-size: .92rem; cursor: pointer; padding: 0; }
.nav-join { display: inline-flex; align-items: center; text-decoration: none; }
.nav-join[aria-current="page"] { box-shadow: 0 0 0 2px var(--brass); }
.header-join { display: none; text-decoration: none; align-items: center; margin-left: auto; margin-right: .5rem; white-space: nowrap; }
@media (max-width: 1180px) {
  .header-join { display: inline-flex; }
  .site-nav .nav-contact { text-align: left; padding: .8rem .2rem; font-size: 1.05rem; border-bottom: 1px solid rgba(244,237,226,.08); }
}
@media (max-width: 380px) { .header-join { padding: .35rem .7rem; font-size: .82rem; } }

/* About */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; align-items: start; }
.about-lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink); }
.about-text p { max-width: 62ch; }
.about-where { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.about-where li { display: grid; gap: .25rem; padding: 1rem 1.1rem; border-radius: 14px; background: #fff; border: 1px solid rgba(34,29,25,.1); }
.about-where li > span:last-child { color: var(--muted); font-size: .95rem; }
.aw-tag { justify-self: start; font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; color: #fff; }
.aw-tag.hub { background: var(--ember); } .aw-tag.acad { background: #1a1614; } .aw-tag.jamii { background: var(--jamii); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Jamii pilot, focus, team */
.pilot-card h3 { margin-top: .4rem; }
.pilot-tag.jamii-pt { background: #e4ecfa; color: var(--jamii); }
.def-box { margin-top: 1.5rem; background: #fff; border-radius: 16px; padding: 1.4rem; border: 1px solid rgba(34,29,25,.1); border-top: 5px solid var(--jamii); }
.def-box h3 { margin-top: 0; }
.def-grid { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.def-grid li { display: grid; gap: .25rem; padding: .9rem; border-radius: 12px; background: #f3f6fb; }
.def-grid li > span:first-child { font-size: 1.5rem; }
.def-grid li > span:last-child { color: var(--muted); font-size: .92rem; }
.def-src { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; max-width: 720px; }
.team-card { display: grid; justify-items: center; gap: .2rem; text-align: center; padding: 1.4rem 1rem; border-radius: 16px; background: #fff; border: 1px solid rgba(34,29,25,.1); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.team-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(34,29,25,.12); }
.team-card strong { font-size: 1.1rem; margin-top: .5rem; }
.team-card span { color: var(--muted); font-size: .92rem; }
.team-card .team-more { color: var(--ember); font-weight: 700; margin-top: .3rem; }
.avatar { display: block; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 3px solid var(--jamii-gold); }
.avatar svg { width: 100%; height: 100%; display: block; }
.avatar.big { width: 140px; height: 140px; flex: none; }
.bio-list { display: grid; gap: 1.5rem; max-width: 760px; }
.bio { display: flex; gap: 1.5rem; align-items: center; padding: 1.5rem; border-radius: 16px; background: #fff; border: 1px solid rgba(34,29,25,.1); scroll-margin-top: 100px; }
.bio h2 { margin: 0; }
.bio-role { color: var(--jamii); font-weight: 700; margin: .2rem 0 .6rem; }
@media (max-width: 560px) { .bio { flex-direction: column; text-align: center; } }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.kids-logo { width: 46px; height: 30px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; }
.unit-card.kids-card { border-top: 5px solid #f9b800; }
.kids-card .pilot-tag { background: #fff3d1; color: #6b4600; }
.aw-tag.kids { background: #1565c0; }
/* roomier header for four programs */
.site-header .wrap.header-row { width: min(1320px, 100% - 2.5rem); max-width: none; }
.site-nav { gap: 1rem; }
.site-nav summary, .site-nav .nav-link, .site-nav .nav-cta { white-space: nowrap; }
@media (max-width: 520px) {
  .menu-toggle .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-toggle { padding: .4rem .75rem; }
  .logo { gap: .45rem; }
  .logo span:not(.emblem3d) { font-size: 1.05rem; }
  .em-sm { width: 44px; height: 44px; }
  .header-join { padding: .4rem .8rem; font-size: .85rem; margin-right: .4rem; min-height: 40px; }
}
@media (max-width: 360px) { .logo span:not(.emblem3d) { font-size: .95rem; } .header-join { padding: .35rem .6rem; } }
@media (max-width: 359px) { .logo > span:not(.emblem3d) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.scroll { max-width: 100%; } .section .wrap { min-width: 0; }
.nav-join[aria-current="page"] { color: #fff; } .vm-power { color: rgba(244,237,226,.6); }
@media (max-width: 520px) { .header-row { gap: .4rem; } .header-join { margin-right: .2rem; } }
/* College Admissions */
.college-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #2f3b69; font-size: 1.3rem; }
.college-badge.sm { width: 34px; height: 34px; font-size: 1.1rem; }
.unit-card.college-card { border-top: 5px solid #2f3b69; }
.college-card .pilot-tag { background: #e3e7f6; color: #2f3b69; }
.aw-tag.college { background: #2f3b69; }
.test-group { margin: 2rem 0 .8rem; font-size: 1.3rem; }
.test-card { border-top: 5px solid #2f3b69; }
.test-abbr { display: inline-block; font-weight: 900; letter-spacing: .06em; font-size: .9rem; color: #fff; background: #2f3b69; padding: .2rem .65rem; border-radius: 999px; }
.test-card h4 { margin: .6rem 0 .4rem; font-size: 1.12rem; }
.eoi-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .eoi-wrap { grid-template-columns: 1fr; } }
.eoi-form { display: grid; gap: .35rem; background: #fff; border-radius: 16px; padding: 1.4rem; border: 1px solid rgba(34,29,25,.1); }
.eoi-form label { font-weight: 700; margin-top: .4rem; }
.eoi-form input:not([type="checkbox"]), .eoi-form select, .eoi-form textarea { min-height: 46px; font: inherit; font-size: 16px; padding: .45rem .75rem; border-radius: 10px; border: 1px solid rgba(34,29,25,.3); background: #fff; }
.eoi-form fieldset { border: 1px solid rgba(34,29,25,.2); border-radius: 12px; padding: .5rem .9rem; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.eoi-form fieldset label { display: inline-flex; gap: .45rem; align-items: center; font-weight: 600; margin: 0; min-height: 40px; }
.eoi-form fieldset input { width: 20px; height: 20px; }
.eoi-form legend { font-weight: 800; padding: 0 .3rem; }
.eoi-form .btn { margin-top: .8rem; justify-self: start; }
.bio { align-items: flex-start; }
.bio-list-items { margin: .4rem 0 0; padding-left: 1.2rem; display: grid; gap: .45rem; color: var(--ink); }
.team-card strong { margin-top: 0; }
.team-card { justify-items: start; text-align: left; border-top: 5px solid var(--jamii); }
/* Founder */
.founder-lead { font-size: 1.12rem; max-width: 62ch; color: var(--ink); }
.founder-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.5rem; margin-top: 1.2rem; }
@media (max-width: 860px) { .founder-grid { grid-template-columns: 1fr; } }
.founder-col { background: #fff; border-radius: 16px; padding: 1.3rem 1.4rem; border: 1px solid rgba(34,29,25,.1); }
.founder-col h3 { margin: 0 0 .7rem; }
.founder-col h3 + .founder-list, .founder-col .lang-chips { margin-bottom: 1.2rem; }
.founder-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.founder-list > li { display: grid; gap: .15rem; padding-left: .9rem; border-left: 3px solid var(--ember); }
.founder-list > li > span { color: var(--muted); font-size: .95rem; }
.founder-list ul { margin: .4rem 0 0; padding-left: 1.1rem; display: grid; gap: .3rem; color: var(--ink); font-size: .95rem; }
.lang-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.lang-chips li { padding: .4rem .8rem; border-radius: 999px; background: var(--sand-2); font-weight: 700; }
.lang-chips span { font-weight: 500; color: var(--muted); margin-left: .25rem; }
.founder-sub { max-width: 66ch; color: var(--muted); }
.founder-h3 { margin: 1.6rem 0 .8rem; }
.founder-map { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; }
.founder-map li { background: #fff; border-radius: 14px; padding: 1rem 1.1rem; border: 1px solid rgba(34,29,25,.1); display: grid; gap: .5rem; align-content: start; }
.founder-map .aw-tag { justify-self: start; }
.founder-map p { margin: 0; color: var(--ink); font-size: .95rem; }
.founder-list > li > span + span { margin-top: .1rem; }
.founder-list.plain > li { border-left-color: var(--brass); }
.courses { margin-top: .4rem; }
.courses summary { cursor: pointer; font-weight: 700; color: var(--ember); min-height: 32px; display: inline-flex; align-items: center; }
.courses ul { margin: .3rem 0 0; padding-left: 1.1rem; display: grid; gap: .25rem; font-size: .95rem; }
.founder-p { max-width: 72ch; line-height: 1.7; }
.founder-grid { align-items: start; }
