:root {
  --bg: #06080b;
  --bg-2: #0c1015;
  --panel: #10151c;
  --line: #1d2530;
  --text: #e7edf3;
  --muted: #8d99a8;
  --green: #34e08a;
  --green-dim: #1f8f58;
  --cyan: #39d0ff;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(6, 8, 11, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.tabs { display: flex; gap: 4px; margin-left: auto; }
.tabs a {
  color: var(--muted); padding: 7px 14px; border-radius: 999px; font-size: 15px; font-weight: 550;
}
.tabs a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.tabs a.active { color: #04130b; background: var(--green); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 16px 96px;
  text-align: center;
  isolation: isolate;
}
.hero::before { /* faint scan grid */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(52, 224, 138, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 224, 138, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, transparent 70%);
}
.hero::after { /* glow */
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 40px; width: 720px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(52, 224, 138, .18), rgba(57, 208, 255, .06) 60%, transparent);
  filter: blur(10px);
}

.radar { position: relative; width: 260px; height: 260px; margin: 0 auto 36px; }
.radar svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar .sweep { transform-origin: 130px 130px; animation: sweep 4s linear infinite; }
.radar .ping { transform-origin: center; transform-box: fill-box; animation: ping 4s ease-out infinite; opacity: 0; }
.radar .ping.p2 { animation-delay: 1.4s; }
.radar .ping.p3 { animation-delay: 2.7s; }
.radar img {
  position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; transform: translate(-50%, -50%);
  border-radius: 30px;
  box-shadow: 0 0 0 1px rgba(52, 224, 138, .35), 0 0 60px rgba(52, 224, 138, .35);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes ping { 0% { opacity: 0; transform: scale(.4); } 8% { opacity: 1; } 60% { opacity: 0; transform: scale(2.2); } 100% { opacity: 0; } }
@keyframes breathe { 50% { box-shadow: 0 0 0 1px rgba(52, 224, 138, .5), 0 0 90px rgba(52, 224, 138, .5); } }

.hero h1 {
  margin: 0 auto 14px; max-width: 16ch;
  font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -1.5px; font-weight: 750;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--green), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { margin: 0 auto 32px; max-width: 40rem; color: var(--muted); font-size: 1.15rem; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 650;
  border: 1px solid var(--line); color: var(--text); background: var(--panel);
}
.btn:hover { text-decoration: none; border-color: var(--green-dim); }
.btn.primary { background: var(--green); color: #04130b; border-color: var(--green); }
.btn.primary:hover { filter: brightness(1.08); }

/* ---------- sections ---------- */
section.band { padding: 72px 16px; border-top: 1px solid var(--line); }
.wrap { max-width: 1120px; margin: 0 auto; }
.eyebrow { color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
h2.title { margin: 6px 0 36px; font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: -.6px; line-height: 1.15; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  padding: 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--green-dim); transform: translateY(-2px); }
.card svg { width: 30px; height: 30px; color: var(--green); }
.card h3 { margin: 14px 0 6px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* detection-box screenshot */
.shot { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.shot img { display: block; width: 100%; }
.detect {
  position: absolute; border: 2px solid var(--green); border-radius: 6px;
  box-shadow: 0 0 18px rgba(52, 224, 138, .55), inset 0 0 18px rgba(52, 224, 138, .2);
  animation: lock 3.2s ease-in-out infinite;
}
.detect b {
  position: absolute; left: -2px; top: -26px; white-space: nowrap;
  padding: 2px 8px; border-radius: 5px 5px 5px 0; background: var(--green); color: #04130b;
  font: 700 12px/18px ui-monospace, SFMono-Regular, Menlo, monospace;
}
@keyframes lock { 0%, 100% { opacity: .35; transform: scale(1.06); } 30%, 80% { opacity: 1; transform: scale(1); } }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery figcaption { margin-top: 8px; color: var(--muted); font-size: .9rem; }

.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.platforms span {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  font-weight: 600; font-size: .95rem;
}

footer {
  padding: 40px 16px 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .grow { flex: 1; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; max-width: 1220px; margin: 0 auto; padding: 32px 16px 80px; }
.docs nav { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; padding-right: 6px; }
.docs nav h4 { margin: 22px 0 6px; color: var(--muted); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; }
.docs nav h4:first-child { margin-top: 0; }
.docs nav a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--text); font-size: 15px; }
.docs nav a:hover { background: var(--panel); text-decoration: none; }
.docs nav a.active { background: rgba(52, 224, 138, .12); color: var(--green); font-weight: 600; }
.docs nav select { display: none; }

.doc { min-width: 0; }
.doc .source { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.doc .source code { background: none; padding: 0; }
.prose { font-size: 16px; }
.prose h1 { font-size: 2.1rem; letter-spacing: -.8px; line-height: 1.15; margin: 0 0 18px; }
.prose h2 { font-size: 1.45rem; margin: 44px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.15rem; margin: 30px 0 8px; }
.prose h1, .prose h2, .prose h3, .prose h4 { scroll-margin-top: 80px; }
.prose code { background: var(--panel); border: 1px solid var(--line); padding: .08em .38em; border-radius: 5px; font-size: .88em; }
.prose pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow: auto; }
.prose pre code { background: none; border: 0; padding: 0; font-size: 13.5px; line-height: 1.55; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; margin: 16px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 7px 11px; text-align: left; vertical-align: top; }
.prose th { background: var(--panel); }
.prose blockquote { margin: 16px 0; padding: 6px 16px; border-left: 3px solid var(--green-dim); color: var(--muted); background: var(--bg-2); border-radius: 0 8px 8px 0; }
.prose img { border-radius: 10px; border: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose li + li { margin-top: 3px; }
.loading { color: var(--muted); }

@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .docs nav { position: static; max-height: none; }
  .docs nav .list { display: none; }
  .docs nav select {
    display: block; width: 100%; padding: 10px 12px; border-radius: 10px;
    background: var(--panel); color: var(--text); border: 1px solid var(--line); font: inherit;
  }
  .topbar { gap: 12px; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- motion (driven by site.js) ---------- */
#field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.features .reveal:nth-child(2), .gallery .reveal:nth-child(2), .videos .reveal:nth-child(2) { transition-delay: .08s; }
.features .reveal:nth-child(3), .gallery .reveal:nth-child(3), .videos .reveal:nth-child(3) { transition-delay: .16s; }
.features .reveal:nth-child(4), .gallery .reveal:nth-child(4) { transition-delay: .24s; }
.features .reveal:nth-child(5) { transition-delay: .32s; }
.features .reveal:nth-child(6) { transition-delay: .40s; }

.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(52, 224, 138, .13), transparent 70%);
}
.card:hover::before { opacity: 1; }
.shot { transition: transform .25s ease-out; will-change: transform; }

.ai-caption {
  margin-top: 16px; display: flex; gap: 12px; align-items: baseline;
  font: 15px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text);
}
.ai-caption::before { content: "AI ›"; color: var(--green); font-weight: 700; flex: none; }
.ai-caption span { min-height: 1.5em; }
.ai-caption span::after { content: "▍"; color: var(--green); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- videos ---------- */
.videos { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.yt {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: #000; cursor: pointer; aspect-ratio: 16 / 9; color: var(--text);
}
.yt:hover { text-decoration: none; }
.yt.short { aspect-ratio: 9 / 16; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s, filter .3s; filter: brightness(.82); }
.yt:hover img { transform: scale(1.04); filter: brightness(1); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt .play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(6, 8, 11, .6); border: 2px solid var(--green);
  display: grid; place-items: center; box-shadow: 0 0 30px rgba(52, 224, 138, .45); transition: transform .2s;
}
.yt:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.yt .play::after { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--green); }
.yt .label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; font-weight: 650; font-size: .95rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
}
.yt.playing .play, .yt.playing .label { display: none; }
.channel { margin-top: 22px; }
.btn svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .videos { grid-template-columns: 1fr 1fr; }
  .videos > :first-child { grid-column: 1 / -1; }
}

/* ---------- hub diagram ---------- */
.tabs a.dl { color: var(--green); border: 1px solid var(--green-dim); }
.tabs a.dl:hover { background: rgba(52, 224, 138, .12); }
.hub { position: relative; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(52, 224, 138, .08), transparent 65%), var(--bg-2); }
.hub svg { display: block; width: 100%; height: auto; }
.hub .spoke { stroke: rgba(52, 224, 138, .18); stroke-width: 1.5; transition: stroke .25s; }
.hub .spoke.hot { stroke: rgba(52, 224, 138, .7); }
.hub .node rect { fill: var(--panel); stroke: var(--line); transition: stroke .25s, fill .25s; }
.hub .node.hot rect { stroke: var(--green); fill: #0f1d17; }
.hub .node text { fill: var(--text); font: 600 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.hub .node text.sub { fill: var(--muted); font-weight: 500; font-size: 12px; }
.hub .node { cursor: default; }
.hub .core-ring { fill: none; stroke: rgba(52, 224, 138, .35); }
.hub .core-ring.r2 { stroke-dasharray: 3 7; animation: spin 30s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes spin { to { transform: rotate(360deg); } }
.hub-note { margin: 16px 0 0; color: var(--muted); font-size: .95rem; max-width: 52rem; }

/* ---------- automation flow ---------- */
.flow { display: grid; grid-template-columns: 1fr 70px 1fr 70px 1fr; align-items: stretch; }
.flow .step {
  padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
  opacity: .35; transform: scale(.97); transition: opacity .45s, transform .45s, border-color .45s, box-shadow .45s;
  min-height: 104px;
}
.flow .step.on { opacity: 1; transform: none; border-color: var(--green-dim); box-shadow: 0 0 34px rgba(52, 224, 138, .16); }
.flow small { display: block; color: var(--green); font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; font-size: 12px; margin-bottom: 6px; }
.flow strong { font-size: 1.05rem; font-weight: 600; }
.flow .link { position: relative; align-self: center; height: 2px; margin: 0 6px; background: var(--line); overflow: hidden; }
.flow .link i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--green), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.flow .link.on i { transform: none; }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; }
  .flow .link { width: 2px; height: 22px; margin: 4px auto; }
  .flow .link i { transform: scaleY(0); transform-origin: top; }
  .flow .step { min-height: 0; }
}

