:root {
  --bbs-bg: #020706;
  --bbs-panel: #06100e;
  --bbs-panel-2: #091713;
  --bbs-ink: #effff7;
  --bbs-muted: #87aa9b;
  --bbs-cyan: #18b7ff;
  --bbs-cyan-2: #65d1ff;
  --bbs-lime: #9cff38;
  --bbs-green: #39ff88;
  --bbs-yellow: #ffd84d;
  --bbs-magenta: #ff2d9f;
  --bbs-line: rgba(101, 209, 255, .3);
  --bbs-line-soft: rgba(101, 209, 255, .14);
  --bbs-page-accent: var(--bbs-cyan);
  --bbs-page-hot: var(--bbs-lime);
  --bbs-mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

body[data-bbs-page="neonpocket"] { --bbs-page-accent: var(--bbs-magenta); --bbs-page-hot: var(--bbs-lime); }
body[data-bbs-page="deskos"] { --bbs-page-accent: var(--bbs-cyan-2); --bbs-page-hot: var(--bbs-yellow); }
body[data-bbs-page="meshcore"] { --bbs-page-accent: var(--bbs-green); --bbs-page-hot: var(--bbs-lime); }
body[data-bbs-page="meshtastic"] { --bbs-page-accent: #ffad42; --bbs-page-hot: var(--bbs-lime); }

* { box-sizing: border-box; }
html { min-width: 0; overflow-x: clip; scroll-behavior: smooth; }
body {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  isolation: isolate;
  color: var(--bbs-ink);
  background:
    linear-gradient(rgba(24, 183, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 183, 255, .035) 1px, transparent 1px),
    radial-gradient(circle at 78% -10%, rgba(24, 183, 255, .13), transparent 29rem),
    radial-gradient(circle at -8% 46%, rgba(57, 255, 136, .08), transparent 30rem),
    var(--bbs-bg);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  font-family: var(--bbs-mono);
}
.bbs-ambient {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .5;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--bbs-page-hot) 70%, transparent) 0 1px, transparent 2px) 13px 7px / 157px 131px,
    radial-gradient(circle, color-mix(in srgb, var(--bbs-page-accent) 65%, transparent) 0 1px, transparent 2px) 62px 41px / 211px 173px;
  mask-image: linear-gradient(to bottom, #000 0 72%, transparent 98%);
  animation: bbs-field-drift 22s linear infinite;
}
.bbs-ambient::before,
.bbs-ambient::after {
  position: absolute;
  content: "";
}
.bbs-ambient::before {
  inset: -35%;
  opacity: .13;
  background: conic-gradient(from 45deg, transparent, var(--bbs-page-accent), transparent 28%, var(--bbs-page-hot), transparent 60%);
  filter: blur(75px);
  animation: bbs-aurora 28s linear infinite;
}
.bbs-ambient::after {
  top: -25%;
  bottom: -25%;
  left: -18%;
  width: 20%;
  opacity: .1;
  background: linear-gradient(90deg, transparent, var(--bbs-page-accent), transparent);
  filter: blur(18px);
  transform: skewX(-18deg);
  animation: bbs-band-pass 13s ease-in-out infinite;
}
main, .bbs-footer { position: relative; z-index: 1; }
body::after {
  position: fixed;
  z-index: 100;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .07;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(156, 255, 56, .22) 4px);
  animation: bbs-scan 15s linear infinite;
}
img { max-width: 100%; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--bbs-yellow);
  outline-offset: 3px;
}

.bbs-shell {
  width: min(calc(100% - 32px), 1180px);
  min-width: 0;
  margin-inline: auto;
}
.bbs-skip {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 9px 12px;
  border: 1px solid var(--bbs-yellow);
  color: #071008;
  background: var(--bbs-yellow);
  font-size: .72rem;
  font-weight: 900;
  text-decoration: none;
  transform: translateY(-160%);
}
.bbs-skip:focus { transform: none; }

