:root{
  --bg-void: #0a0e14;
  --bg-panel: #10161d;
  --bg-panel-raised: #161e27;
  --bg-panel-hi: #1c252f;
  --ink: #dce8ec;
  --ink-muted: #8296a5;
  --ink-faint: #4a5964;
  --cyan: #4de3ff;
  --cyan-soft: #9df1ff;
  --cyan-dim: #17414c;
  --magenta: #ff3d7a;
  --amber: #ffb454;
  --line: rgba(179, 207, 219, 0.12);
  --line-strong: rgba(179, 207, 219, 0.22);
  --shadow-deep: 0 30px 80px rgba(0,0,0,0.55);

  --font-display: "Dela Gothic One", "Hiragino Sans", "Zen Kaku Gothic New", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --header-h: 64px;
  --ticker-h: 38px;
  --footer-h: 56px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-void);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main{ flex: 1 0 auto; padding-bottom: calc(var(--footer-h) + 1.5rem); }

h1, h2, h3{
  font-family: var(--font-display);
  text-wrap: balance;
  margin: 0;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0.01em;
}

p{ margin: 0; }

a{ color: inherit; text-decoration: none; }

button{ font-family: inherit; cursor: pointer; }

:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

.mono{ font-family: var(--font-mono); }

.lede{
  color: var(--ink-muted);
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- ambient scanline overlay ---------- */
.scanlines{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.028) 0px,
    rgba(255,255,255,0.028) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.5;
}

.vignette{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 59;
  background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(4,6,9,0.75) 100%);
}

/* ---------- nav ---------- */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(10, 14, 20, 0.7);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}

.brand{
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.14em;
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  white-space: nowrap;
}
.brand .div{ color: var(--ink-faint); }
.brand .sig{ color: var(--cyan); text-shadow: 0 0 14px rgba(77,227,255,0.55); }

.nav-brand-group{
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex: 0 0 auto;
  min-width: 0;
}
.nav-social{
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.nav-social-icon{
  display: flex;
  color: var(--ink-muted);
  transition: color 0.15s ease, transform 0.15s ease;
}
.nav-social-icon svg{ width: 21px; height: 21px; }
.nav-social-icon:hover{ color: var(--cyan-soft); transform: translateY(-1px); }
.nav-social-icon.work{ color: rgba(255, 180, 84, 0.75); }
.nav-social-icon.work:hover{ color: var(--amber); transform: translateY(-1px); }
.nav-social-divider{
  width: 1px;
  height: 18px;
  background: var(--line-strong);
}

.nav-links{
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.8rem);
  overflow-x: auto;
  scrollbar-width: none;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links::-webkit-scrollbar{ display: none; }
.nav-links a{
  position: relative;
  color: var(--ink-muted);
  padding: 0.3rem 0.1rem;
  transition: color 0.2s ease;
  flex: 0 0 auto;
}
.nav-links a:hover, .nav-links a.active{ color: var(--cyan-soft); }
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--cyan);
  transition: right 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after{ right: 0; }

.audio-toggle{
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-panel-raised);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.35rem 0.9rem 0.35rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  flex: 0 0 auto;
}
.audio-toggle:hover{ border-color: var(--cyan-dim); }
.audio-dot{
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  transition: all 0.25s ease;
}
.audio-toggle.on .audio-dot{
  color: #fff;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(77,227,255,0.7);
  border-color: var(--cyan);
  animation: pulse-ring 2.4s ease-in-out infinite;
}
.audio-toggle.on{
  color: var(--cyan-soft);
  background: rgba(77,227,255,0.12);
  border-color: rgba(77,227,255,0.45);
}
@keyframes pulse-ring{
  0%, 100%{ box-shadow: 0 0 10px rgba(77,227,255,0.55); }
  50%{ box-shadow: 0 0 20px rgba(77,227,255,0.9); }
}