/* ---------- download ---------- */
.release-line { margin: -20px 0 22px; color: var(--muted); }
.release-line b { color: var(--text); }
.release-new { margin: -12px 0 22px; color: var(--text); }
.release-new a { margin-left: 6px; white-space: nowrap; }
.downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.downloads .size { font-weight: 500; opacity: .75; }
.dl-note { color: var(--muted); font-size: .95rem; }
.dl-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg-2)); color: var(--text);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.dl-card:hover { text-decoration: none; border-color: var(--green); transform: translateY(-2px); box-shadow: 0 0 40px rgba(52, 224, 138, .15); }
.dl-card svg { width: 34px; height: 34px; color: var(--green); flex: none; }
.dl-card span { flex: 1; }
.dl-card strong { display: block; font-size: 1.1rem; }
.dl-card small { color: var(--muted); }
.dl-card em { font-style: normal; }
.dl-card .arrow { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #04130b; font-size: 18px; }
.install { position: relative; margin-top: 16px; }
.install pre { margin: 0; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); overflow: auto; }
.install code { font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.install .copy {
  position: absolute; top: 10px; right: 10px; padding: 5px 12px; border-radius: 8px; cursor: pointer;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); font: 600 13px/1.4 inherit;
}
.install .copy:hover { border-color: var(--green-dim); }
@media (max-width: 860px) { .tabs a:not(.dl):not(.active) { padding: 7px 9px; } }
@media (max-width: 480px) { .tabs a[href$="#videos"] { display: none; } }