.bbs-top {
  position: sticky;
  z-index: 80;
  top: 0;
  border-bottom: 1px solid var(--bbs-line);
  background: rgba(2, 7, 6, .94);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .36);
  backdrop-filter: blur(12px);
}
.bbs-top::after {
  position: absolute;
  bottom: -1px;
  left: -36%;
  width: 36%;
  height: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--bbs-page-accent), var(--bbs-page-hot), transparent);
  filter: drop-shadow(0 0 5px var(--bbs-page-accent));
  animation: bbs-header-sweep 6.5s ease-in-out infinite;
}
.bbs-top-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  min-height: 66px;
}
.bbs-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: var(--bbs-ink);
  text-decoration: none;
}
.bbs-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 13px rgba(24, 183, 255, .24));
  animation: bbs-logo-float 4.4s ease-in-out infinite;
  transition: filter .18s ease, transform .18s ease;
}
.bbs-brand:hover img, .bbs-brand:focus-visible img { filter: drop-shadow(0 0 15px var(--bbs-page-accent)); transform: rotate(4deg) scale(1.06); }
.bbs-brand-copy { display: grid; min-width: 0; }
.bbs-brand-copy b {
  overflow: hidden;
  color: var(--bbs-ink);
  font-size: .92rem;
  line-height: 1.05;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.bbs-brand-copy small {
  margin-top: 5px;
  overflow: hidden;
  color: var(--bbs-cyan-2);
  font-size: .56rem;
  line-height: 1;
  letter-spacing: .13em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.bbs-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bbs-nav a {
  min-height: 34px;
  padding: 9px 10px;
  border: 1px solid transparent;
  color: var(--bbs-muted);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
.bbs-nav a:hover, .bbs-nav a:focus-visible {
  border-color: var(--bbs-line);
  color: var(--bbs-cyan-2);
  background: rgba(24, 183, 255, .07);
}
.bbs-online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--bbs-page-hot);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bbs-online::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--bbs-page-hot);
  box-shadow: 0 0 10px var(--bbs-page-hot);
  animation: bbs-pulse 1.8s ease-out infinite;
}
.bbs-ticker {
  width: 100%;
  max-width: 100vw;
  contain: paint;
  overflow: hidden;
  border-top: 1px solid var(--bbs-line-soft);
  color: #061008;
  background: linear-gradient(90deg, var(--bbs-page-hot), var(--bbs-page-accent), var(--bbs-page-hot));
  background-size: 200% 100%;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .11em;
  line-height: 25px;
  text-transform: uppercase;
  white-space: nowrap;
  animation: bbs-ticker-spectrum 9s ease-in-out infinite alternate;
}
.bbs-ticker-track {
  display: inline-flex;
  min-width: max-content;
  animation: bbs-ticker 30s linear infinite;
}
.bbs-ticker-track span { padding-right: 2.2rem; }

.bbs-kicker, .bbs-section-head small, .bbs-code {
  color: var(--bbs-cyan-2);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.bbs-kicker { margin: 0 0 10px; }
.bbs-panel {
  border: 1px solid var(--bbs-line);
  background:
    linear-gradient(135deg, rgba(24, 183, 255, .045), transparent 42%),
    rgba(6, 16, 14, .9);
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--bbs-page-accent) 7%, transparent), 0 0 28px color-mix(in srgb, var(--bbs-page-accent) 4%, transparent);
}
.bbs-panel::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 20px;
  height: 5px;
  content: "";
  background: var(--bbs-page-accent);
  box-shadow: 24px 0 0 var(--bbs-page-hot);
}
.bbs-section { margin-top: clamp(46px, 7vw, 84px); }
.bbs-section-head {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--bbs-line);
}
.bbs-section-head::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 58px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--bbs-page-hot), transparent);
  box-shadow: 0 0 8px var(--bbs-page-hot);
  animation: bbs-section-scan 5.8s ease-in-out infinite;
}
.bbs-section-head h2 {
  margin: 5px 0 0;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  letter-spacing: -.035em;
  line-height: 1;
  text-transform: uppercase;
}
.bbs-section-head > span {
  color: var(--bbs-muted);
  font-size: .62rem;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
}
.bbs-button {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--bbs-cyan);
  color: var(--bbs-cyan-2);
  background: rgba(24, 183, 255, .06);
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  overflow: hidden;
  transition: color .14s ease, background .14s ease, transform .14s ease;
}
.bbs-button::after {
  position: absolute;
  inset: -50% auto -50% -35%;
  width: 22%;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: rgba(255, 255, 255, .48);
  filter: blur(4px);
  transform: skewX(-18deg);
}
.bbs-button:hover::after, .bbs-button:focus-visible::after { animation: bbs-button-flash .48s ease-out; }
.bbs-button:hover, .bbs-button:focus-visible {
  color: #041008;
  background: var(--bbs-cyan-2);
  transform: translate(-2px, -2px);
}
.bbs-button.primary {
  border-color: var(--bbs-lime);
  color: #041008;
  background: var(--bbs-lime);
}
.bbs-button.primary:hover, .bbs-button.primary:focus-visible { background: #c1ff80; }
.bbs-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.bbs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 54px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--bbs-line);
  color: var(--bbs-muted);
  font-size: .62rem;
  line-height: 1.6;
  text-transform: uppercase;
}
.bbs-footer p { margin: 0; }
.bbs-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.bbs-footer a { color: var(--bbs-cyan-2); text-decoration: none; }
.bbs-footer a { background: linear-gradient(var(--bbs-page-hot), var(--bbs-page-hot)) left bottom / 0 1px no-repeat; transition: color .15s ease, background-size .15s ease; }
.bbs-footer a:hover, .bbs-footer a:focus-visible { color: var(--bbs-page-hot); background-size: 100% 1px; }

