:root {
      color-scheme: dark;
      --bg: #0b1220;
      --surface: #101b2c;
      --surface-raised: #142238;
      --surface-soft: #182941;
      --text: #f3f6fb;
      --muted: #a7b5c9;
      --faint: #71829a;
      --border: #263952;
      --blue: #818cf8;
      --blue-strong: #6366f1;
      --orange: #f59e0b;
      --teal: #7dd3c7;
      --shadow: 0 22px 60px rgba(0, 0, 0, .23);
      --max: 1160px;
    }
    html[data-theme="light"] {
      color-scheme: light;
      --bg: #f4f6fa;
      --surface: #ffffff;
      --surface-raised: #ffffff;
      --surface-soft: #edf1f8;
      --text: #142033;
      --muted: #4d5e74;
      --faint: #687990;
      --border: #d9e1ec;
      --blue: #5559df;
      --blue-strong: #4f46e5;
      --orange: #c47a00;
      --teal: #147d73;
      --shadow: 0 20px 50px rgba(30, 50, 80, .09);
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; transition: background .2s ease, color .2s ease; }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; }
    .wrap { width: min(var(--max), calc(100% - 44px)); margin-inline: auto; }
    .skip { position: absolute; left: -9999px; top: 1rem; z-index: 10; background: var(--surface); padding: .75rem 1rem; border-radius: .5rem; }
    .skip:focus { left: 1rem; }
    .site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px); }
    .nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
    .brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 760; letter-spacing: -.045em; font-size: 1.18rem; line-height: 1.05; }
    .brand-name span { display: block; }
    .bulb { width: 43px; height: 48px; flex: 0 0 auto; object-fit: contain; }
    .nav-right { display: flex; align-items: center; gap: 25px; }
    .nav-links { display: flex; align-items: center; gap: 25px; color: var(--muted); font-size: .91rem; }
    .nav-links a:hover, .footer-links a:hover { color: var(--text); }
    .theme-toggle, .menu-toggle { border: 1px solid var(--border); color: var(--text); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 999px; cursor: pointer; }
    .theme-toggle:hover, .menu-toggle:hover { border-color: var(--blue); }
    .theme-toggle svg { width: 17px; height: 17px; }
    .menu-toggle { display: none; }
    .hero { position: relative; overflow: hidden; padding: 92px 0 78px; border-bottom: 1px solid var(--border); background: radial-gradient(ellipse at 82% 18%, color-mix(in srgb, var(--blue-strong) 17%, transparent), transparent 35%), radial-gradient(ellipse at 8% 88%, color-mix(in srgb, var(--orange) 8%, transparent), transparent 30%); }
    .hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 64px; }
    .eyebrow { margin: 0 0 19px; color: var(--teal); font-size: .76rem; text-transform: uppercase; letter-spacing: .19em; font-weight: 750; }
    h1 { max-width: 720px; margin: 0; font-size: clamp(2.8rem, 5.7vw, 5.15rem); line-height: 1.03; letter-spacing: -.065em; font-weight: 780; }
    .accent-blue { color: var(--blue); }
    .accent-orange { color: var(--orange); }
    .hero-copy { max-width: 580px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); margin: 24px 0 30px; }
    .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 19px; border-radius: 9px; border: 1px solid var(--border); font-weight: 680; font-size: .93rem; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
    .btn:hover { transform: translateY(-2px); border-color: var(--blue); }
    .btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
    .btn-secondary { background: var(--surface); color: var(--text); }
    .btn svg { width: 17px; height: 17px; }
    .hero-art { position: relative; min-height: 360px; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(145deg, var(--surface-raised), var(--surface)); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
    .hero-art:before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 31px 31px; mask-image: linear-gradient(135deg, #000, transparent 80%); border-radius: inherit; }
    .art-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; }
    .status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-right: 7px; box-shadow: 0 0 12px var(--teal); }
    .art-center { display: grid; place-items: center; padding: 12px 0; }
    .big-bulb { width: 160px; height: 180px; object-fit: contain; filter: drop-shadow(0 0 28px color-mix(in srgb, var(--blue) 20%, transparent)); }
    .art-bottom { display: flex; flex-wrap: wrap; gap: 8px; }
    .chip { border: 1px solid var(--border); border-radius: 7px; padding: 5px 9px; color: var(--muted); font-size: .76rem; background: color-mix(in srgb, var(--surface) 82%, transparent); }
    .section { padding: 78px 0; }
    .section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
    .section-head h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.15; letter-spacing: -.045em; margin: 0; }
    .section-head p { color: var(--muted); max-width: 430px; margin: 0; font-size: .96rem; }
    .project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
    .project-card { min-height: 260px; display: flex; flex-direction: column; padding: 23px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
    .project-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--blue) 65%, var(--border)); box-shadow: var(--shadow); }
    .project-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-soft); color: var(--blue); margin-bottom: 20px; }
    .project-icon svg { width: 23px; height: 23px; }
    .project-card h3 { margin: 0 0 8px; font-size: 1.12rem; letter-spacing: -.02em; }
    .project-card p { margin: 0 0 19px; color: var(--muted); font-size: .91rem; }
    .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
    .tag { font-size: .72rem; border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; color: var(--muted); }
    .tag.ai { color: #c4b5fd; border-color: #514080; }
    .tag.hardware { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 50%, var(--border)); }
    .tag.selfhosted { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 50%, var(--border)); }
    html[data-theme="light"] .tag.ai { color: #6d28d9; border-color: #c4b5fd; }
    .placeholder-note { margin-top: 16px; color: var(--faint); font-size: .82rem; }
    .manifesto { padding: 0 0 80px; }
    .manifesto-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
    .manifesto-mark { display: flex; align-items: center; justify-content: center; min-height: 210px; border-radius: 13px; background: var(--surface-soft); }
    .manifesto-mark svg { width: 120px; height: 135px; }
    .manifesto-mark img { display: block; width: 120px; height: 135px; max-width: 100%; object-fit: contain; }
    .manifesto h2 { margin: 0 0 14px; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.05em; }
    .manifesto p { color: var(--muted); margin: 0; max-width: 560px; }
    .values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 25px; }
    .value h3 { font-size: .95rem; margin: 0 0 6px; }
    .value p { font-size: .86rem; }
    .footer { border-top: 1px solid var(--border); padding: 27px 0 34px; }
    .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
    .footer-note { color: var(--faint); font-size: .82rem; }
    .footer-links { display: flex; gap: 20px; color: var(--muted); font-size: .86rem; }
    .footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; }
    .footer-brand .bulb { width: 26px; height: 30px; object-fit: contain; }
    :focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
    @media (max-width: 850px) {
      .hero-grid { grid-template-columns: 1fr; gap: 38px; }
      .hero { padding: 70px 0 60px; }
      .hero-art { min-height: 310px; }
      .project-grid { grid-template-columns: repeat(2, 1fr); }
      .manifesto-panel { grid-template-columns: 1fr; gap: 25px; }
      .manifesto-mark { min-height: 160px; }
      .manifesto-mark svg { width: 90px; height: 105px; }
      .manifesto-mark img { width: 90px; height: 105px; }
    }
    @media (max-width: 620px) {
      .wrap { width: min(var(--max), calc(100% - 30px)); }
      .nav { min-height: 70px; }
      .nav-right { gap: 9px; }
      .nav-links { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; padding: 17px 20px 22px; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); }
      .nav-links.open { display: flex; }
      .nav-links a { padding: 11px 4px; }
      .menu-toggle { display: inline-flex; width: 42px; padding: 0; }
      .theme-toggle .theme-label { display: none; }
      .hero { padding: 57px 0 48px; }
      h1 { font-size: clamp(2.65rem, 12vw, 4.2rem); }
      .hero-art { min-height: 285px; padding: 19px; }
      .big-bulb { width: 125px; height: 145px; }
      .section { padding: 57px 0; }
      .section-head { align-items: start; flex-direction: column; gap: 10px; }
      .project-grid { grid-template-columns: 1fr; }
      .project-card { min-height: 225px; }
      .manifesto { padding-bottom: 57px; }
      .values { grid-template-columns: 1fr; gap: 17px; }
      .footer-inner { align-items: start; flex-direction: column; }
    }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* One-shot game card actions */
