/* NETWORK XXIII — site stylesheet.
   Three skins (Raza / Station / Leviathan) swap the tokens on :root[data-skin]; the brand red never changes.
   Layout: sticky header with station clock, news crawl, hero (the station), programme guide, sectors,
   ship's log + transmissions, fleet, footer. */

@font-face { font-family: "Chakra Petch"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/chakra-petch-500.woff2) format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/chakra-petch-600.woff2) format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/chakra-petch-700.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 100 900; font-style: normal; font-display: swap; src: url(/fonts/outfit-variable.woff2) format("woff2"); }
@font-face { font-family: "Share Tech Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/share-tech-mono.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --brand: #cd2127;
  --display: "Chakra Petch", "Trebuchet MS", Arial, sans-serif;
  --body: "Outfit", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Share Tech Mono", "Consolas", "Courier New", monospace;
  /* Raza (Dark Matter): near-black, brushed steel, square. The default. */
  --bg: #09090b;
  --bg2: #0e0e11;
  --panel: #131316;
  --line: #2a2a30;
  --fg: #d4d4d8;
  --muted: #7d7d88;
  --accent: #9fb0c4;
  --accent-ink: #0a0d12;
  --ok: #5ad0a0;
  --warn: #e0b04a;
  --down: #e5484d;
  --radius: 0px;
  --panel-grad: linear-gradient(180deg, #17171b 0%, #111114 100%);
  --glow: none;
  --body-face: var(--mono);
}
:root[data-skin="station"] {
  /* Babylon 5: steel blue, amber accents, hard panel chrome */
  --bg: #070b14;
  --bg2: #0b1120;
  --panel: #0f1728;
  --line: #1e2a42;
  --fg: #d9e0ec;
  --muted: #8391a8;
  --accent: #f2b134;
  --accent-ink: #1a1200;
  --ok: #4fd18b;
  --warn: #f2b134;
  --radius: 4px;
  --panel-grad: linear-gradient(180deg, #121c31 0%, #0d1526 100%);
  --glow: 0 0 24px rgba(242,177,52,.18);
  --body-face: var(--body);
}
:root[data-skin="leviathan"] {
  /* Farscape: amber, organic curves, warm glow */
  --bg: #120b05;
  --bg2: #1a0f07;
  --panel: #23150a;
  --line: #4a2f14;
  --fg: #f3e4cc;
  --muted: #b08a62;
  --accent: #e8a43a;
  --accent-ink: #1c1000;
  --ok: #9ad76a;
  --warn: #e8a43a;
  --radius: 18px;
  --panel-grad: radial-gradient(120% 90% at 20% 0%, #33200f 0%, #1d1208 70%);
  --glow: 0 0 32px rgba(232,164,58,.22);
  --body-face: var(--body);
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body-face); font-size: 16px; line-height: 1.55; font-weight: 300; background: var(--bg); color: var(--fg); overflow-x: hidden; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg2); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, .h2 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 760px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.eyebrow.tiny { font-size: 10.5px; margin-top: 12px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--bg2) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 18px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand img { height: 48px; width: auto; display: block; }
nav.main { display: flex; gap: 4px; flex-wrap: wrap; }
nav.main a { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); padding: 6px 10px; border-radius: var(--radius); }
nav.main a:hover { background: var(--panel); text-decoration: none; }
.clock { margin-left: auto; display: flex; gap: 14px; font-family: var(--mono); font-size: 12px; }
.clock div { display: grid; line-height: 1.2; }
.clock span { color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.clock b { font-weight: 400; font-size: 15px; }
.clock .net b { color: var(--accent); }
.hdr-tools { display: flex; gap: 8px; align-items: center; }
.btn { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); background: var(--panel); border: 1px solid var(--line); padding: 7px 11px; border-radius: var(--radius); cursor: pointer; display: inline-block; line-height: 1.4; }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn kbd { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 6px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: var(--glow); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg button { font-family: var(--display); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: transparent; color: var(--muted); border: 0; padding: 7px 10px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- ticker ---------- */
.ticker { background: var(--brand); color: #fff; overflow: hidden; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.ticker .inner { display: flex; align-items: stretch; }
.ticker .tag { background: #fff; color: var(--brand); font-family: var(--display); font-weight: 700; letter-spacing: .14em; padding: 6px 12px; flex: none; display: flex; align-items: center; padding-left: max(16px, env(safe-area-inset-left, 0px)); }
.ticker .track { flex: 1; min-width: 0; overflow: hidden; position: relative; }
.ticker .crawl { display: inline-flex; gap: 48px; white-space: nowrap; padding: 6px 0; animation: crawl 70s linear infinite; }
.ticker .crawl span::before { content: "▮ "; opacity: .6; }
.ticker:hover .crawl { animation-play-state: paused; }
@keyframes crawl { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(80% 70% at 70% 30%, color-mix(in srgb, var(--accent) 9%, transparent) 0%, transparent 60%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; padding-block: 56px 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 5.2vw, 64px); letter-spacing: -.01em; text-transform: uppercase; margin-top: 10px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 19px; max-width: 34em; margin: 18px 0 0; color: color-mix(in srgb, var(--fg) 82%, var(--muted)); }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.board { background: var(--panel-grad); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.board .eyebrow { display: flex; justify-content: space-between; gap: 10px; }
.board .live { color: var(--ok); }
.board .live::before { content: "●"; margin-right: 6px; animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.board ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; font-family: var(--mono); font-size: 13.5px; }
.board li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: baseline; padding-bottom: 7px; border-bottom: 1px dashed var(--line); }
.board li:last-child { border-bottom: 0; }
.board li .ch { color: var(--muted); }
.pill { font-family: var(--display); font-weight: 700; font-size: 10.5px; letter-spacing: .12em; padding: 2px 7px; border-radius: 2px; text-transform: uppercase; white-space: nowrap; }
.pill.on { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.pill.standby { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.pill.off { background: color-mix(in srgb, var(--down) 22%, transparent); color: var(--down); }
/* the station: a spine and a rotating ring, CSS 3D */
.station { position: absolute; right: -60px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%); pointer-events: none; opacity: .5; perspective: 900px; z-index: 0; }
.station .ring { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border: 2px dashed var(--accent); border-radius: 50%; transform: rotateX(72deg) rotateZ(0deg); animation: spin 40s linear infinite; }
.station .ring.inner { width: 300px; height: 300px; margin: -150px 0 0 -150px; border-style: solid; border-width: 1px; opacity: .5; animation-duration: 55s; animation-direction: reverse; }
.station .spine { position: absolute; left: 50%; top: 8%; width: 6px; height: 84%; margin-left: -3px; background: linear-gradient(180deg, transparent, var(--accent) 15%, var(--accent) 85%, transparent); opacity: .6; }
@keyframes spin { to { transform: rotateX(72deg) rotateZ(360deg); } }
.drd { position: absolute; left: 0; top: 0; width: 26px; height: 18px; border-radius: 60% 60% 45% 45%; background: #f2c53d; box-shadow: inset -4px -3px 0 #b88a12, 0 2px 4px rgba(0,0,0,.5); cursor: pointer; pointer-events: auto; z-index: 2; }
.drd::before, .drd::after { content: ""; position: absolute; top: -9px; width: 2px; height: 10px; background: #c7c7c7; left: 8px; transform: rotate(-12deg); }
.drd::after { left: 15px; transform: rotate(12deg); }
.drd i { position: absolute; left: 6px; top: 5px; width: 6px; height: 4px; background: #e5484d; border-radius: 2px; box-shadow: 8px 0 0 #e5484d; }
.drd.flee i { background: #4fd18b; box-shadow: 8px 0 0 #4fd18b; }

/* ---------- sections ---------- */
section.block, article.block { padding-block: 48px; border-bottom: 1px solid var(--line); }
.page { padding-block: 56px 64px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-head h2, .h2 { font-size: 26px; text-transform: uppercase; letter-spacing: .04em; }
.sec-head p { margin: 4px 0 0; color: var(--muted); max-width: 48em; }

/* programme guide */
.guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; background: var(--panel-grad); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 14px; display: grid; gap: 10px; min-width: 0; color: var(--fg); transition: border-color .2s, transform .2s; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.tile.flash { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.tile .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tile .ch { font-family: var(--mono); color: var(--muted); font-size: 12px; letter-spacing: .14em; }
.tile h3 { font-size: 20px; letter-spacing: .02em; }
.tile .host { font-family: var(--mono); font-size: 12.5px; color: var(--accent); word-break: break-all; }
.tile p { margin: 0; font-size: 14.5px; color: color-mix(in srgb, var(--fg) 85%, var(--muted)); }
.tile .meta { display: flex; justify-content: space-between; align-items: end; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 1px 6px; border-radius: 2px; }
.xpdr { display: flex; align-items: end; gap: 2px; height: 16px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.xpdr b { display: inline-block; width: 3px; background: var(--ok); animation: xp 1.2s ease-in-out infinite; }
.xpdr b:nth-child(2) { animation-delay: .15s; } .xpdr b:nth-child(3) { animation-delay: .3s; } .xpdr b:nth-child(4) { animation-delay: .45s; }
.xpdr span { margin-left: 6px; }
@keyframes xp { 0%,100% { height: 4px; } 50% { height: 14px; } }
.tile.standby, .tile.off { background: var(--panel); }
.tile.standby::before, .tile.off::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .07; pointer-events: none;
  background: linear-gradient(90deg, #fff 0 14.3%, #ff0 0 28.6%, #0ff 0 42.9%, #0f0 0 57.2%, #f0f 0 71.5%, #f00 0 85.8%, #00f 0 100%); }
.tile .standby-note { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sector { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding-left: 10px; border-left: 3px solid var(--sector-color, var(--line)); color: var(--muted); }

/* sectors */
.sectors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sectors div { border-top: 4px solid var(--sector-color, var(--line)); padding-top: 10px; min-width: 0; }
.sectors h3 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.sectors p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

/* log + transmissions */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.log li { display: grid; grid-template-columns: 112px 1fr; gap: 14px; }
.log time { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 3px; }
.log p { margin: 0; font-size: 15px; }
.log p b { font-family: var(--display); font-weight: 600; color: var(--accent); display: block; font-size: 14px; letter-spacing: .04em; }
.posts { display: grid; gap: 10px; }
.post { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--panel); color: var(--fg); }
.post:hover { border-color: var(--accent); text-decoration: none; }
.post h3 { font-size: 17px; }
.post p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.post .eyebrow { margin-bottom: 6px; }
.more { margin: 16px 0 0; font-family: var(--mono); font-size: 13px; }
.post-title { font-size: clamp(28px, 4vw, 40px); margin-top: 10px; }
.prose { margin-top: 28px; font-size: 17px; max-width: 65ch; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; letter-spacing: .02em; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose code { font-family: var(--mono); font-size: .92em; background: var(--panel); border: 1px solid var(--line); padding: 1px 5px; border-radius: 2px; }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 14px; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.prose img { border-radius: var(--radius); }

/* fleet */
.fleet { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ship { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--panel); min-width: 0; }
.ship b { font-family: var(--display); font-weight: 600; letter-spacing: .06em; display: block; }
.ship span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); display: block; }
.ship .cls { color: var(--accent); }

/* 404 */
.notfound .frell { font-size: clamp(64px, 14vw, 160px); text-transform: uppercase; color: var(--brand); letter-spacing: -.02em; margin-top: 8px; }
.kosh { margin: 28px 0 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--panel); font-size: 18px; }
.kosh cite { display: block; font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--muted); margin-top: 8px; letter-spacing: .14em; }

/* footer */
footer { padding-block: 40px 60px; }
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
footer pre { font-family: var(--mono); font-size: 12.5px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 8px 0 0; overflow-x: auto; color: color-mix(in srgb, var(--fg) 80%, var(--muted)); }
footer pre .k { color: var(--accent); } footer pre .d { color: var(--down); } footer pre .c { color: var(--muted); }
footer ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; font-size: 14.5px; }
footer .fine { grid-column: 1 / -1; font-family: var(--mono); font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- boot sequence ---------- */
#boot { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; overflow: hidden; }
#boot .stage { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
#boot .stage.show { opacity: 1; }
#boot .bars { background: linear-gradient(90deg, #c0c0c0 0 14.3%, #c0c000 0 28.6%, #00c0c0 0 42.9%, #00c000 0 57.2%, #c000c0 0 71.5%, #c00000 0 85.8%, #0000c0 0 100%); }
#boot .bars::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(90deg, #0000c0 0 14.3%, #131313 0 28.6%, #c000c0 0 42.9%, #131313 0 57.2%, #00c0c0 0 71.5%, #131313 0 85.8%, #c0c0c0 0 100%); }
#boot .card { position: relative; z-index: 1; background: #000; color: #fff; font-family: var(--display); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; padding: 18px 28px; border: 4px double #fff; text-align: center; font-size: clamp(13px, 2.4vw, 20px); }
#boot .card small { display: block; font-family: var(--mono); font-weight: 400; letter-spacing: .2em; font-size: 11px; margin-top: 8px; color: #bbb; }
#boot canvas { width: 100%; height: 100%; image-rendering: pixelated; }
#boot .logo img { width: min(42vw, 220px); height: auto; animation: glitch .25s steps(2) infinite; filter: drop-shadow(0 0 30px rgba(205,33,39,.5)); }
#boot .logo.settle img { animation: none; }
@keyframes glitch { 0% { transform: translate(0,0) skewX(0); clip-path: inset(0 0 0 0); } 25% { transform: translate(-6px,2px) skewX(6deg); clip-path: inset(10% 0 40% 0); } 50% { transform: translate(5px,-2px) skewX(-4deg); clip-path: inset(50% 0 5% 0); } 75% { transform: translate(-2px,1px); clip-path: inset(0 0 0 0); } }
#boot .scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 2px, transparent 2px 4px); pointer-events: none; }
#boot .skip { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 2; background: transparent; color: #aaa; border: 1px solid #555; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; padding: 6px 12px; cursor: pointer; }
#boot.out { animation: tvoff .35s ease-in forwards; }
@keyframes tvoff { to { transform: scaleY(.004) scaleX(1.2); opacity: 0; } }

/* ---------- blink drive ---------- */
#blink { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6); display: grid; place-items: start center; padding: 12vh max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
#blink .box { width: min(640px, 100%); background: var(--bg2); border: 1px solid var(--accent); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; }
#blink input { width: 100%; font-family: var(--mono); font-size: 18px; background: transparent; color: var(--fg); border: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; }
#blink input:focus { outline: none; }
#blink ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
#blink li { padding: 9px 10px; border-radius: var(--radius); display: flex; justify-content: space-between; gap: 10px; cursor: pointer; font-size: 15px; }
#blink li span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
#blink li[aria-selected="true"] { background: var(--panel); color: var(--accent); }
#blink .hint { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 8px 16px; border-top: 1px solid var(--line); }

/* ---------- toast / max mode ---------- */
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 95; background: var(--panel); border: 1px solid var(--accent); color: var(--fg); padding: 10px 16px; border-radius: var(--radius); font-size: 14.5px; max-width: min(90vw, 560px); text-align: center; box-shadow: var(--glow); }
#toast b { font-family: var(--display); color: var(--accent); }
body.max h1, body.max h2, body.max h3, body.max .brand { animation: maxjit 1.1s steps(3) infinite; text-shadow: 2px 0 #0ff, -2px 0 #f0f; }
body.max .hero { filter: contrast(1.15); }
@keyframes maxjit { 0%,100% { transform: translate(0,0); } 33% { transform: translate(-1px,1px) skewX(-2deg); } 66% { transform: translate(2px,-1px) skewX(1deg); } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two, footer .wrap { grid-template-columns: 1fr; }
  .station { opacity: .25; }
}
@media (max-width: 620px) {
  .guide { grid-template-columns: 1fr; }
  .clock { margin-left: 0; width: 100%; justify-content: space-between; }
  .clock .utc { display: none; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
  .sectors { grid-template-columns: 1fr; }
  .station { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker .crawl { animation: none; }
  .station .ring, .xpdr b, .board .live::before, body.max h1, body.max h2, body.max h3, body.max .brand { animation: none; }
  .tile { transition: none; }
}
