:root {
  color-scheme: dark;
  --bg: #020810;
  --panel: #030d17;
  --line: rgba(56, 164, 226, .38);
  --cyan: #35cfff;
  --white: #edf7ff;
  --muted: #9bb4c8;
  --red: #ff294b;
  --green: #3fe29b;
  --gutter: clamp(22px, 2.4vw, 34px);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--white); background: radial-gradient(ellipse at 50% 0, #071c2d, #020810 65%); font: 14px/1.4 "Segoe UI", Arial, sans-serif; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 2px solid #82e4ff; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 2000; padding: 12px; background: white; color: black; }
.skip:focus { top: 12px; }
.page-shell { position: relative; width: min(calc(100% - 28px), var(--max)); margin: 12px auto; border: 1px solid #197bae; border-radius: 15px; overflow: clip; background: var(--bg); box-shadow: 0 0 30px #029eff16; }
.topbar { position: absolute; z-index: 30; inset: 0 0 auto; height: 86px; padding: 0 var(--gutter); display: grid; grid-template-columns: 190px 1fr 105px; align-items: center; gap: 20px; background: linear-gradient(#01070dc9, transparent); }
.mini-brand { display: flex; flex-direction: column; align-items: flex-start; width: max-content; }
.brand-wordmark, .hero-wordmark { display: block; position: relative; overflow: hidden; }
.brand-wordmark { width: 178px; height: 30px; }
.brand-wordmark img, .hero-logo { position: absolute; width: 150%; height: auto; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%); mix-blend-mode: screen; }
.mini-brand small { padding-left: 2px; color: var(--cyan); font-size: 10px; letter-spacing: 3.5px; }
.topnav { display: flex; justify-content: center; gap: clamp(12px, 2.5vw, 36px); font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.topnav i { display: none; }
.topnav a { position: relative; padding: 12px 0; }
.topnav a::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); transform: scaleX(0); transition: transform .25s ease; }
.topnav a:hover::after, .topnav a:focus-visible::after, .topnav a[aria-current]::after { transform: scaleX(1); }
.process-mark { justify-self: end; display: flex; flex-direction: column; font-size: 11px; line-height: 1.2; letter-spacing: 1.5px; color: #b8e4fa; }
.process-mark em { width: 54px; height: 1px; margin-top: 9px; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #061725dd; padding: 9px; }
.menu-button span { display: block; height: 2px; background: #def5ff; margin: 4px 0; }

/* Keep identity placement independent from reveal transforms. */
.hero { position: relative; isolation: isolate; display: grid; grid-template-rows: minmax(370px, 1fr) auto; min-height: clamp(492px, 49vw, 624px); padding: 0 var(--gutter) 12px; }
.hero-bg, .hero-vignette, .spark-layer { position: absolute; inset: 0; pointer-events: none; }
.hero-bg { z-index: -4; background: url('/assets/images/hero-desktop.webp') center 48% / cover no-repeat; animation: heroDrift 24s ease-in-out infinite alternate; }
.hero-vignette { z-index: -3; background: linear-gradient(180deg, #02081022 30%, #02081008 57%, #020810ed 100%), linear-gradient(90deg, #02081066, transparent 55%, #02081011); }
.spark-layer { z-index: -2; opacity: .2; background: radial-gradient(ellipse at 44% 20%, #49caff25, transparent 50%); animation: ambientGlow 10s ease-in-out infinite alternate; }
.hero-copy { position: absolute; top: 38%; left: 20%; width: 37%; text-align: center; mix-blend-mode: screen; }
.hero-wordmark { width: 100%; aspect-ratio: 6.5; }
.hero-logo { animation: logoBreath 6s ease-in-out infinite; }
.hero-copy p { margin: 8px 0 0; }
#discipline-row { color: #75ddff; font-size: clamp(11px, 1.2vw, 15px); letter-spacing: clamp(.4px, .1vw, 1.4px); white-space: nowrap; }
.hero-copy .hero-tagline { margin-top: 9px; font-size: 13px; color: #daeaf7; }
.hud-left { position: absolute; top: 98px; left: var(--gutter); width: 148px; display: grid; gap: 11px; }
.hud-card { border: 1px solid var(--line); border-radius: 7px; background: #020c16bd; box-shadow: inset 0 0 20px #0d97ed0d; backdrop-filter: blur(7px); }
.clock-card { padding: 13px 14px; }
.clock-card > span { font-size: 11px; color: #b9deee; white-space: nowrap; }
.clock-card > strong { display: block; font-size: 31px; line-height: 1.15; font-weight: 600; }
.clock-card > small { color: #7fd6f9; font-size: 10px; letter-spacing: 1px; }
#clock-extra { display: grid; gap: 3px; margin-top: 12px; }
.clock-extra-row { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.clock-extra-row b { font-weight: 500; }
.clock-extra-row span { color: #aac8dc; }
.stats-card { padding: 7px 12px; }
.stats-card > div { display: grid; grid-template-columns: 27px minmax(0, 1fr); grid-template-rows: auto auto; padding: 6px 0; }
.stats-card div > span { grid-row: 1 / 3; align-self: center; font-size: 23px; color: var(--cyan); text-shadow: 0 0 12px #21baff60; }
.stats-card svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stats-card b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stats-card div > small { color: #bed4e5; font-size: 10px; }
.stats-note { color: #e8c568; font-size: 8px; letter-spacing: .5px; }
.left-mantra { display: none; }
.right-mantra { position: absolute; right: var(--gutter); top: 29%; display: flex; flex-direction: column; color: #8cdcff; font-size: 12px; line-height: 1.35; letter-spacing: .5px; }
.platform-row-wrap { z-index: 2; grid-row: 2; min-width: 0; display: flex; gap: 12px; align-items: stretch; }
.platform-row { flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(108px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #185376 transparent; padding: 5px 1px; }
.platform-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 104px; padding: 9px 6px; border: 1px solid #277caf; border-radius: 11px; background: linear-gradient(160deg, #071b2cdb, #020b14ed 65%); box-shadow: inset 0 0 20px #1782bc13, 0 3px 12px #0005; scroll-snap-align: start; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.platform-card strong { max-width: 100%; text-align: center; font-size: 13px; line-height: 1.2; font-weight: 500; overflow-wrap: anywhere; }
.platform-card small { font-size: 11px; color: #adc8dd; max-width: 100%; overflow-wrap: anywhere; }
.platform-icon { width: 36px; height: 36px; display: grid; place-items: center; filter: drop-shadow(0 0 7px #2cbcff30); }
.platform-icon svg { width: 34px; height: 34px; }
.platform-more { width: clamp(94px, 10vw, 132px); flex: 0 0 auto; margin: 5px 0; }
.plus { font-size: 37px; line-height: 1; color: var(--cyan); font-weight: 200; }
.platform-more .plus { display: grid; place-items: center; width: 36px; height: 36px; }
/* Reserve the handle row so More shares the platform icon and label baselines. */
.platform-more small { display: block; visibility: hidden; }

.section-pad { padding: 0 var(--gutter) 18px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 18px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(155deg, #04111d, #01080f); overflow: hidden; }
.panel-head { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 13px; }
.panel-head h2 { margin: 0; font-size: 18px; font-weight: 650; }
.live-panel { border-color: #315b74; border-top-color: #506a7c; }
.live-name { display: flex; align-items: center; gap: 8px; color: var(--red); }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: #758b9c; }
.live-state { font-size: 10px; font-weight: 600; letter-spacing: .6px; padding: 3px 6px; color: #a2b9cc; border: 1px solid #526779; border-radius: 4px; background: #11212c; }
.live-panel[data-live="true"] { border-top-color: var(--red); }
.live-panel[data-live="true"] .live-dot { background: var(--red); box-shadow: 0 0 14px #ff294b90; animation: livePulse 2s ease-in-out infinite; }
.live-panel[data-live="true"] .live-state { color: white; background: #9b1529; border-color: #f83252; }
.stream-shell { position: relative; margin: 0 13px; aspect-ratio: 16 / 8; border-radius: 5px; background: #051b2b; overflow: hidden; }
.stream-shell iframe { display: block; border: 0; width: 100%; height: 100%; }
/* The left-side skyline crop excludes the hero character without another image. */
.stream-placeholder { position: absolute; isolation: isolate; inset: 0; display: grid; place-items: center; overflow: hidden; background: linear-gradient(0deg, #010912ee, #03152218 70%, #010b1670), url('/assets/images/hero-desktop.webp') left 66% / 205% auto no-repeat; }
.stream-placeholder::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 50% 52%, #40cfff17, transparent 67%); pointer-events: none; animation: standbyGlow 9s ease-in-out infinite; }
.stream-placeholder::after { content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 24%; border-bottom: 1px solid #70dfff30; background: linear-gradient(transparent, #50d5ff07); pointer-events: none; animation: standbyScan 12s linear infinite; }
.standby-hud { position: absolute; top: 12px; left: 13px; color: #9fcbdc; font-size: 9px; font-weight: 500; letter-spacing: 1.6px; }
.standby-hud::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 7px 2px 0; border-radius: 50%; background: #79c9df; box-shadow: 0 0 7px #32bfe030; }
.standby-reticle { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #91d8f03b; border-radius: 50%; color: #b4d9e8; background: #04172644; transform: translateY(-8px); }
.standby-reticle svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.stream-copy { position: absolute; inset: auto 12px 13px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.stream-copy strong { font-size: 12px; font-weight: 600; letter-spacing: 3px; }
.stream-copy small { margin-top: 4px; font-size: 11px; color: #9fbcca; }
.live-footer { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 13px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-row span { border: 1px solid var(--line); padding: 3px 9px; border-radius: 4px; font-size: 12px; line-height: 1.3; }
.viewer-wrap { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.viewer-wrap small { color: var(--muted); font-size: 10px; }
.live-pill { padding: 3px 6px; border-radius: 4px; color: white; background: #e11b3b; font-size: 10px; font-weight: 700; }
.live-panel[data-live="false"] .viewer-wrap { display: none; }
.text-button { min-height: 32px; padding: 4px 0; flex: 0 0 auto; border: 0; background: transparent; color: var(--cyan); font-size: 12px; }
.filter-navigation { position: relative; min-width: 0; }
.filter-navigation::before, .filter-navigation::after { content: ""; position: absolute; z-index: 2; top: 0; bottom: 8px; width: 23px; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.filter-navigation::before { left: 0; background: linear-gradient(90deg, #030d17, #030d1700); }
.filter-navigation::after { right: 0; background: linear-gradient(270deg, #030d17, #030d1700); }
.filter-navigation[data-more-left="true"]::before, .filter-navigation[data-more-right="true"]::after { opacity: 1; }
.filter-scroller { overflow-x: auto; overscroll-behavior-x: contain; scroll-padding-inline: 24px; scrollbar-width: thin; scrollbar-color: #185376 transparent; }
.filter-scroller:focus-visible { outline-offset: -2px; }
.filter-row { display: flex; gap: 7px; width: max-content; padding: 0 12px 9px; }
.filter-chip { min-height: 31px; padding: 4px 12px; font-size: 11px; border: 1px solid var(--line); border-radius: 5px; color: #c3d9e9; background: #020a13; transition: background .2s ease, color .2s ease; }
.filter-chip:focus-visible { outline-offset: -3px; }
.filter-chip.active:focus-visible { outline-color: #03101d; }
.filter-chip.active { background: var(--cyan); color: #03101d; border-color: #7de4ff; box-shadow: 0 0 8px #31bfff20; }
.news-list { padding: 0 12px 7px; }
.news-item { position: relative; display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; min-height: 94px; padding: 10px 0; border-top: 1px solid #1e455f7a; cursor: pointer; transition: background .2s ease; }
.news-thumb { width: 86px; height: 73px; align-self: center; display: grid; place-items: center; overflow: hidden; border: 1px solid #226f9980; border-radius: 7px; background: radial-gradient(ellipse at 40% 30%, #1a587d, #06121f 80%); color: #7be0ff; font-size: 26px; }
.news-thumb img, .news-thumb video { width: 100%; height: 100%; object-fit: cover; }
.news-body { min-width: 0; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0 35px 4px 0; min-height: 18px; }
.news-meta > span { padding: 0 4px; border: 1px solid #217aa2; border-radius: 4px; font-size: 10px; color: #69d8ff; }
.news-meta .preview-badge { font-size: 8px; color: #dfc87c; border-color: #615637; letter-spacing: .3px; }
.news-item h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 4px; font-size: 13px; line-height: 1.35; font-weight: 650; letter-spacing: .08px; }
.news-item p { margin: 0; color: #98b0c3; font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-time { position: absolute; top: 12px; right: 0; font-size: 10px; color: #92aabd; font-variant-numeric: tabular-nums; }
.empty-news { padding: 32px 12px; color: var(--muted); line-height: 1.7; }
.empty-news a { color: var(--cyan); }
.expanded-feed { border-top: 1px solid var(--line); padding: 14px 12px; }
.expanded-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.expanded-head h3 { margin: 4px 0; font-size: 20px; }
.expanded-feed > p { color: var(--muted); font-size: 12px; }
.expanded-feed .niche-posts { padding: 8px 0 0; max-height: 620px; overflow-y: auto; }
.expanded-feed .niche-post { grid-template-columns: 1fr; }
.expanded-feed .niche-post-media { max-height: 210px; }

.network-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto 95px; align-items: center; gap: 22px; padding: 23px; border: 1px solid #28789e; border-radius: 9px; background: linear-gradient(90deg, #03101ceb, #051728ad 65%, #03101ccd), url('/assets/images/hero-desktop.webp') center 6% / 115% auto no-repeat; }
.eyebrow { color: #76d8ff; font-size: 10px; letter-spacing: 2px; }
.network-hero > div > .eyebrow { font-weight: 650; letter-spacing: 2.5px; }
.network-hero h2 { margin: 5px 0 7px; font-size: clamp(20px, 2vw, 26px); font-weight: 600; }
.network-hero p { max-width: 580px; margin: 0; color: #abc4d5; font-size: 12px; line-height: 1.6; }
.network-actions { display: flex; flex-direction: column; gap: 8px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 38px; padding: 8px 12px; border-radius: 5px; font-size: 11px; border: 1px solid #247aa5; }
.button.primary { color: #07141e; background: #3bcaff; border-color: #81e1ff; font-weight: 600; }
.button.ghost { background: #041723b3; color: #bfe7ff; }
.network-count { text-align: center; }
.network-count b { display: block; font-size: 38px; font-weight: 500; color: #e0f6ff; }
.network-count span { font-size: 10px; color: #83cce8; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; margin: 19px 0 12px; }
.section-title-row h2 { margin: 3px 0 0; font-size: 18px; font-weight: 600; }
.scroll-hint { color: #79cef0; font-size: 11px; }
.niche-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 5); gap: 12px; padding: 4px 1px 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #185376 transparent; }
.niche-card { position: relative; min-width: 0; min-height: 196px; display: flex; flex-direction: column; align-items: flex-start; padding: 14px 12px 12px; border: 1px solid #24648a; border-radius: 9px; background: linear-gradient(0deg, #020b14 8%, #020b14df 58%, #020b1494), url('/assets/images/hero-desktop.webp') 42% 9% / auto 165% no-repeat; cursor: pointer; scroll-snap-align: start; transition: transform .22s ease, border-color .22s ease; }
.niche-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border: 1px solid #2eaee25c; border-radius: 7px; color: #76ddff; background: #031724aa; font-size: 17px; text-shadow: 0 0 9px #2cc8ff40; }
.niche-card h3 { margin: 0 0 7px; font-size: 14px; font-weight: 600; }
.niche-card p { margin: 0 0 10px; color: #a6bdce; font-size: 11px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.niche-link { margin-top: auto; color: #67d2ff; font-size: 11px; }
.signature { position: relative; isolation: isolate; min-height: 134px; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 16px; border: 1px solid #399ac2; border-radius: 10px; padding: 19px 23px; background: linear-gradient(90deg, #020c18c9, #06162835 50%, #020c18c9), url('/assets/images/hero-desktop.webp') center 8% / cover; box-shadow: 0 0 16px #159bdd14, inset 0 -1px 12px #189cde18; }
.signature::before { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, #81ddff, transparent); box-shadow: 0 0 10px #37bfff66; pointer-events: none; }
.quote-mark { display: none; }
.signature-main { grid-column: 2; grid-row: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.signature-main h2 { margin: 0; font-size: clamp(18px, 2vw, 25px); font-weight: 700; letter-spacing: .45px; text-shadow: 0 2px 8px #010810c9; }
.signature-main span { margin-top: 1px; color: #35ceff; font: italic 30px/1.2 cursive; transform: rotate(-6deg); text-shadow: 0 0 10px #149cef80; }
.signature-copy { grid-column: 1; grid-row: 1; align-self: end; display: flex; flex-direction: column; color: #82dcff; letter-spacing: 1px; }
.signature-copy small { font-size: 10px; }
.signature-copy.right { grid-column: 3; text-align: right; }
.footer { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 16px; align-items: center; padding: 0 var(--gutter) 18px; font-size: 11px; color: #abc5d9; }
.footer > div:first-child { display: flex; flex-direction: column; }
.footer strong { font-size: 13px; color: #e8f6ff; }
.footer > span { text-align: right; }
.system-status { display: flex; align-items: center; justify-self: center; gap: 8px; }
.system-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px #3fe29b60; }
.footer > a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--cyan); font-size: 21px; }

/* Effects paint only inside the border; they never intercept controls. */
.neon-frame { position: relative; }
.neon-frame::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--angle), transparent 12%, #4bd8ff 18%, transparent 24% 64%, #237eff 70%, transparent 76%); mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0); pointer-events: none; opacity: .55; animation: borderRun 12s linear infinite; animation-play-state: paused; }
.niche-card::after { opacity: .42; animation-duration: 15s; animation-play-state: paused; }
.neon-frame.is-in-view::after { animation-play-state: running; }
.signature::after { opacity: .75; animation-duration: 14s; }
.reveal { opacity: 1; }
.reveal.is-visible { animation: revealIn .55s ease both; }
.platform-row-wrap.reveal.is-visible { animation: none; }
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes borderRun { to { --angle: 360deg; } }
@keyframes heroDrift { from { transform: scale(1.005); } to { transform: scale(1.022) translateY(-2px); } }
@keyframes ambientGlow { to { opacity: .45; } }
@keyframes standbyGlow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes standbyScan { 0% { transform: translateY(-100%); opacity: 0; } 8%, 82% { opacity: .65; } 100% { transform: translateY(430%); opacity: 0; } }
@keyframes logoBreath { 50% { filter: drop-shadow(0 0 6px #20baff35); } }
@keyframes livePulse { 50% { opacity: .55; } }
@keyframes revealIn { from { opacity: .25; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes feedIn { from { opacity: .35; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }
.news-list { animation: feedIn .25s ease; }
@media (hover: hover) and (pointer: fine) {
  .platform-card:hover, .niche-card:hover { transform: translateY(-2px); border-color: #58badd; box-shadow: 0 0 13px #1dacff18; }
  .news-item:hover { background: #137bb812; }
  .filter-chip:hover { border-color: var(--cyan); }
}

.drawer-backdrop { position: fixed; z-index: 1000; inset: 0; padding: 6vh 24px; overflow-y: auto; overscroll-behavior: contain; background: #01060dde; backdrop-filter: blur(10px); }
.drawer { width: min(820px, 100%); margin: auto; }
.drawer > .panel-head { padding: 12px 16px; }
.drawer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; padding: 16px; }
.close-button, .back-button { min-height: 40px; min-width: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 5px; background: #071c2c; color: #d0f1ff; }
.close-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; font-size: 24px; line-height: 1; }
.back-button { font-size: 12px; }
.niche-drawer { width: min(990px, 100%); min-height: 60vh; margin: auto; }
.niche-drawer-head { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 18px; border-bottom: 1px solid var(--line); background: #04111e; }
.niche-drawer-head h2 { font-size: 24px; margin: 4px 0; }
.niche-drawer-head p { color: var(--muted); font-size: 12px; margin: 0; }
.niche-actions { padding: 14px 18px 0; }
.niche-posts { display: grid; gap: 12px; padding: 14px 18px; }
.niche-post { min-width: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 15px; padding: 14px; border: 1px solid #194563; border-radius: 7px; background: #03101c; }
.niche-post-media { display: grid; place-items: center; min-height: 100px; overflow: hidden; border-radius: 5px; background: #082139; color: #70d4ff; font-size: 28px; }
.niche-post-media img, .niche-post-media video { display: block; width: 100%; height: 100%; max-height: 400px; object-fit: contain; }
.niche-post h3, .niche-post h4 { margin: 7px 0; font-size: 16px; overflow-wrap: anywhere; }
.niche-post p { margin: 0; color: #bfd4e3; font-size: 13px; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.65; }
.niche-post footer { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; color: #65d6ff; font-size: 12px; }
.mobile-dock { display: none; }

@media (min-width: 761px) and (max-width: 1050px) {
  .topbar { grid-template-columns: 162px 1fr 84px; gap: 12px; }
  .brand-wordmark { width: 156px; height: 27px; }
  .mini-brand small { font-size: 8px; letter-spacing: 3.4px; }
  .topnav { gap: 15px; font-size: 10px; }
  .process-mark { font-size: 9px; }
  .hud-left { width: 130px; top: 86px; gap: 10px; }
  .clock-card { padding: 10px 11px; }
  .clock-card > span { font-size: 10px; }
  .clock-card > strong { font-size: 28px; }
  .stats-card > div { padding: 4px 0; }
  .hero-copy { left: 22%; width: 38%; }
  .right-mantra { font-size: 10px; }
  .platform-row, .platform-row-wrap { gap: 10px; }
  .platform-row { grid-auto-columns: minmax(94px, 1fr); }
  .platform-card { height: 94px; }
  .platform-card strong { font-size: 12px; }
  .platform-card small { font-size: 10px; }
  .platform-icon svg { width: 31px; height: 31px; }
  .dashboard-grid { gap: 14px; }
  .panel-head h2 { font-size: 16px; }
  .news-item { grid-template-columns: 68px minmax(0, 1fr); gap: 9px; }
  .news-thumb { width: 68px; height: 65px; }
  .news-item h3 { font-size: 12px; }
  .news-item p { font-size: 11px; }
  .network-hero { grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 20px; }
  .network-count { display: none; }
  .niche-rail { grid-auto-columns: calc((100% - 36px) / 4); }
  .signature-copy small { font-size: 9px; }
}

@media (max-width: 760px) {
  :root { --gutter: 15px; }
  html { scroll-padding-top: 12px; scroll-padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .page-shell { width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .topbar { height: 70px; grid-template-columns: 1fr auto; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .brand-wordmark { width: 151px; height: 26px; }
  .mini-brand small { font-size: 8px; letter-spacing: 3.2px; }
  .menu-button { display: block; }
  .process-mark, .topnav { display: none; }
  .menu-open .topnav { display: flex; position: absolute; inset: 64px 14px auto; flex-direction: column; gap: 0; padding: 10px 18px; border: 1px solid #318bb7; border-radius: 8px; background: #020d18f7; }
  .menu-open .topnav a { min-height: 44px; }
  .hero { display: flex; flex-direction: column; min-height: 0; padding: 0 var(--gutter) 12px; }
  .hero-bg { bottom: 78px; background-image: url('/assets/images/hero-mobile.webp'); background-size: 115% auto; background-position: 66% 58%; animation: none; }
  .hero-vignette { background: linear-gradient(180deg, #02081000 26%, #02081012 50%, #020810df 83%, #020810 95%); }
  .hero-copy { position: relative; inset: auto; width: 100%; margin: clamp(266px, 71vw, 340px) 0 16px; order: 1; }
  .hero-wordmark { width: 92%; margin: auto; }
  #discipline-row { font-size: clamp(10px, 2.75vw, 14px); letter-spacing: .65px; margin-top: 7px; }
  .hero-copy .hero-tagline { margin-top: 5px; font-size: 11px; }
  .hud-left { display: contents; }
  .clock-card { position: absolute; top: 111px; left: var(--gutter); width: 130px; padding: 10px; border-color: #2374a04d; background: #020c1682; }
  .clock-card > span { font-size: 10px; }
  .clock-card > strong { font-size: 27px; }
  .clock-card > small { font-size: 9px; }
  #clock-extra { display: none; }
  .right-mantra { top: 105px; right: var(--gutter); font-size: 10px; line-height: 1.4; text-align: right; }
  .platform-row-wrap { position: relative; order: 2; gap: 8px; }
  .platform-row { gap: 8px; grid-auto-columns: calc((100% - 32px) / 5); scrollbar-width: none; }
  .platform-card { height: 49px; border-radius: 7px; padding: 7px 4px; }
  .platform-row .platform-card strong, .platform-row .platform-card small, .platform-more strong, .platform-more small { display: none; }
  .platform-icon, .platform-icon svg { width: 27px; height: 27px; }
  .platform-more { flex-basis: 48px; width: 48px; height: 49px; }
  .plus { font-size: 31px; }
  .platform-more .plus { width: 27px; height: 27px; }
  .stats-card { position: relative; order: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; margin-top: 10px; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; }
  .stats-card::after { display: none; }
  .stats-card > div { min-width: 0; padding: 9px 8px; grid-template-columns: 25px minmax(0, 1fr); border: 1px solid #164d6c78; border-radius: 7px; background: #03121d9c; }
  .stats-card div > span { font-size: 22px; }
  .stats-card b { font-size: 13px; }
  .stats-card div > small { font-size: 9px; }
  .stats-note { position: absolute; right: 0; top: -10px; font-size: 7px; line-height: 1; }
  .section-pad { padding: 0 var(--gutter) 18px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .panel { border-radius: 7px; }
  .panel-head { min-height: 39px; padding: 6px 10px; }
  .panel-head h2 { font-size: 16px; }
  .live-dot { width: 10px; height: 10px; }
  .live-state { font-size: 9px; padding: 2px 5px; }
  .stream-shell { margin: 0 10px; aspect-ratio: 16 / 7; }
  .standby-reticle { width: 36px; height: 36px; transform: translateY(-5px); }
  .standby-reticle svg { width: 21px; height: 21px; }
  .standby-hud { top: 8px; left: 10px; font-size: 8px; letter-spacing: 1.15px; }
  .stream-copy { bottom: 9px; }
  .stream-copy strong { font-size: 11px; letter-spacing: 2px; }
  .stream-copy small { font-size: 9px; margin-top: 2px; }
  .live-footer { min-height: 39px; padding: 7px 9px; gap: 6px; }
  .tag-row { gap: 5px; }
  .tag-row span { padding: 2px 6px; font-size: 10px; }
  .viewer-wrap { gap: 4px; font-size: 10px; }
  .viewer-wrap small { display: none; }
  .live-pill { margin-left: 1px; font-size: 9px; }
  .news-panel { border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .news-panel > .panel-head { padding: 0 4px 6px; }
  .filter-row { padding: 0 3px 8px; gap: 6px; }
  .filter-chip { min-height: 32px; padding: 5px 11px; font-size: 11px; }
  .news-list { padding: 0 4px; }
  .news-item { grid-template-columns: 66px minmax(0, 1fr); min-height: 87px; padding: 10px 0; gap: 11px; }
  .news-thumb { width: 66px; height: 61px; font-size: 21px; }
  .news-meta { margin: 5px 32px 0 0; order: 2; }
  .news-body { display: flex; flex-direction: column; justify-content: center; }
  .news-item h3 { margin: 0; font-weight: 600; font-size: 13px; line-height: 1.4; }
  .news-item p { display: none; }
  .news-time { top: auto; bottom: 12px; font-size: 10px; }
  .expanded-feed { display: none; }
  .network-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; background-size: auto, auto 850px; background-position: center, 45% top; }
  .network-hero h2 { max-width: 85%; font-size: 21px; }
  .network-hero p { font-size: 12px; }
  .network-actions { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .network-count { display: none; }
  .section-title-row { margin: 19px 2px 9px; }
  .section-title-row h2 { font-size: 17px; }
  .niche-rail { grid-auto-columns: minmax(172px, 57%); gap: 10px; }
  .niche-card { min-height: 184px; padding: 13px 12px; }
  .niche-card::after { animation-duration: 18s; opacity: .36; }
  .signature { grid-template-columns: 1fr; min-height: 124px; padding: 20px 12px; background-size: auto, auto 560px; background-position: center, 48% 6%; }
  .signature-main { grid-column: 1; }
  .signature-main h2 { font-size: clamp(16px, 4.2vw, 22px); }
  .signature-copy { display: none; }
  .footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 0 var(--gutter) 10px; font-size: 10px; }
  .footer > span { display: none; }
  .system-status { font-size: 9px; }
  .footer > a { width: 30px; height: 30px; }
  .mobile-dock { position: fixed; z-index: 900; inset: auto 0 0; min-height: calc(70px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 7px max(10px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); border-top: 1px solid #1a749f; border-radius: 18px 18px 0 0; background: #020c16f2; box-shadow: 0 -6px 25px #009dff10; backdrop-filter: blur(12px); }
  .mobile-dock a, .mobile-dock button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: transparent; color: #e0f3ff; }
  .mobile-dock span { color: #ace4ff; font-size: 23px; line-height: 1; }
  .mobile-dock svg { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-dock small { font-size: 10px; }
  .drawer-backdrop { padding: 0; }
  .drawer, .niche-drawer { min-height: 100dvh; width: 100%; margin: 0; border: 0; border-radius: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
  .drawer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drawer-platform { height: 112px; gap: 7px; }
  .drawer-platform strong { font-size: 14px; }
  .niche-drawer-head { top: 0; gap: 10px; padding: 14px 12px; }
  .niche-drawer-head h2 { font-size: 20px; }
  .niche-drawer-head p { font-size: 11px; }
  .niche-post { grid-template-columns: minmax(0, 1fr); }
  .niche-post-media { min-height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .hero-bg { transform: none; }
  .reveal { opacity: 1; translate: none; }
}

/* Native card actions retain article headings and one keyboard stop per card. */
.card-action { display: inline; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: inherit; }
.card-action::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-action:focus-visible { outline: none; }
.card-action:focus-visible::after { outline: 2px solid #82e4ff; outline-offset: -2px; }
.platform-row .platform-card:focus-visible, .niche-rail .card-action:focus-visible::after { outline-offset: -3px; }
