/* ==========================================================================
   R0bH — site styles
   Palette and shapes follow the R0bH logo: warm charcoal, green-to-blue gradient,
   diagonal strokes. Exo 2 (SIL OFL) is self-hosted for headings.
   No external fonts or CDNs: everything is self-contained.
   ========================================================================== */

:root {
  /* palette taken from the R0bH logo: warm charcoal + green-to-blue gradient */
  --bg: #0e0c0d;
  --bg-2: #151213;
  --card: #191617;
  --card-2: #211d1e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #ecebec;
  --muted: #a39fa0;
  --dim: #766f71;
  --g: #0cea92;
  --b: #07b6eb;
  --accent: #0ddaa2;
  --accent-2: #8af5d6;
  --glow: rgba(13, 218, 162, 0.2);
  --grad: linear-gradient(100deg, var(--g), var(--b));
  --red: #ff6b6b;
  --green: #4cc38a;

  --display: "Exo 2", "Bahnschrift", "Segoe UI Variable Display", system-ui, sans-serif;
  --font: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@font-face {
  font-family: "Exo 2";
  src: url("../assets/fonts/exo2.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
::selection { background: var(--accent); color: #111; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---- atmosphere ---------------------------------------------------------- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(820px 520px at 84% -10%, rgba(7, 182, 235, 0.17), transparent 70%),
    radial-gradient(780px 520px at 8% -6%, rgba(12, 234, 146, 0.15), transparent 70%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: repeating-linear-gradient(118deg, rgba(255,255,255,0.032) 0 1px, transparent 1px 46px);
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 15%, transparent 75%);
          mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 15%, transparent 75%);
}

.container { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }

/* ---- typography ---------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.012em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: -0.025em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.grad {
  background: linear-gradient(100deg, #fff 0%, var(--g) 45%, var(--b) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
code, kbd, samp {
  font-family: var(--mono); font-size: 0.88em;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line);
  padding: 0.12em 0.45em; border-radius: 6px;
}
kbd { border-bottom-width: 2px; }
pre {
  margin: 0 0 1em; padding: 16px 18px; overflow-x: auto;
  font-family: var(--mono); font-size: 0.86rem; line-height: 1.6;
  background: #0c0a0b; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: #d8d4c8;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

/* ---- header -------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 68px;
  display: flex; align-items: center;
  background: rgba(14, 12, 13, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--muted); font-size: 0.95rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.06); }
.nav .btn { margin-left: 8px; padding: 9px 18px; font-size: 0.92rem; color: #04130d; }
.nav .btn:hover { color: #04130d; background: var(--grad); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }

@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 24px 20px;
    background: rgba(14, 12, 13, 0.96); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; text-align: center; justify-content: center; }
}

/* ---- buttons / badges ---------------------------------------------------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.1; cursor: pointer;
  color: #04130d;
  background: var(--grad);
  box-shadow: 0 0 0 1px rgba(138, 245, 214, 0.35) inset, 0 10px 34px -10px rgba(7, 182, 235, 0.7);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
}
.btn:hover { color: #04130d; transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(138, 245, 214, 0.5) inset, 0 16px 44px -10px rgba(7, 182, 235, 0.85); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.ghost {
  color: var(--text); background: rgba(255,255,255,0.04); border-color: var(--line-2); box-shadow: none;
}
.btn.ghost:hover { color: var(--text); background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.3); box-shadow: none; }
.btn.small { padding: 10px 18px; font-size: 0.92rem; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; filter: grayscale(0.6); }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.02em;
  color: var(--muted); padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.03);
}
.badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.badge.dev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f5a524; box-shadow: 0 0 10px #f5a524; }
.badge.amber { color: var(--accent-2); border-color: rgba(13, 218, 162,0.4); background: rgba(13, 218, 162,0.08); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- hero ---------------------------------------------------------------- */
.hero { padding: 150px 0 40px; position: relative; }
.hero-grid { display: grid; gap: 56px; justify-items: center; text-align: center; }
.hero-copy { max-width: 860px; }
.hero-copy .lead { margin-inline: auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.hero .badges { justify-content: center; margin-bottom: 26px; }
.hero-note { margin-top: 18px; font-size: 0.86rem; color: var(--dim); font-family: var(--mono); }

.stage { position: relative; width: min(1080px, 100%); perspective: 1600px; }
.stage::before {
  content: ""; position: absolute; inset: 8% 6% -6%; z-index: -1;
  background: radial-gradient(60% 60% at 50% 50%, rgba(13, 218, 162,0.35), transparent 70%);
  filter: blur(50px); opacity: 0.8;
}
.stage-inner {
  transform-style: preserve-3d; transition: transform .5s var(--ease);
  will-change: transform;
}
.stage img, .shot img {
  border-radius: 22px;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.07);
}
.stage .reflect {
  height: 90px; margin-top: -2px;
  background: linear-gradient(180deg, rgba(8,8,10,0) 0%, var(--bg) 100%);
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
}

/* ---- sections ------------------------------------------------------------ */
.section { padding: 110px 0; position: relative; }
.section.tight { padding: 70px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---- project cards ------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
}
.card::after { /* spotlight following the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(13, 218, 162,0.12), transparent 60%);
}
.card:hover { transform: translateY(-5px); border-color: rgba(13, 218, 162,0.4); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8), 0 0 40px -12px var(--glow); }
.card:hover::after { opacity: 1; }
.card-media { aspect-ratio: 16 / 10; background: #0c0a0b; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .badges { margin: 4px 0 22px; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- feature bento ------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
  grid-column: span 2;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  position: relative; overflow: hidden; transition: border-color .3s, transform .35s var(--ease);
}
.tile:hover { border-color: rgba(13, 218, 162,0.35); transform: translateY(-3px); }
.tile.wide { grid-column: span 3; }
.tile.full { grid-column: span 6; }
.tile h3 { margin-bottom: 10px; }
.tile p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.tile .ico {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 20px;
  display: grid; place-items: center; color: var(--accent);
  background: rgba(13, 218, 162,0.1); border: 1px solid rgba(13, 218, 162,0.28);
}
.tile .ico svg { width: 24px; height: 24px; }
.tile::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 218, 162,0.1), transparent 70%); pointer-events: none;
}
@media (max-width: 980px) { .tile, .tile.wide { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide, .tile.full { grid-column: auto; } }

/* ---- principles (home) --------------------------------------------------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }
.principle { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.principle .num { font-family: var(--mono); color: var(--accent); font-size: 0.82rem; letter-spacing: 0.1em; margin-bottom: 14px; display: block; }
.principle p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---- download card ------------------------------------------------------- */
.dl {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  border-radius: 22px; overflow: hidden; border: 1px solid rgba(13, 218, 162,0.32);
  background: linear-gradient(135deg, rgba(13, 218, 162,0.09), rgba(255,255,255,0.015) 40%), var(--card);
  box-shadow: 0 40px 90px -40px rgba(13, 218, 162,0.3);
}
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; } }
.dl-main { padding: 40px; }
.dl-side { padding: 40px; background: rgba(0,0,0,0.28); border-left: 1px solid var(--line); }
@media (max-width: 900px) { .dl-side { border-left: 0; border-top: 1px solid var(--line); } }
.dl-main h3 { font-size: 1.7rem; }
.dl-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; margin: 26px 0 30px; }
.dl-meta div { border-left: 2px solid rgba(13, 218, 162,0.5); padding-left: 14px; }
.dl-meta dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.dl-meta dd { margin: 2px 0 0; font-weight: 650; }
.dl-files { display: grid; gap: 12px; }
.dl-file { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dl-file small { color: var(--dim); font-family: var(--mono); display: block; margin-top: 8px; }
.dl-warn { margin-top: 20px; font-size: 0.9rem; color: var(--accent-2); background: rgba(13, 218, 162,0.08); border: 1px solid rgba(13, 218, 162,0.25); padding: 12px 16px; border-radius: var(--radius-sm); }
.dl-side h4 { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.checks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; font-size: 0.97rem; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  background: rgba(76,195,138,0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234cc38a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---- callout ------------------------------------------------------------- */
.callout {
  border-left: 3px solid var(--accent); background: rgba(13, 218, 162,0.07);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.4em; font-size: 0.97rem;
}
.callout strong:first-child { display: block; color: var(--accent-2); margin-bottom: 2px; }
.callout p:last-child { margin: 0; }

/* ---- tabs + screenshots -------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.tab {
  font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  color: var(--muted); background: rgba(255,255,255,0.03); border: 1px solid var(--line-2);
  padding: 10px 20px; border-radius: 999px; transition: all .2s;
}
.tab:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }
.tab[aria-selected="true"] { color: #04130d; background: var(--grad); border-color: transparent; }
.tab-panel { display: none; }
.tab-panel.active { display: grid; gap: 28px; justify-items: center; animation: fade .5s var(--ease); }
.tab-panel .shot { width: min(1000px, 100%); }
.tab-panel .shot.narrow { width: min(460px, 100%); }
.tab-panel .shot img { width: 100%; cursor: zoom-in; }
.tab-panel p.cap { color: var(--muted); text-align: center; max-width: 62ch; margin: 0; }
.gallery-duo { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.gallery-duo img { width: min(430px, 100%); border-radius: 14px; cursor: zoom-in; box-shadow: 0 30px 70px -30px #000, 0 0 0 1px rgba(255,255,255,.08); }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 28px;
  background: rgba(4,4,6,0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: zoom-out;
}
.lightbox.open { display: grid; animation: fade .25s; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 40px 120px #000; }

/* ---- steps --------------------------------------------------------------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: s; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.02); }
.step::before { content: "0" counter(s); font-family: var(--mono); font-size: 2.2rem; font-weight: 700; color: var(--accent); display: block; margin-bottom: 10px; opacity: 0.9; }
.step p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---- faq ----------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
details.q { border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,0.02); transition: border-color .2s, background .2s; }
details.q[open] { border-color: rgba(13, 218, 162,0.35); background: rgba(13, 218, 162,0.04); }
details.q summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; font-family: var(--mono); font-size: 1.4rem; color: var(--accent); transition: transform .25s; line-height: 1; }
details.q[open] summary::after { transform: rotate(45deg); }
details.q .a { padding: 0 22px 20px; color: var(--muted); font-size: 0.98rem; }
details.q .a > :last-child { margin-bottom: 0; }

/* ---- project hero -------------------------------------------------------- */
.p-hero { padding: 140px 0 30px; }
.p-logo {
  width: min(340px, 70%); margin: 0 auto 28px;
  -webkit-mask-image: radial-gradient(ellipse 74% 74% at 50% 50%, #000 66%, transparent 100%);
          mask-image: radial-gradient(ellipse 74% 74% at 50% 50%, #000 66%, transparent 100%);
}
.p-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.p-hero .lead { margin-inline: auto; }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
  text-align: center; padding: 70px 30px; border-radius: 26px; position: relative; overflow: hidden;
  border: 1px solid rgba(13, 218, 162,0.3);
  background: radial-gradient(70% 120% at 50% 0%, rgba(13, 218, 162,0.18), transparent 70%), var(--card);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 56ch; margin: 0 auto 28px; }
.cta-band .hero-cta { margin: 0; }

/* ---- docs ---------------------------------------------------------------- */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 130px; align-items: start; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 96px; font-size: 0.93rem; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 8px; }
@media (max-width: 900px) { .toc { position: static; max-height: none; } }
.toc h4 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--muted); border-left: 1px solid var(--line-2); transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--accent-2); border-left-color: var(--accent); }
.doc { max-width: 78ch; min-width: 0; }
.doc h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.doc h2 { font-size: 1.8rem; margin-top: 2.6em; padding-top: 0.2em; }
.doc h3 { margin-top: 1.8em; color: var(--accent-2); font-size: 1.15rem; }
.doc p, .doc li { color: #cfcbc2; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.doc li { margin-bottom: 0.4em; }
.doc img { border-radius: 14px; margin: 1.4em 0; box-shadow: 0 30px 70px -30px #000, 0 0 0 1px rgba(255,255,255,.08); }
.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: rgba(255,255,255,0.03); }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; font-weight: 600; color: var(--text); }