.bbs-handshake {
  position: fixed;
  z-index: 250;
  right: 18px;
  bottom: 18px;
  display: grid;
  min-width: min(300px, calc(100vw - 36px));
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid var(--bbs-page-accent);
  color: var(--bbs-cyan-2);
  background: rgba(2, 7, 6, .94);
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--bbs-page-hot) 14%, transparent), 0 0 25px color-mix(in srgb, var(--bbs-page-accent) 18%, transparent);
  pointer-events: none;
  animation: bbs-handshake 1.75s ease both;
}
.bbs-handshake::before { position: absolute; top: -1px; left: -1px; width: 36%; height: 3px; content: ""; background: var(--bbs-page-hot); }
.bbs-handshake small { font-size: .54rem; font-weight: 900; letter-spacing: .12em; }
.bbs-handshake b { color: var(--bbs-page-hot); font-size: .78rem; letter-spacing: .1em; text-shadow: 0 0 12px color-mix(in srgb, var(--bbs-page-hot) 55%, transparent); }

.bbs-signal-trace {
  position: fixed;
  z-index: 70;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity .14s ease;
}
.bbs-signal-trace.is-active { opacity: .82; }
.bbs-signal-trace path {
  fill: none;
  stroke: var(--bbs-trace-color, var(--bbs-page-accent));
  stroke-width: 1.8;
  stroke-dasharray: 8 7;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px var(--bbs-trace-color, var(--bbs-page-accent)));
  animation: bbs-trace-run .7s linear infinite;
}

.bbs-interactive { --bbs-spot-x: 50%; --bbs-spot-y: 50%; isolation: isolate; transform-style: preserve-3d; will-change: transform; }
.bbs-card-glow {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--bbs-spot-x) var(--bbs-spot-y), color-mix(in srgb, var(--bbs-card-accent, var(--bbs-page-accent)) 24%, transparent), transparent 42%);
  transition: opacity .15s ease;
}
.bbs-interactive > :not(.bbs-card-glow) { position: relative; z-index: 1; }
.bbs-interactive:hover .bbs-card-glow, .bbs-interactive:focus-visible .bbs-card-glow { opacity: 1; }

