/* ============================================================
   BYTSized LLC — shared styles  ·  "Pixel Arcade" theme
   Dark indigo canvas, bold purple / orange / cyan, pixel type,
   blocky 8-bit shapes, hard stamped shadows and CRT scanlines.
   Studiorum green (--studiorum) is reserved for anything that
   links to or references Studiorum — including Clue Countdown.
   ============================================================ */

:root {
  /* Surfaces (dark) */
  --bg:        #161022;
  --bg-2:      #1d1530;
  --surface:   #241a3a;
  --surface-2: #2c2148;
  --line:      #3a2c57;

  /* Text */
  --ink:       #f6eeff;
  --ink-soft:  #cbbce6;
  --muted:     #a79aca;

  /* Brand */
  --primary:        #7c3aed;
  --primary-bright: #a78bfa;
  --primary-deep:   #5b21b6;
  --primary-soft:   rgba(124,58,237,.16);

  --accent:        #ff7a18;
  --accent-bright: #ff9a4d;
  --accent-deep:   #b9510a;
  --accent-soft:   rgba(255,122,24,.16);

  --cyan:        #22d3ee;
  --cyan-soft:   rgba(34,211,238,.15);

  /* Studiorum brand green (reserved) */
  --studiorum:        #16a34a;
  --studiorum-bright: #34d977;
  --studiorum-deep:   #0d5b2b;
  --studiorum-soft:   rgba(52,217,119,.16);

  /* Per-game accents — each taken from the game's own palette */
  --letterkeep: #ff7a18;
  --stackle:    #a78bfa;
  --crossblock: #ffb43f;
  --clue:       var(--studiorum-bright); /* green — it's a Studiorum game */

  /* Blocky 8-bit radii (small, not pill) */
  --radius:     6px;
  --radius-sm:  5px;
  --btn-radius: 6px;

  /* Hard "stamped" shadows */
  --shadow:    6px 6px 0 rgba(0,0,0,.4);
  --shadow-lg: 10px 10px 0 rgba(0,0,0,.45);

  --maxw: 1120px;
  --font:         "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --font-pixel:   "Press Start 2P", var(--font-display);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(70% 55% at 85% -5%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(60% 50% at -5% 5%, rgba(34,211,238,.10), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* CRT scanline overlay + flicker.
   Kept light on purpose: this sits over every word on the site, so a heavy
   overlay costs real text contrast. Tuned to stay above WCAG AA. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.18) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply; opacity: .18;
  animation: crt-flicker 5.5s steps(60) infinite;
}
/* CRT tube vignette / screen curvature illusion */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 50%, transparent 62%, rgba(0,0,0,.34) 100%);
  box-shadow: inset 0 0 120px 24px rgba(0,0,0,.34);
}
@keyframes crt-flicker {
  0%, 100% { opacity: .18; }
  48% { opacity: .18; }
  49% { opacity: .13; }
  50% { opacity: .21; }
  51% { opacity: .15; }
  52% { opacity: .18; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .hero h1::after, .cursor::after { animation: none; }
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }
a  { color: var(--primary-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Visible keyboard focus everywhere — the UA default ring disappears on this canvas */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible { outline-offset: 4px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10001;
  background: var(--cyan); color: #0c1417; font-family: var(--font-display); font-weight: 700;
  padding: .8rem 1.2rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* shared pixel-label look */
.eyebrow, .chip, .game-card .tag, .site-footer h3, .team-card .role {
  font-family: var(--font-pixel);
  letter-spacing: 0; text-transform: uppercase; line-height: 1.5;
}

/* ---------- Buttons (chunky, pressable) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  padding: .72rem 1.3rem; border-radius: var(--btn-radius);
  border: 0; cursor: pointer; text-decoration: none; line-height: 1;
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(3px); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 0 var(--primary-deep); }
.btn-primary:hover { background: #8b4bf3; box-shadow: 0 5px 0 var(--primary-deep); }
.btn-primary:active { box-shadow: 0 1px 0 var(--primary-deep); }

.btn-accent { background: var(--accent); color: #1a1020; box-shadow: 0 4px 0 var(--accent-deep); }
.btn-accent:hover { background: var(--accent-bright); box-shadow: 0 5px 0 var(--accent-deep); }
.btn-accent:active { box-shadow: 0 1px 0 var(--accent-deep); }

.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { color: var(--primary-bright); box-shadow: inset 0 0 0 2px var(--primary-bright); }

.btn-studiorum { background: var(--studiorum); color: #fff; box-shadow: 0 4px 0 var(--studiorum-deep); }
.btn-studiorum:hover { background: #18b352; box-shadow: 0 5px 0 var(--studiorum-deep); }
.btn-studiorum:active { box-shadow: 0 1px 0 var(--studiorum-deep); }

/* Per-game download button — uses the card's --c accent color */
.btn-download { background: var(--c, var(--primary)); color: #16121f; box-shadow: 0 4px 0 color-mix(in srgb, var(--c, var(--primary)) 55%, #000); }
.btn-download:hover { filter: brightness(1.08); box-shadow: 0 5px 0 color-mix(in srgb, var(--c, var(--primary)) 55%, #000); }
.btn-download:active { box-shadow: 0 1px 0 color-mix(in srgb, var(--c, var(--primary)) 55%, #000); }

/* Studiorum link styling — green wherever we point at Studiorum */
.link-studiorum { color: var(--studiorum-bright); font-weight: 600; }
.link-studiorum:hover { color: #5ee896; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22,16,34,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 2px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-pixel); font-size: .95rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
/* pixel space-invader mark */
.brand-mark {
  width: 28px; height: 22px; flex: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2011%208%27%20shape-rendering%3D%27crispEdges%27%3E%3Crect%20x%3D%272%27%20y%3D%270%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%270%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3Crect%20x%3D%277%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3Crect%20x%3D%272%27%20y%3D%272%27%20width%3D%277%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3Crect%20x%3D%271%27%20y%3D%273%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%273%27%20width%3D%273%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%273%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3Crect%20x%3D%270%27%20y%3D%274%27%20width%3D%2711%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3Crect%20x%3D%270%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3Crect%20x%3D%272%27%20y%3D%275%27%20width%3D%277%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3Crect%20x%3D%270%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3Crect%20x%3D%272%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%277%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%277%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%237c3aed%27%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat; background-position: center; background-size: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 8px rgba(124,58,237,.6));
}
.brand .tld { color: var(--muted); font-family: var(--font-pixel); font-size: .62rem; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-display); color: var(--ink-soft); font-weight: 600; font-size: .92rem;
  text-transform: uppercase; letter-spacing: .04em;
  padding: .5rem .8rem .5rem 1.2rem; border-radius: 5px;
  position: relative;
}
.nav-links a::before {
  content: ""; position: absolute; left: .3rem; top: 50%; transform: translateY(-50%);
  width: 5px; height: 9px; background: var(--accent);
  opacity: 0; image-rendering: pixelated;
}
.nav-links a:hover { color: var(--ink); background: none; text-decoration: none; }
.nav-links a:hover::before { opacity: 1; animation: blink 1.05s steps(1) infinite; }
.nav-cta a::before { display: none; }
.nav-links a.active { color: var(--primary-bright); }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; border-bottom: 2px solid var(--line); box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(124,58,237,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.08) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(80% 70% at 30% 10%, #000 35%, transparent 75%);
          mask-image: radial-gradient(80% 70% at 30% 10%, #000 35%, transparent 75%);
}
.hero h1 { text-shadow: 0 0 28px rgba(124,58,237,.45); }
.hero h1::after, .cursor::after { content: "_"; color: var(--cyan); animation: blink 1.05s steps(1) infinite; margin-left: .06em; }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .62rem; font-weight: 400;
  color: var(--accent-bright); background: var(--accent-soft);
  padding: .55rem .8rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem;
  box-shadow: inset 0 0 0 2px rgba(255,122,24,.4);
}
.hero p.lead { font-size: 1.2rem; max-width: 640px; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.lead { font-size: 1.12rem; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-tint { background: var(--bg-2); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: .9rem; }
.section-head.center .eyebrow { display: inline-flex; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover { transform: translate(-2px, -2px); border-color: var(--primary); box-shadow: 8px 8px 0 var(--primary-deep); }

.card-studiorum { border-color: rgba(52,217,119,.5); }
.card-studiorum:hover { border-color: var(--studiorum-bright); box-shadow: 8px 8px 0 var(--studiorum-deep); }
.card-studiorum .chip { background: var(--studiorum-soft); color: var(--studiorum-bright); box-shadow: inset 0 0 0 2px rgba(52,217,119,.5); }

.chip {
  display: inline-block; font-size: .6rem; font-weight: 400;
  padding: .45rem .6rem; border-radius: var(--radius-sm);
  background: var(--primary-soft); color: var(--primary-bright);
  box-shadow: inset 0 0 0 2px rgba(124,58,237,.5); margin-bottom: 1rem;
}

/* Game cards with per-game accent via --c */
.game-card { display: flex; flex-direction: column; }
.game-card .game-icon {
  width: 56px; height: 56px; border-radius: 8px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 1rem;
  background: var(--c, var(--primary));
  box-shadow: 4px 4px 0 rgba(0,0,0,.35), 0 0 22px color-mix(in srgb, var(--c, var(--primary)) 45%, transparent);
}
.game-card .tag {
  align-self: flex-start; font-size: .58rem; font-weight: 400;
  padding: .42rem .6rem; border-radius: var(--radius-sm);
  color: var(--c, var(--primary-bright));
  background: color-mix(in srgb, var(--c, var(--primary)) 16%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c, var(--primary)) 50%, transparent);
  margin-bottom: 1rem;
}
.game-card h3 { margin-bottom: .4rem; }
.game-card .meta { margin-top: auto; padding-top: 1rem; font-size: .85rem; color: var(--muted); }

/* Pixel-art sprites (8-bit game icons) */
.sprite {
  display: inline-block; width: 32px; height: 32px;
  background-repeat: no-repeat; background-position: center; background-size: contain;
  image-rendering: pixelated;
}
.panel-mark .sprite { width: 76px; height: 76px; margin: 0 auto .6rem; }

/* Feature list — pixel bullets */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.feature-list li { display: flex; gap: .7rem; color: var(--ink-soft); }
.feature-list li::before { content: "■"; color: var(--cyan); font-size: .7em; line-height: 1.7; }

/* ---------- Split / media rows ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.panel {
  border-radius: var(--radius); padding: 40px; min-height: 280px;
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden; border: 2px solid rgba(255,255,255,.12);
}
.panel-studiorum { background: linear-gradient(150deg, #0a3a22, var(--studiorum)); color: #fff; }
.panel-brand { background: linear-gradient(150deg, var(--primary), var(--accent)); color: #fff; }
.panel .panel-mark { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; text-align: center; line-height: 1.05; }
.panel .panel-mark small { display: block; font-family: var(--font); font-size: .95rem; font-weight: 500; opacity: .85; letter-spacing: 0; margin-top: .5rem; }

/* ---------- Team ---------- */
.founder-card { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: center; padding: 40px; }
.founder-card .founder-photo { display: grid; place-items: center; }
.founder-card .avatar-lg { width: 200px; height: 200px; margin: 0; border-radius: 14px; font-size: 3.6rem; box-shadow: 8px 8px 0 rgba(0,0,0,.35); }
.founder-card .founder-img { width: 100%; max-width: 240px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; border: 2px solid var(--line); box-shadow: 8px 8px 0 rgba(0,0,0,.35); }
/* lined placeholder shown until a real photo is added */
.founder-ph {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(0deg, rgba(167,139,250,.10) 0 2px, transparent 2px 8px),
    linear-gradient(150deg, var(--surface-2), var(--surface));
}
.founder-ph::after { content: "BT"; font-family: var(--font-pixel); font-size: 1.6rem; color: var(--primary-bright); text-shadow: 0 0 14px rgba(124,58,237,.6); }
.founder-card h2 { margin-bottom: .25rem; }
.founder-card .role { font-size: .82rem; margin-bottom: 1rem; }
.founder-card .hero-actions { margin-top: 1.4rem; }
@media (max-width: 720px) {
  .founder-card { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .founder-card .avatar-lg { margin: 0 auto; }
}

.team-card { text-align: center; }
.avatar {
  width: 92px; height: 92px; border-radius: 8px; margin: 0 auto 1rem;
  display: grid; place-items: center; font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 5px 5px 0 rgba(0,0,0,.35);
}
img.avatar { background: none; object-fit: cover; }
.team-card .role { color: var(--accent-bright); font-size: .58rem; margin: 0 0 .7rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #b23bd8 55%, var(--accent) 120%);
  color: #fff; border-radius: var(--radius); padding: 52px; text-align: center;
  box-shadow: var(--shadow-lg); border: 2px solid rgba(255,255,255,.18);
}
.cta-banner h2 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.cta-banner p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 1.6rem; }
.cta-banner .btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.cta-banner .btn-ghost:hover { color: #fff; box-shadow: inset 0 0 0 2px #fff; background: rgba(255,255,255,.12); }
.cta-banner .btn-light { background: #fff; color: var(--primary); box-shadow: 0 4px 0 rgba(0,0,0,.28); }
.cta-banner .btn-light:hover { background: #f3ebff; box-shadow: 0 5px 0 rgba(0,0,0,.28); }
.cta-banner .btn-light:active { box-shadow: 0 1px 0 rgba(0,0,0,.28); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 560px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink);
  padding: .72rem .9rem; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary-bright);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select option { color: #111; }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  padding: 72px 0 48px; position: relative; overflow: hidden;
  border-bottom: 2px solid var(--line);
  box-shadow: 0 6px 0 rgba(0,0,0,.25);
  margin-bottom: 24px;
}
/* faint grid lines (like the hero) + glow on every page header */
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(60% 90% at 12% 0%, rgba(124,58,237,.22) 0%, transparent 60%),
    linear-gradient(rgba(124,58,237,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.08) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--line); background: #120c1d; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 60px 0 32px; }
.site-footer h3 { font-size: .6rem; color: var(--muted); margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer ul a { color: var(--ink-soft); font-size: .95rem; }
.site-footer ul a:hover { color: var(--primary-bright); }
.footer-bottom { border-top: 2px solid var(--line); padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); }

/* ---------- Status badges ----------
   Every project carries an honest status. Nothing on this site claims to be
   shipped when it isn't. */
.status {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-pixel); font-size: .52rem; font-weight: 400;
  text-transform: uppercase; line-height: 1;
  padding: .5rem .6rem; border-radius: var(--radius-sm);
}
.status::before { content: "●"; font-family: var(--font); font-size: .7rem; line-height: 0; }
.status-live { color: #6ee7a4; background: rgba(52,217,119,.14); box-shadow: inset 0 0 0 2px rgba(52,217,119,.45); }
.status-play { color: var(--cyan); background: var(--cyan-soft); box-shadow: inset 0 0 0 2px rgba(34,211,238,.45); }
.status-soon { color: var(--accent-bright); background: var(--accent-soft); box-shadow: inset 0 0 0 2px rgba(255,122,24,.45); }
.status-dev  { color: var(--muted); background: rgba(167,154,202,.12); box-shadow: inset 0 0 0 2px rgba(167,154,202,.35); }

/* ---------- Project cards (the hub) ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj-card { display: flex; flex-direction: column; }
.proj-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.proj-logo {
  width: 60px; height: 60px; flex: none; border-radius: 12px;
  object-fit: cover; background: var(--surface-2);
  box-shadow: 4px 4px 0 rgba(0,0,0,.35);
}
.proj-logo-contain { object-fit: contain; padding: 6px; }
/* Product logos that ship on their own light background read as app tiles:
   square, rounded, hard-shadowed to match the card treatment. */
.logo-tile {
  border-radius: 18px; object-fit: cover; aspect-ratio: 1;
  box-shadow: 6px 6px 0 rgba(0,0,0,.35);
}
/* Warm plate for the Stowaway mark, which is transparent art in tans and
   oranges — it needs a light ground to read on this canvas. */
.tile-cream { background: #F9F0E2; }
/* Studiorum's wordmark is dark green on transparent — it needs a light plate here. */
.wordmark-plate {
  background: #f4f2ec; border-radius: 10px; padding: 12px 18px;
  margin: 0 0 1.1rem; box-shadow: 5px 5px 0 rgba(0,0,0,.35);
}
.proj-card h3 { margin: 0 0 .35rem; }
.proj-card > p { flex: 1; }
.proj-tech {
  font-family: var(--font-display); font-size: .78rem; color: var(--muted);
  letter-spacing: .03em; text-transform: uppercase; margin: 0 0 1rem;
}
.proj-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: .4rem; }
.proj-actions .btn { font-size: .88rem; padding: .6rem 1rem; }

/* ---------- Screenshot frames ---------- */
.shot {
  width: 100%; height: auto; border-radius: var(--radius); border: 2px solid var(--line);
  box-shadow: var(--shadow); background: var(--surface-2);
}
.shot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Product logo used as the hero mark on a split panel */
.panel-logo { max-width: 200px; margin: 0 auto 1.2rem; }
.panel-plain {
  background: var(--surface); border: 2px solid var(--line);
  display: grid; place-items: center; text-align: center;
}

/* Game icon becomes a real image slot */
.game-card .game-icon { overflow: hidden; padding: 0; }
.game-card .game-icon img { width: 100%; height: 100%; object-fit: cover; }
.game-icon-plain { background: none !important; box-shadow: 4px 4px 0 rgba(0,0,0,.35) !important; }

/* Stat row (was an inline grid-template that beat the breakpoints) */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-grid .card { padding: 20px; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--studiorum-bright); line-height: 1.1; }
.stat-label { font-family: var(--font-pixel); font-size: .55rem; color: var(--ink-soft); margin-top: .5rem; text-transform: uppercase; line-height: 1.5; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }
.stack-sm > * + * { margin-top: .5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 2px solid var(--line);
    padding: 10px 16px 18px; box-shadow: var(--shadow-lg); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem 1.2rem .85rem .6rem; border-radius: 5px; }
  .nav-links a::before { left: auto; right: .3rem; }
  .nav-cta { margin: .5rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .proj-grid, .shot-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner, .panel { padding: 32px 22px; }
  .hero { padding: 64px 0 48px; }
}

/* >>> sprites */
.sprite-a { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2016%2016%27%20shape-rendering%3D%27crispEdges%27%3E%3Crect%20x%3D%275%27%20y%3D%272%27%20width%3D%274%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%273%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%273%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%274%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%274%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%275%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%275%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%276%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%276%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%277%27%20width%3D%278%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%278%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%278%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%272%27%20y%3D%279%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%279%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%272%27%20y%3D%2710%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%2710%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%272%27%20y%3D%2711%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%2711%27%20width%3D%272%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E"); }
.sprite-stack { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2017%2016%27%20shape-rendering%3D%27crispEdges%27%3E%3Crect%20x%3D%273%27%20y%3D%272%27%20width%3D%279%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%273%27%20width%3D%279%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%274%27%20width%3D%279%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%272%27%20y%3D%276%27%20width%3D%2711%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%272%27%20y%3D%277%27%20width%3D%2711%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%272%27%20y%3D%278%27%20width%3D%2711%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%2710%27%20width%3D%279%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%2711%27%20width%3D%279%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%2712%27%20width%3D%279%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E"); }
.sprite-hourglass { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2017%2016%27%20shape-rendering%3D%27crispEdges%27%3E%3Crect%20x%3D%271%27%20y%3D%271%27%20width%3D%2713%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%271%27%20y%3D%272%27%20width%3D%2713%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%272%27%20y%3D%273%27%20width%3D%2711%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%274%27%20width%3D%279%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%275%27%20width%3D%277%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%276%27%20width%3D%275%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%277%27%20width%3D%273%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%278%27%20width%3D%273%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%279%27%20width%3D%275%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%2710%27%20width%3D%277%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%2711%27%20width%3D%279%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%272%27%20y%3D%2712%27%20width%3D%2711%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%271%27%20y%3D%2713%27%20width%3D%2713%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%271%27%20y%3D%2714%27%20width%3D%2713%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E"); }
/* <<< sprites */