/* ---- footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 56px 0 44px; background: rgba(0,0,0,0.35); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px; }
.foot p { color: var(--dim); font-size: 0.92rem; margin: 10px 0 0; max-width: 38ch; }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-links h4 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.foot-links a { display: block; color: var(--muted); padding: 3px 0; font-size: 0.95rem; }
.foot-links a:hover { color: var(--accent-2); }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--dim); font-size: 0.85rem; font-family: var(--mono); }

/* ---- 404 ----------------------------------------------------------------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 24px; }
.nf .big { font-family: var(--mono); font-size: clamp(5rem, 18vw, 11rem); font-weight: 800; line-height: 1; letter-spacing: -0.06em; }

/* ---- reveal on scroll ---------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .hero { padding-top: 120px; }
  .dl-main, .dl-side { padding: 28px 24px; }
}


/* ==========================================================================
   Logo-based branding
   ========================================================================== */
.brand { gap: 12px; }
.brand .mark { height: 30px; width: auto; }
.brand .word { height: 19px; width: auto; }
.hero-logo {
  width: min(380px, 80%); margin: 0 auto 30px;
  filter: drop-shadow(0 0 46px rgba(12, 234, 146, 0.22)) drop-shadow(0 0 70px rgba(7, 182, 235, 0.16));
}
.grad-line { height: 1px; background: linear-gradient(90deg, transparent, var(--g), var(--b), transparent); opacity: .5; border: 0; margin: 0; }
.btn.ghost:hover { border-color: rgba(13, 218, 162, 0.6); }
.tile .ico { color: var(--accent); }