.nav-hamburger{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 0 8px;
}
.nav-hamburger span{
  display: block;
  height: 1px;
  background: var(--ink-muted);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.nav-mobile-menu{
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 50;
  max-height: 0;
  overflow: hidden;
  background: rgba(10, 14, 20, 0.96);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
  transition: max-height 0.25s ease;
}
.nav-mobile-menu.open{ max-height: 75vh; overflow-y: auto; }
.nav-mobile-links{
  display: flex;
  flex-direction: column;
  padding: 0.5rem clamp(1.25rem, 4vw, 3rem) 0;
}
.nav-mobile-links a{
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-mobile-links a:last-child{ border-bottom: none; }
.nav-mobile-links a.active, .nav-mobile-links a:hover{ color: var(--cyan-soft); }
.nav-mobile-social{
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem) 1.4rem;
}

@media (max-width: 680px){
  .nav-links{ display: none; }
  .nav-social{ display: none; }
  .nav-hamburger{ display: flex; }
}

/* ---------- hero (home only) ---------- */
.hero{
  position: relative;
  min-height: clamp(560px, 86vh, 840px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + var(--ticker-h) + 1.5rem);
  isolation: isolate;
  overflow: hidden;
}
#city{
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100vw;
  height: 100vh;
  display: block;
}
#rain{
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  display: block;
}
.city-scrim{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10,14,20,0.2) 0%, rgba(10,14,20,0.6) 40%, rgba(10,14,20,0.92) 100%);
}
.hero-fade{
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,14,20,0.2) 0%, rgba(10,14,20,0.55) 65%, var(--bg-void) 100%),
    linear-gradient(90deg, rgba(10,14,20,0.85) 0%, rgba(10,14,20,0.15) 45%);
}

.signage{
  position: absolute;
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  pointer-events: none;
}
.signage.cyan-glow{ color: var(--cyan); text-shadow: 0 0 18px rgba(77,227,255,0.5); }
.signage.magenta-glow{ color: var(--magenta); text-shadow: 0 0 18px rgba(255,61,122,0.45); }
.s1{ top: 14%; right: 8%; font-size: 0.8rem; }
.s2{ top: 24%; right: 14%; font-size: 1.6rem; writing-mode: vertical-rl; }
.s4{ bottom: 34%; right: 20%; font-size: 0.72rem; }

/* A label + its binary "translation" stacked as one locked-together unit,
   so they can never drift apart from each other at different viewport
   sizes the way two independently-positioned elements would. */