/* ---------- testing-phase notices ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid rgba(255, 196, 77, .4); background: rgba(255, 196, 77, .08);
  color: #ffd27a; font-size: 14px; font-weight: 600;
}
.badge:hover { text-decoration: none; background: rgba(255, 196, 77, .14); }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: #ffc44d; box-shadow: 0 0 10px #ffc44d; animation: blink 1.6s ease-in-out infinite; }
.platforms span { color: var(--muted); }
.platforms span.now { color: var(--text); border-color: var(--green-dim); box-shadow: inset 0 0 0 1px rgba(52, 224, 138, .25); }
.platforms span.now::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); vertical-align: 1px; }
.now-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); vertical-align: 1px; }
.testing {
  margin: 0 0 22px; padding: 14px 18px; border-radius: var(--radius); max-width: 52rem;
  border: 1px solid rgba(255, 196, 77, .35); background: rgba(255, 196, 77, .06); color: var(--muted);
}
.testing strong { color: #ffd27a; }
.hub-note code { background: var(--panel); border: 1px solid var(--line); padding: .05em .35em; border-radius: 5px; font-size: .9em; color: var(--text); }
.hub-note em { color: var(--text); font-style: normal; font-weight: 600; }

/* ---------- Sherlock Morse tab ---------- */
.tabs a { white-space: nowrap; }
@media (max-width: 720px) { .tabs .long { display: none; } }
.sm-hero { padding-top: 56px; }
.sm-logo { display: block; width: min(560px, 100%); height: auto; margin: 0 auto 30px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(241, 228, 198, .2), 0 30px 80px rgba(0, 0, 0, .5); }
.morse { border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); padding: 8px 0; overflow-x: auto; }
.morse .row { display: grid; grid-template-columns: 90px minmax(220px, 1fr) minmax(220px, 1.2fr); gap: 16px; padding: 8px 18px; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.morse .row + .row { border-top: 1px solid var(--line); }
.morse .hz { color: var(--cyan); }
.morse .keys { color: rgba(52, 224, 138, .6); letter-spacing: 1px; overflow: hidden; text-overflow: clip; }
.morse .txt { color: var(--text); }
.morse .txt b { color: var(--green); }
@media (max-width: 640px) { .morse .row { grid-template-columns: 80px 1fr; } .morse .keys { display: none; } }
.radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.radios div { padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.radios strong { display: block; margin-bottom: 4px; }
.radios span { color: var(--muted); font-size: .93rem; }
.sm-notes { columns: 2 340px; column-gap: 16px; }
.sm-notes > div { break-inside: avoid; margin-bottom: 16px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.sm-notes h3 { margin: 0 0 10px; font-size: 1.05rem; }
.sm-notes ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .93rem; }
.sm-notes li + li { margin-top: 8px; }
.sm-notes li::marker { color: var(--green-dim); }
.sm-notes em { color: var(--text); font-style: normal; font-weight: 600; }
.sm-notes code { background: var(--bg-2); border: 1px solid var(--line); padding: .05em .35em; border-radius: 5px; font-size: .9em; color: var(--text); }

/* ---------- RigHelm tab ---------- */
.rh-icon { display: block; width: 128px; height: 128px; margin: 0 auto 26px; border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.rh-os { margin: 30px 0 10px; font-size: 1.05rem; }
@media (max-width: 480px) {
  .tabs { gap: 2px; }
  .tabs a, .tabs a:not(.dl):not(.active) { padding: 6px 8px; font-size: 14px; }
}
.rh-shot { margin: 0; }
.rh-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.rh-shot figcaption { margin-top: 10px; color: var(--muted); font-size: .93rem; }
.rh-shot figcaption b { color: var(--text); }
.rh-shot-main { margin-top: 28px; }
.rh-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 26px; }
.rh-video { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }

/* ---------- About tab ---------- */
.about-hero { text-align: left; }
.about-intro { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 48px; align-items: center; }
.about-photo { margin: 0; aspect-ratio: 1; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 0 0 1px rgba(52, 224, 138, .12), 0 30px 80px rgba(0, 0, 0, .5); }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-text h1 { margin-left: 0; }
.about-text p.lede { margin-left: 0; }
.about-text .cta { justify-content: flex-start; }
.about-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 40px; color: var(--muted); }
.about-cols p { margin: 0 0 16px; }
.about-cols b { color: var(--text); }
a.about-card { display: block; color: inherit; }
a.about-card:hover { text-decoration: none; }
@media (max-width: 760px) {
  .about-intro { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { max-width: 340px; }
}
@media (max-width: 560px) {
  .brand { display: none; } /* the Home tab covers it, and the About tab needs the room */
  .tabs { gap: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a, .tabs a:not(.dl):not(.active) { padding: 6px 5px; font-size: 14px; white-space: nowrap; flex: none; }
}
@media (max-width: 380px) { .tabs a, .tabs a:not(.dl):not(.active) { padding: 6px 4px; font-size: 13px; } }

.support-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; max-width: 52rem; }
.support-note .btn svg { width: 16px; height: 16px; color: #ff6b8a; }
.support-note span { flex: 1; min-width: 16rem; }

.tabs a.donate { display: inline-flex; align-items: center; gap: 6px; color: #ff8fa6; border: 1px solid rgba(255, 107, 138, .45); }
.tabs a.donate:hover { background: rgba(255, 107, 138, .12); }
.tabs a.donate svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 560px) { .tabs a.donate { margin: 0 3px; } .tabs a.donate span { display: none; } } /* heart only on phones */

/* ---------- Ham Radio dropdown in the top bar (driven by nav.js) ---------- */
.menu { position: relative; display: flex; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  color: var(--muted); background: none; border: 0; padding: 7px 12px 7px 14px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 550; white-space: nowrap;
}
.menu-btn svg { width: 14px; height: 14px; transition: transform .2s; }
.menu-btn:hover, .menu.open .menu-btn { color: var(--text); background: var(--panel); }
.menu .menu-btn.active { color: #04130b; background: var(--green); }
.menu.open .menu-btn svg { transform: rotate(180deg); }
.menu-list {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; min-width: 300px; padding: 8px;
  display: grid; gap: 2px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.menu-list::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.menu.open .menu-list { opacity: 1; visibility: visible; transform: none; }
.tabs .menu .menu-list a, .tabs .menu .menu-list a:not(.dl):not(.active) {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px;
  color: var(--text); font-size: 15px; white-space: normal;
}
.tabs .menu-list a:hover { background: var(--panel); text-decoration: none; }
.tabs .menu-list a.active { color: var(--text); background: rgba(52, 224, 138, .12); box-shadow: inset 0 0 0 1px rgba(52, 224, 138, .3); }
.menu-list img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.menu-list span { display: grid; line-height: 1.3; }
.menu-list b { font-weight: 650; }
.menu-list small { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .menu-btn { padding: 7px 8px 7px 10px; } }
@media (max-width: 560px) {
  /* .tabs scrolls sideways on phones, so the list is placed against the top bar instead. */
  .menu-list { position: fixed; top: 100%; left: 12px; right: 12px; min-width: 0; }
  .menu-btn { padding: 6px 5px; font-size: 14px; }
}

/* ---------- JS8 Firefly tab ---------- */
.ff-icon { box-shadow: 0 0 0 1px rgba(214, 255, 92, .15), 0 30px 90px rgba(214, 255, 92, .18); }
.ff-hero::after { background: radial-gradient(closest-side, rgba(214, 255, 92, .14), rgba(57, 208, 255, .06) 60%, transparent); }
.ff-hero h1 span { color: #d6ff5c; }
.ff-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.ff-phone { margin: 0; }
.ff-phone img {
  display: block; width: 100%; height: auto; border-radius: 34px; border: 6px solid #1a2029;
  box-shadow: 0 0 0 1px var(--line), 0 30px 70px rgba(0, 0, 0, .55);
}
.ff-phone figcaption { margin-top: 12px; color: var(--muted); font-size: .93rem; text-align: center; }
.ff-phone figcaption b { color: var(--text); }
.radios em { color: var(--text); font-style: normal; font-weight: 600; }
.ff-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 22px; font-weight: 650; }
.ff-chain span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.ff-chain i { color: var(--green); font-style: normal; }
.rp-phones { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gw-phones { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.gw-phones .ff-phone img { border-radius: 26px; border-width: 5px; }
@media (max-width: 760px) {
  .ff-phones { grid-template-columns: repeat(3, minmax(160px, 1fr)); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .ff-phone { scroll-snap-align: center; }
  .rp-phones { grid-template-columns: repeat(4, minmax(160px, 1fr)); }
  .gw-phones { grid-template-columns: repeat(5, minmax(160px, 1fr)); }
}