/* ==========================================================================
   Fix The Hub (Commodore 64) components
   ========================================================================== */
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.crt { position: relative; padding: 14px; border-radius: 24px; background: #060506; border: 1px solid var(--line-2); box-shadow: 0 50px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04) inset; }
.crt img { border-radius: 8px; box-shadow: none; width: 100%; height: auto; }
.crt::after { /* scanlines */
  content: ""; position: absolute; inset: 14px; border-radius: 8px; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.2) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.stage .crt img { box-shadow: none; }
.fth-title { width: min(720px, 92%); margin: 0 auto 26px; filter: drop-shadow(0 0 40px rgba(12,234,146,.25)); }

.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; margin: 34px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: .84rem; color: var(--muted); }
.facts b { color: var(--text); font-family: var(--display); font-size: 1.6rem; display: block; line-height: 1.1; }
.facts li { text-align: center; }

.parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.part { display: flex; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.part img { flex: none; height: 72px; width: auto; border-radius: 6px; }
.part h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; color: var(--accent-2); }
.part p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }

.ranks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .ranks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ranks { grid-template-columns: 1fr; } }
.rank { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--card-2), var(--card)); position: relative; overflow: hidden; }
.rank::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--rc, var(--accent)); }
.rank .rn { font-family: var(--mono); font-weight: 700; font-size: 1.5rem; letter-spacing: .08em; color: var(--rc, var(--accent)); display: block; margin-bottom: 4px; }
.rank small { font-family: var(--mono); color: var(--dim); letter-spacing: .1em; font-size: .72rem; }
.rank p { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
.shots .crt { padding: 9px; border-radius: 16px; }
.shots .crt::after { inset: 9px; }
.shots img { cursor: zoom-in; }
.shots .crt { transition: transform .3s var(--ease), border-color .3s; }
.shots .crt:hover { transform: translateY(-4px); border-color: rgba(13,218,162,.5); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split h2 { margin-bottom: .4em; }
.split p { color: var(--muted); }
.split .checks { margin-bottom: 0; }

.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.keys li { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .96rem; }
.keys kbd { flex: none; min-width: 3.4em; text-align: center; color: var(--text); }

.tile > img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 18px; border: 1px solid var(--line); }
.lightbox img.pixel { width: min(100%, 1280px); }
.fth-title { mix-blend-mode: lighten; filter: none; }
.dl-files small { display: block; margin-top: 8px; color: var(--dim); font-family: var(--mono); font-size: .8rem; }


/* ==========================================================================
   Project showcase rows (home page) + floating cover
   ========================================================================== */
.showcase { display: grid; gap: 28px; }
.show {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease);
}
.show.portrait { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); }
.show.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
.show.flip.portrait { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); }
.show.flip .show-media { order: 2; border-right: 0; border-left: 1px solid var(--line); }
.show::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(13, 218, 162, 0.09), transparent 60%);
}
.show:hover { border-color: rgba(13, 218, 162, 0.4); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 60px -20px var(--glow); }
.show:hover::after { opacity: 1; }
.show-media {
  position: relative; display: grid; place-items: center; overflow: hidden;
  padding: 40px; min-height: 440px; border-right: 1px solid var(--line); background: #0a0809;
}
.show-bg { /* blurred copy of the artwork as backdrop */
  position: absolute; inset: -50px; background-size: cover; background-position: center;
  filter: blur(38px) saturate(1.35) brightness(.5); opacity: .85; transform: scale(1.1);
}
.show-media img {
  position: relative; width: 100%; height: auto; max-height: 540px; object-fit: contain; border-radius: 14px;
  box-shadow: 0 34px 80px -20px #000, 0 0 0 1px rgba(255,255,255,.12);
  transition: transform .7s var(--ease);
}
.show.portrait .show-media img { width: auto; max-width: min(100%, 340px); }
.show:hover .show-media img { transform: scale(1.035) rotate(-.5deg); }
.show-body { position: relative; padding: 48px; display: flex; flex-direction: column; justify-content: center; z-index: 1; }
.show-body .card-top { justify-content: flex-start; }
.show-body h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }
.show-body p { color: var(--muted); }
.show-body .show-tag { color: var(--accent-2); font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin-bottom: 14px; }
.show-body .badges { margin: 6px 0 28px; }
@media (max-width: 860px) {
  .show, .show.portrait, .show.flip, .show.flip.portrait { grid-template-columns: 1fr; }
  .show.flip .show-media { order: 0; border-left: 0; }
  .show-media { min-height: 0; padding: 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .show.portrait .show-media img { max-width: min(100%, 280px); }
  .show-body { padding: 30px 26px 34px; }
}


.boxart { width: 150px; height: auto; margin: 0 0 26px; border-radius: 8px; box-shadow: 0 24px 50px -16px #000, 0 0 0 1px rgba(255,255,255,.14), 0 0 50px -12px rgba(7,182,235,.45); }
.show-body .card-actions { margin-top: 4px; }

/* ==========================================================================
   Home hero without picture, project kind label, legal pages
   ========================================================================== */
.hero { padding-bottom: 20px; }
.hero-platforms { list-style: none; margin: 4px auto 0; padding: 0; display: grid; gap: 10px; justify-items: center; font-family: var(--mono); font-size: clamp(.82rem, 1.5vw, .98rem); color: var(--muted); }
.hero-platforms li { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; justify-content: center; }
.hero-platforms span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(13,218,162,.35); border-radius: 999px; padding: 2px 10px; }
.show-kind { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 10px; }
.show-kind::before { content: ""; width: 22px; height: 1px; background: var(--accent); }

.legal { padding-top: 130px; max-width: 880px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.licence-text { white-space: pre-wrap; word-wrap: break-word; font-size: .84rem; line-height: 1.65; padding: 26px 28px; color: #d9d6d8; }
.legal ul { color: var(--muted); padding-left: 1.2em; }
.legal ul li { margin-bottom: .35em; }
.hero .hero-copy { max-width: 1000px; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }

/* ==========================================================================
   Contact form
   ========================================================================== */
.form { display: grid; gap: 22px; margin-top: 30px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 170px; line-height: 1.55; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13, 218, 162, .18); }
.field [aria-invalid="true"] { border-color: var(--red); }
.hint { margin: 8px 0 0; font-size: .86rem; color: var(--dim); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: .96rem; }
.form-status.ok { color: var(--accent-2); }
.form-status.error { color: var(--red); }
.form-status.info { color: var(--muted); }
.privacy { margin: 6px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--dim); }

.nf-title { font-size: 2rem; letter-spacing: -0.01em; }