.project-card .btn { align-self: flex-start; margin-top: 4px; }

/* Category colours shared by project tags and workshop chips. */
.tag.ai, .chip.ai { color: #a78bfa; border-color: rgba(167, 139, 250, .48); }
.tag.selfhosted, .chip.selfhosted { color: #5eead4; border-color: rgba(94, 234, 212, .48); }
.tag.hardware, .chip.hardware { color: #f59e0b; border-color: rgba(245, 158, 11, .5); }
.tag.software, .chip.software { color: #60a5fa; border-color: rgba(96, 165, 250, .5); }
.tag.poc, .chip.poc { color: #f87171; border-color: rgba(248, 113, 113, .5); }
.tag.docs, .chip.docs { color: #f472b6; border-color: rgba(244, 114, 182, .5); }

/* Keep category labels legible on the light theme as well. */
html[data-theme="light"] .tag.ai,
html[data-theme="light"] .chip.ai { color: #6d28d9; border-color: #c4b5fd; }
html[data-theme="light"] .tag.selfhosted,
html[data-theme="light"] .chip.selfhosted { color: #0f766e; border-color: #99f6e4; }
html[data-theme="light"] .tag.hardware,
html[data-theme="light"] .chip.hardware { color: #b45309; border-color: #fcd34d; }
html[data-theme="light"] .tag.software,
html[data-theme="light"] .chip.software { color: #1d4ed8; border-color: #93c5fd; }
html[data-theme="light"] .tag.poc,
html[data-theme="light"] .chip.poc { color: #b91c1c; border-color: #fca5a5; }
html[data-theme="light"] .tag.docs,
html[data-theme="light"] .chip.docs { color: #be185d; border-color: #f9a8d4; }

/* One-Shots links are styled in the stylesheet, not inline in the HTML. */
.one-shot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: .5rem;
}
.one-shot-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.one-shot-link svg { flex: 0 0 auto; }
.project-tags { margin-top: 1rem; }