.signal-pair{
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  pointer-events: none;
}
.signal-pair .sp-label{
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.signal-pair .sp-label.cyan-glow{ color: var(--cyan); text-shadow: 0 0 18px rgba(77,227,255,0.5); }
.signal-pair .sp-binary{
  font-family: var(--font-mono);
  writing-mode: vertical-rl;
  white-space: normal;
  height: 140px;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  opacity: 0.7;
}

.sp1{ top: 18%; left: 6%; }
.sp2{ top: 64%; left: 4%; }
.sp3{ top: 40%; right: 5%; align-items: flex-end; }
.sp3 .sp-label{ font-size: 0.72rem; }

.hero-inner{
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: calc(var(--footer-h) + clamp(1.5rem, 5vw, 3.5rem));
}

.hero-eyebrow{ margin-bottom: 1.1rem; }

.hero h1{
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  max-width: 14ch;
  color: var(--ink);
}

.glitch-text{ position: relative; display: inline-block; }
.glitch-text::before, .glitch-text::after{
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
}
.glitch-text::before{ color: var(--cyan); mix-blend-mode: screen; }
.glitch-text::after{ color: var(--magenta); mix-blend-mode: screen; }
.glitch-text:hover::before, .glitch-text:hover::after,
.glitch-text.glitching::before, .glitch-text.glitching::after{
  opacity: 0.85;
  animation: glitch-shift 0.5s steps(3, end) both;
}
@keyframes glitch-shift{
  0%{ clip-path: inset(10% 0 70% 0); transform: translate(0,0); opacity: 0.85; }
  20%{ clip-path: inset(60% 0 5% 0); transform: translate(-3px, 1px); }
  40%{ clip-path: inset(25% 0 45% 0); transform: translate(3px, -1px); }
  60%{ clip-path: inset(80% 0 2% 0); transform: translate(-2px, 0); }
  80%{ clip-path: inset(5% 0 80% 0); transform: translate(2px, 1px); }
  100%{ clip-path: inset(40% 0 40% 0); transform: translate(0,0); opacity: 0; }
}

.hero .lede{ margin-top: 1.4rem; }

.hero-ctas{
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-transmission{
  margin-top: 3.75rem;
  max-width: 440px;
  border-left: 2px solid var(--cyan);
  padding: 0.15rem 0 0.15rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero-transmission .eyebrow{ display: block; }
.hero-transmission h4{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin: 0;
}
.hero-transmission p{
  color: var(--ink-muted);
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
.hero-transmission .readmore{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--cyan-soft);
}
.hero-transmission .readmore:hover{ text-decoration: underline; }

.btn{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 1.6rem;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.btn-primary{
  background: var(--cyan);
  color: #04141a;
  border-color: var(--cyan);
  box-shadow: 0 0 0 rgba(77,227,255,0);
}
.btn-primary:hover{
  box-shadow: 0 0 28px rgba(77,227,255,0.55);
  transform: translateY(-1px);
}
.btn-ghost{
  color: var(--ink);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover{ border-color: var(--cyan); color: var(--cyan-soft); }

/* ---------- ticker (sticky, under nav, all pages) ---------- */
.ticker{
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 49;
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
  overflow: hidden;
}
.ticker-track{
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: ticker-scroll 34s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ticker-track span{ display: inline-flex; align-items: center; gap: 0.5em; white-space: nowrap; }
.ticker-track span b{ color: var(--cyan-soft); font-weight: 500; }
.ticker-track .dot{ color: var(--ink-faint); }
@keyframes ticker-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ---------- intercepted transmission (home only) ---------- */
.intercepted{
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.intercepted-inner{
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.intercepted-status{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin: 0;
}
.intercepted-status.blink{
  animation: intercepted-blink 1.8s ease-in-out infinite;
}
@keyframes intercepted-blink{
  0%, 100%{ opacity: 1; }
  50%{ opacity: 0.35; }
}
.intercepted-body{
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}
.intercepted-signature{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  margin: 0;
}

/* ---------- signal divider ---------- */
.signal-divider{
  position: relative;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.signal-divider::before{
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 6px; height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 10px 2px rgba(77,227,255,0.9);
  transform: translateX(-50%);
}
.signal-divider::after{
  content: "";
  position: absolute;
  top: 0; left: -22%;
  width: 22%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan-soft), transparent);
  box-shadow: 0 0 14px 2px rgba(77,227,255,0.85);
  animation: signal-sweep 4.5s linear infinite;
}
@keyframes signal-sweep{
  0%{ left: -22%; }
  100%{ left: 100%; }
}
@media (prefers-reduced-motion: reduce){
  .signal-divider::after{ animation: none; display: none; }
}

/* ---------- page head (subpages) ---------- */
.page-head{
  padding: calc(var(--header-h) + var(--ticker-h) + clamp(2rem, 7vw, 3.5rem)) clamp(1.25rem, 4vw, 3rem) clamp(2.25rem, 4vw, 3.25rem);
  max-width: 1180px;
  margin: 0 auto;
}
.page-head h1{ font-size: clamp(2.1rem, 4.6vw, 3.2rem); max-width: 16ch; }
.page-head .lede{ margin-top: 1rem; }

/* ---------- home index grid ---------- */
.index-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--line);
  border: 1px solid var(--line);
}
.index-tile{
  background: var(--bg-panel);
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: background 0.2s ease;
}
.index-tile:hover{ background: var(--bg-panel-raised); }
.index-tile h3{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}
.index-tile p:not(.eyebrow){ color: var(--ink-muted); font-size: 0.86rem; flex: 1; }
.index-tile .arrow{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--cyan-soft);
}

/* ---------- sections ---------- */
section.block{ padding: clamp(2.75rem, 5vw, 5rem) 0; }
.block-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.6rem;
  flex-wrap: wrap;
}
.block-head h2{ font-size: clamp(1.7rem, 3vw, 2.5rem); }
.block-head .desc{ color: var(--ink-muted); max-width: 34ch; font-size: 0.94rem; }
.block-num{
  font-family: var(--font-mono);
  color: var(--ink-faint);
  font-size: 0.8rem;
}

/* transmissions */
.transmissions-grid{
  display: flex;
  align-items: stretch;
  gap: 1.5px;
  background: var(--line);
  border: 1px solid var(--line);
}
.post{
  background: var(--bg-panel);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
  transition: background 0.2s ease;
}
.post:hover{ background: var(--bg-panel-raised); }
.post.feature{ flex: 1.3 1 0; justify-content: flex-start; min-height: 320px; }
.post-meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.tag{
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink-muted);
}
.tag.watch{ color: var(--magenta); border-color: rgba(255,61,122,0.35); }
.tag[href]{ cursor: pointer; transition: all 0.15s ease; }
.tag[href]:hover{ color: var(--cyan-soft); border-color: var(--cyan-dim); background: rgba(77,227,255,0.06); }
.tag.watch[href]:hover{ color: var(--magenta); border-color: var(--magenta); background: rgba(255,61,122,0.06); }
.post h3{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.post.feature h3{ font-size: 1.6rem; }
.post p{
  color: var(--ink-muted);
  font-size: 0.92rem;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: pre-line;
}
.bottom-panels{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5px;
  margin-top: 2.5rem;
  background: var(--line);
  border: 1px solid var(--line);
}
.bottom-panels.single{ justify-content: center; background: none; border: none; }
.bottom-panel{
  flex: 1 1 0;
  min-width: 260px;
  background: var(--bg-panel);
  padding: 1.8rem;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}
a.bottom-panel:hover{ background: var(--bg-panel-raised); }
.bottom-panels.single .bottom-panel{ flex: 0 1 480px; border: 1px solid var(--line); }
.bottom-panel h3{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 0.5rem;
}
.bottom-panel-embed{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 1rem;
  background: var(--bg-void);
  border: 1px solid var(--line);
  overflow: hidden;
}
.bottom-panel-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.post-end-marker{
  margin-top: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

/* right-hand list: exactly 3, each evenly filling the matched height */
.post-col{
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}
.post-col .post{
  flex: 1 1 0;
  cursor: pointer;
  border-left: 2px solid transparent;
  justify-content: center;
}
.post-col .post:not(:first-child){
  border-top: 1px solid var(--line);
}
.post-col .post h3{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-col .post p{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-col .post.active{
  background: var(--bg-panel-raised);
  border-left-color: var(--cyan);
}
.post-col .post.active h3{ color: var(--cyan-soft); }

.pagination{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 1.75rem;
}
.pagination .page-indicator{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.pagination .btn{ padding: 0.6rem 1.2rem; }

/* freebies */
.freebie-board{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.freebie-card{
  background: var(--bg-panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  overflow: hidden;
}
.freebie-card .fmt{
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--cyan-soft);
}
.freebie-card h3{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 41px;
}
.freebie-card p{
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 41px;
}
.redeem{
  margin-top: auto;
  border-top: 1px dashed var(--line-strong);
  padding-top: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  height: 140px;
  min-height: 0;
  overflow: hidden;
}
.redeem-row{ display: flex; justify-content: space-between; color: var(--ink-muted); }
.redeem-row b{ color: var(--ink); font-weight: 500; }
.redeem-row.warn b{ color: var(--amber); }

.success-msg{
  background: rgba(77,227,255,0.08);
  border: 1px solid rgba(77,227,255,0.3);
  color: var(--cyan-soft);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.7rem 0.9rem;
}
.error-msg-inline{
  background: rgba(255,61,122,0.1);
  border: 1px solid rgba(255,61,122,0.35);
  color: #ffb4c8;
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.6rem 0.8rem;
}
.code-input{
  position: relative;
  display: flex;
  border: 1px solid var(--line-strong);
  background: var(--bg-void);
}
.code-input .error-msg-inline{
  position: absolute;
  left: 0; right: 0;
  bottom: calc(100% + 0.6rem);
  z-index: 6;
  background: #1c0d13;
  box-shadow: 0 10px 28px rgba(0,0,0,0.6);
}
.code-input input{
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.55rem 0.7rem;
  letter-spacing: 0.08em;
}
.code-input input::placeholder{ color: var(--ink-faint); }
.code-input input:focus-visible{ outline-offset: -2px; }
.code-input button{
  flex-shrink: 0;
  white-space: nowrap;
  background: var(--cyan-dim);
  color: var(--cyan-soft);
  border: none;
  padding: 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}
.code-input button:hover{ background: var(--cyan); color: #04141a; }

/* shop */
.shop-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.product{
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.product:hover{ border-color: var(--cyan-dim); background: var(--bg-panel-raised); }
.product .thumb{
  aspect-ratio: 16/10;
  background:
    repeating-linear-gradient(135deg, rgba(77,227,255,0.06) 0 2px, transparent 2px 10px),
    linear-gradient(160deg, var(--bg-panel-hi), var(--bg-panel));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  overflow: hidden;
}
.product .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product h3{ font-family: var(--font-body); font-weight: 700; font-size: 1rem; }
.product .meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.price{
  background: var(--bg-panel-hi);
  border: 1px solid var(--line-strong);
  padding: 0.2rem 0.55rem;
  color: var(--cyan-soft);
}
.delivery{ color: var(--ink-faint); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* static dash game */
.game-layout{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.game-wrap{
  position: relative;
  height: 480px;
  border: 1px solid var(--line);
  background: var(--bg-void);
  overflow: hidden;
}
#gameCanvas{
  display: block;
  width: 100%;
  height: 100%;
}
.game-hud{
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  background: rgba(10,14,20,0.6);
  border: 1px solid var(--line-strong);
  padding: 0.35rem 0.7rem;
  text-transform: uppercase;
}
.game-hud b{ color: var(--cyan-soft); font-size: 0.9rem; }
.game-overlay{
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
  padding: 2rem;
  background: rgba(10,14,20,0.86);
  backdrop-filter: blur(6px);
}
.game-overlay h3{ font-size: clamp(1.3rem, 3vw, 1.8rem); }

.game-leaderboard{
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 1.5rem;
}
.leaderboard-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.leaderboard-list li{
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.88rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.leaderboard-list li:last-child{ border-bottom: none; }
.lb-rank{ color: var(--ink-faint); width: 1.4em; flex: 0 0 auto; }
.lb-name{ flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score{ color: var(--cyan-soft); font-weight: 700; }

@media (max-width: 860px){
  .game-layout{ grid-template-columns: 1fr; }
  .game-wrap{ height: 380px; }
}

/* fun */
.status-panel{
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 12px),
    var(--bg-panel);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.status-panel-text h3{ font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 0.6rem; }
.status-panel-text p{ color: var(--ink-muted); max-width: 40ch; font-size: 0.92rem; }
.status-badge{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line-strong);
  padding: 0.6rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6em;
  flex: 0 0 auto;
}
.status-badge .led{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-faint);
}
.status-badge.on{ color: var(--cyan-soft); border-color: rgba(77,227,255,0.4); }
.status-badge.on .led{
  background: var(--cyan);
  box-shadow: 0 0 8px 2px rgba(77,227,255,0.8);
}

/* contact */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--line);
  border: 1px solid var(--line);
}
.contact-card{
  background: var(--bg-panel);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background 0.2s ease;
}
.contact-card:hover{ background: var(--bg-panel-raised); }
.contact-card-empty{ background: var(--bg-panel); }
.contact-card h3 svg{ flex-shrink: 0; width: 20px; height: 20px; }
.contact-card h3{ font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; }
.contact-card p{ color: var(--ink-muted); font-size: 0.9rem; }
.contact-card .link{
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--cyan-soft);
}
.contact-card .link:hover{ text-decoration: underline; }

/* ---------- footer ---------- */
footer{
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--footer-h);
  background: rgba(10, 14, 20, 0.7);
  backdrop-filter: blur(14px) saturate(120%);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
footer .flinks{ display: flex; gap: 1.4rem; }
footer .flinks a:hover{ color: var(--cyan-soft); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .ticker-track{ animation: none; }
  .audio-toggle.on .audio-dot{ animation: none; }
  .glitch-text::before, .glitch-text::after{ display: none; }
  .intercepted-status.blink{ animation: none; }
}

@media (max-width: 1100px){
  .freebie-board{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px){
  .transmissions-grid{ flex-direction: column; }
  .post.feature{ min-height: 0; flex: none; }
  .post-col{ flex: none; }
  .post-col .post{ flex: none; }
  .shop-grid{ grid-template-columns: repeat(2, 1fr); }
  .index-grid{ grid-template-columns: repeat(2, 1fr); }
  .freebie-board{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-card-empty{ display: none; }
  .signage{ display: none; }
  .signal-pair{ display: none; }
}
@media (max-width: 560px){
  .shop-grid{ grid-template-columns: 1fr; }
  .index-grid{ grid-template-columns: 1fr; }
  .freebie-board{ grid-template-columns: 1fr; }
  .nav{ gap: 0.75rem; }
  .audio-toggle span.label{ display: none; }
  .nav-social{ display: none; }
}