:is(.role-card, .showcase, .desk-feature-grid article, .desk-install-grid article, .desk-capture-grid figure) {
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
:is(.role-card, .showcase, .desk-feature-grid article, .desk-install-grid article, .desk-capture-grid figure):hover {
  border-color: var(--bbs-page-accent);
  box-shadow: 0 0 25px color-mix(in srgb, var(--bbs-page-accent) 12%, transparent);
  transform: translate(-2px, -2px);
}
:is(.screen-rail figure, .desk-capture-grid figure, .showcase, .link-hero-art) img { transition: filter .2s ease, transform .2s ease; }
:is(.screen-rail figure, .desk-capture-grid figure, .showcase, .link-hero-art):hover img { filter: saturate(1.18) contrast(1.05); transform: scale(1.025); }
.release-deck { transition: border-color .16s ease, box-shadow .16s ease; }
.release-deck[open] { border-color: var(--bbs-page-accent); box-shadow: 0 0 28px color-mix(in srgb, var(--bbs-page-accent) 10%, transparent); }
body.bbs-route-leaving main { opacity: .25; filter: saturate(0) brightness(1.5); transform: scale(.996); transition: opacity .12s ease, filter .12s ease, transform .12s ease; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .42s ease, transform .42s ease;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal].is-visible :is(h1, h2) { animation: bbs-title-lock .38s steps(3, end) both; }

@keyframes bbs-scan { to { background-position: 0 160px; } }
@keyframes bbs-ticker { to { transform: translateX(-50%); } }
@keyframes bbs-pulse { 72%, 100% { box-shadow: 0 0 0 8px transparent, 0 0 10px var(--bbs-page-hot); } }
@keyframes bbs-field-drift { to { background-position: 170px 138px, -215px 178px; } }
@keyframes bbs-aurora { to { transform: rotate(1turn) scale(1.04); } }
@keyframes bbs-band-pass { 0%, 12% { transform: translateX(-20vw) skewX(-18deg); } 58%, 100% { transform: translateX(125vw) skewX(-18deg); } }
@keyframes bbs-header-sweep { 0%, 14% { transform: translateX(0); opacity: 0; } 28%, 72% { opacity: 1; } 88%, 100% { transform: translateX(380%); opacity: 0; } }
@keyframes bbs-logo-float { 50% { transform: translateY(-2px); filter: drop-shadow(0 0 12px var(--bbs-page-accent)); } }
@keyframes bbs-ticker-spectrum { to { background-position: 100% 0; } }
@keyframes bbs-section-scan { 0%, 12% { transform: translateX(-60px); opacity: 0; } 26%, 74% { opacity: 1; } 88%, 100% { transform: translateX(min(68vw, 760px)); opacity: 0; } }
@keyframes bbs-button-flash { 20% { opacity: .7; } 100% { left: 118%; opacity: 0; } }
@keyframes bbs-handshake { 0% { opacity: 0; transform: translateY(14px) skewX(-5deg); } 15%, 76% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(12px); } }
@keyframes bbs-trace-run { to { stroke-dashoffset: -15; } }
@keyframes bbs-title-lock { 0% { opacity: .35; filter: blur(2px); transform: scaleX(.97); } 45% { text-shadow: 3px 0 var(--bbs-page-accent), -3px 0 var(--bbs-page-hot); } 100% { opacity: 1; filter: none; transform: none; } }

@media (max-width: 820px) {
  .bbs-top-row { grid-template-columns: 1fr auto; gap: 10px; }
  .bbs-nav {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: -7px;
    padding-bottom: 7px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .bbs-nav::-webkit-scrollbar { display: none; }
  .bbs-nav a { flex: 0 0 auto; }
}
@media (max-width: 520px) {
  .bbs-shell { width: min(calc(100% - 20px), 1180px); }
  .bbs-top-row { min-height: 58px; }
  .bbs-brand img { width: 36px; height: 36px; }
  .bbs-brand-copy b { font-size: .78rem; }
  .bbs-brand-copy small { font-size: .49rem; }
  .bbs-online { font-size: 0; }
  .bbs-online::before { width: 8px; height: 8px; }
  .bbs-section { margin-top: 40px; }
  .bbs-section-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .bbs-section-head > span { text-align: left; }
  .bbs-actions { display: grid; grid-template-columns: 1fr; }
  .bbs-button { width: 100%; }
  .bbs-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .bbs-ticker-track { transform: none !important; }
  .bbs-handshake, .bbs-signal-trace { display: none !important; }
  .bbs-interactive { transform: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
html.page-paused *, html.page-paused *::before, html.page-paused *::after { animation-play-state: paused !important; }
