@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800;900&family=Share+Tech+Mono&display=swap");

:root {
    --black: #070707;
    --panel: #111111;
    --panel-light: #1a1a1a;
    --yellow: #ffd000;
    --green: #7cff00;
    --white: #f5f5f5;
    --muted: #b8b8b8;
    --red: #ff4d4d;
    --cyan: #00ffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at top, rgba(124, 255, 0, 0.08), transparent 28%),
        radial-gradient(circle at 20% 10%, rgba(255, 208, 0, 0.08), transparent 22%),
        var(--black);
    font-family: Arial, Helvetica, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0.05;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 3px,
        rgba(255, 255, 255, 0.18) 4px
    );
}

a {
    color: inherit;
}

.site-shell {
    width: min(1100px, calc(100% - 40px));
    margin: auto;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 7, 7, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 208, 0, 0.45);
}

.top-bar-inner {
    width: min(1100px, calc(100% - 40px));
    min-height: 58px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-mini {
    color: var(--yellow);
    font-family: "Orbitron", sans-serif;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-decoration: none;
    text-shadow: 0 0 12px rgba(255, 208, 0, 0.45);
}

.status {
    color: var(--green);
    font-family: "Share Tech Mono", monospace;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(124, 255, 0, 0.7);
}

/* LIVE TICKER */

.tbn-ticker {
    position: relative;
    z-index: 90;
    width: 100%;
    height: 46px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: linear-gradient(90deg, #050505, #111005 45%, #050505);
    border-bottom: 1px solid rgba(124, 255, 0, 0.45);
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.65),
        0 0 14px rgba(255, 208, 0, 0.12);
}

.ticker-badge {
    position: relative;
    z-index: 5;
    min-width: 135px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    color: #050505;
    background: linear-gradient(135deg, var(--yellow), #ffe66f);
    font-family: "Orbitron", sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 6px 0 20px rgba(255, 208, 0, 0.35);
}

.ticker-live-light {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 7px var(--green), 0 0 15px var(--green);
    animation: livePulse 1.25s ease-in-out infinite;
}

.ticker-window {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-window::before,
.ticker-window::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: 42px;
    pointer-events: none;
}

.ticker-window::before {
    left: 0;
    background: linear-gradient(90deg, #080808, transparent);
}

.ticker-window::after {
    right: 0;
    background: linear-gradient(270deg, #080808, transparent);
}

.ticker-track {
    width: max-content;
    height: 100%;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    will-change: transform;
    animation: tickerScroll 58s linear infinite;
}

.ticker-set {
    height: 100%;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 19px;
    padding-right: 19px;
    white-space: nowrap;
}

.ticker-set span {
    display: inline-block;
    flex: 0 0 auto;
    font-family: "Share Tech Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.55px;
    white-space: nowrap;
}

.market-up {
    color: var(--green);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(124, 255, 0, 0.7);
}

.breaking {
    color: var(--yellow);
    font-weight: 900;
    text-shadow: 0 0 8px rgba(255, 208, 0, 0.72);
}

.ticker-divider {
    color: var(--yellow);
    font-size: 8px;
    opacity: 0.8;
}

.tbn-ticker:hover .ticker-track {
    animation-play-state: paused;
}

/* LIVE METRICS */

.live-metrics {
    width: min(1100px, calc(100% - 40px));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 16px auto 0;
}

.metric-item {
    position: relative;
    overflow: hidden;
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 14px 16px;
    text-align: center;
    background: linear-gradient(145deg, rgba(28, 28, 28, 0.98), rgba(8, 8, 8, 0.98));
    border: 1px solid rgba(255, 208, 0, 0.35);
    border-radius: 9px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 14px rgba(255, 208, 0, 0.08);
}

.metric-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.metric-label {
    color: var(--yellow);
    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.metric-value {
    color: var(--green);
    font-family: "Orbitron", sans-serif;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow:
        0 0 7px rgba(124, 255, 0, 0.82),
        0 0 18px rgba(124, 255, 0, 0.3);
}

.danger-value {
    color: var(--yellow);
    text-shadow:
        0 0 7px rgba(255, 208, 0, 0.82),
        0 0 18px rgba(255, 208, 0, 0.28);
}

.alert-green {
    color: var(--green);
}

.metric-flash {
    animation: metricFlash 0.45s ease;
}

/* CLOCK */

.terminal-clock {
    width: min(1100px, calc(100% - 40px));
    margin: 18px auto 24px;
}

.clock-panel {
    position: relative;
    padding: 22px;
    text-align: center;
    background: linear-gradient(145deg, rgba(25, 25, 25, 0.97), rgba(8, 8, 8, 0.97));
    border: 1px solid rgba(124, 255, 0, 0.45);
    border-radius: 10px;
    box-shadow:
        0 0 18px rgba(124, 255, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.clock-panel::before {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    top: 0;
    height: 2px;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.clock-label {
    color: var(--yellow);
    margin-bottom: 10px;
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.clock-time {
    color: var(--green);
    font-family: "Orbitron", sans-serif;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 4px;
    text-shadow:
        0 0 8px rgba(124, 255, 0, 0.85),
        0 0 25px rgba(124, 255, 0, 0.45);
}

.clock-date {
    margin-top: 10px;
    color: var(--white);
    font-family: "Share Tech Mono", monospace;
    font-size: 15px;
    letter-spacing: 2px;
}

/* COMMAND GRID */

.intelligence-grid {
    width: min(1100px, calc(100% - 40px));
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin: 22px auto 45px;
}

.intel-panel {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    padding: 22px;
    background: linear-gradient(145deg, rgba(27, 27, 27, 0.98), rgba(7, 7, 7, 0.99));
    border: 1px solid rgba(255, 208, 0, 0.4);
    border-radius: 11px;
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.intel-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    width: 76%;
    height: 2px;
    background: var(--green);
    box-shadow: 0 0 11px var(--green);
}

.classified-panel,
.weather-panel {
    grid-column: span 3;
}

.camera-panel,
.alert-panel,
.visitor-panel {
    grid-column: span 2;
}

.intel-code {
    color: var(--yellow);
    margin-bottom: 16px;
    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 7px rgba(255, 208, 0, 0.65);
}

.intel-panel h2 {
    margin: 9px 0 14px;
    color: var(--green);
    font-family: "Orbitron", sans-serif;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.15;
    text-transform: uppercase;
    text-shadow:
        0 0 7px rgba(124, 255, 0, 0.72),
        0 0 18px rgba(124, 255, 0, 0.24);
}

.intel-panel p {
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.55;
}

.classified-file-number {
    display: inline-block;
    color: #050505;
    background: var(--yellow);
    padding: 7px 11px;
    border-radius: 5px;
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
}

.intel-status {
    display: inline-block;
    color: var(--green);
    padding: 8px 11px;
    border: 1px solid rgba(124, 255, 0, 0.52);
    border-radius: 5px;
    font-family: "Share Tech Mono", monospace;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.warning-intel {
    color: var(--yellow);
    border-color: rgba(255, 208, 0, 0.6);
}

.alert-intel {
    color: var(--red);
    border-color: rgba(255, 77, 77, 0.65);
}

.weather-icon,
.alert-symbol {
    font-size: 42px;
    filter: drop-shadow(0 0 9px rgba(124, 255, 0, 0.42));
}

.camera-screen {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px;
    background:
        radial-gradient(circle at center, rgba(124, 255, 0, 0.11), transparent 55%),
        #050705;
    border: 1px solid rgba(124, 255, 0, 0.48);
    border-radius: 7px;
    box-shadow:
        inset 0 0 32px rgba(0, 0, 0, 0.85),
        0 0 15px rgba(124, 255, 0, 0.08);
}

.camera-noise {
    position: absolute;
    inset: 0;
    opacity: 0.09;
    pointer-events: none;
    background: repeating-radial-gradient(
        circle at 17% 32%,
        rgba(255, 255, 255, 0.6) 0,
        transparent 1px,
        transparent 4px
    );
    animation: cameraNoise 0.22s steps(2) infinite;
}

.camera-recording {
    position: absolute;
    top: 11px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--yellow);
    font-family: "Share Tech Mono", monospace;
    font-size: 10px;
    font-weight: 900;
}

.recording-light {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 9px var(--red);
    animation: recordingPulse 1s infinite;
}

.camera-location,
.camera-message,
.camera-timestamp {
    position: relative;
    z-index: 2;
    font-family: "Share Tech Mono", monospace;
}

.camera-location {
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
}

.camera-message {
    color: var(--white);
    font-size: 11px;
    line-height: 1.4;
}

.camera-timestamp {
    color: var(--yellow);
    font-size: 10px;
}

.intel-button {
    position: relative;
    z-index: 3;
    width: 100%;
    display: block;
    margin-top: 12px;
    padding: 12px;
    color: var(--yellow);
    background: #0b0b0b;
    border: 1px solid var(--yellow);
    border-radius: 6px;
    font-family: "Orbitron", sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.2s ease;
}

.intel-button:hover,
.intel-button:focus {
    color: #050505;
    background: var(--yellow);
    box-shadow: 0 0 17px rgba(255, 208, 0, 0.48);
    outline: none;
}

.visitor-number {
    color: var(--green);
    font-family: "Orbitron", sans-serif;
    font-size: clamp(38px, 6vw, 58px);
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow:
        0 0 8px rgba(124, 255, 0, 0.85),
        0 0 24px rgba(124, 255, 0, 0.38);
}

.visitor-bars {
    height: 46px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    margin-top: 18px;
}

.visitor-bars span {
    flex: 1;
    min-height: 8px;
    background: linear-gradient(to top, var(--yellow), var(--green));
    box-shadow: 0 0 7px rgba(124, 255, 0, 0.35);
    animation: visitorBars 1.7s ease-in-out infinite alternate;
}

.visitor-bars span:nth-child(2) { animation-delay: 0.2s; }
.visitor-bars span:nth-child(3) { animation-delay: 0.4s; }
.visitor-bars span:nth-child(4) { animation-delay: 0.6s; }
.visitor-bars span:nth-child(5) { animation-delay: 0.8s; }
.visitor-bars span:nth-child(6) { animation-delay: 1s; }
.visitor-bars span:nth-child(7) { animation-delay: 1.2s; }
.visitor-bars span:nth-child(8) { animation-delay: 1.4s; }

/* HERO */

.terminal-header {
    position: relative;
    padding: 70px 0 34px;
    text-align: center;
}

.terminal-label {
    color: var(--green);
    margin-bottom: 14px;
    font-family: "Share Tech Mono", monospace;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(124, 255, 0, 0.68);
}

h1 {
    margin: 0;
    color: var(--yellow);
    font-family: "Orbitron", sans-serif;
    font-size: clamp(42px, 8vw, 82px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow:
        0 0 8px rgba(255, 208, 0, 0.82),
        0 0 24px rgba(255, 208, 0, 0.48),
        0 0 48px rgba(124, 255, 0, 0.15);
}

.subtitle {
    margin: 28px 0 8px;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
}

.tagline {
    margin: 0;
    color: var(--muted);
    font-family: "Share Tech Mono", monospace;
    font-size: clamp(16px, 2vw, 20px);
}

.status-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.version {
    display: inline-block;
    color: var(--green);
    border: 1px solid var(--green);
    border-radius: 999px;
    padding: 8px 14px;
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(124, 255, 0, 0.25);
}

.warning-status {
    color: var(--yellow);
    border-color: var(--yellow);
    box-shadow: 0 0 12px rgba(255, 208, 0, 0.25);
}

.hero-wrap {
    position: relative;
    margin: 20px 0 28px;
}

.hero-image {
    width: 100%;
    display: block;
    border-radius: 18px;
    border: 2px solid var(--yellow);
    box-shadow:
        0 0 20px rgba(255, 208, 0, 0.4),
        0 30px 80px rgba(0, 0, 0, 0.75);
}

.sif-logo-wrap {
    padding: 35px;
    background:
        radial-gradient(circle, rgba(124, 255, 0, 0.1), transparent 45%),
        linear-gradient(145deg, #181818, #080808);
    border: 1px solid rgba(255, 208, 0, 0.35);
    border-radius: 18px;
}

.sif-logo-image {
    max-height: 600px;
    object-fit: contain;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero-hud {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 14px;
    color: var(--green);
    background: rgba(5, 5, 5, 0.82);
    border: 1px solid rgba(124, 255, 0, 0.55);
    border-radius: 8px;
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 0 18px rgba(124, 255, 0, 0.18);
}

.transmission-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 34px;
    padding: 14px 18px;
    color: var(--white);
    background: linear-gradient(90deg, rgba(255, 208, 0, 0.14), rgba(124, 255, 0, 0.08));
    border: 1px solid rgba(255, 208, 0, 0.5);
    border-radius: 9px;
    font-family: "Share Tech Mono", monospace;
    font-size: 14px;
    letter-spacing: 0.4px;
}

.transmission-bar strong {
    color: var(--yellow);
}

.transmission-light {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--green);
    animation: livePulse 1.5s infinite;
}

/* NAVIGATION */

.nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 34px 0 44px;
}

.nav-button {
    position: relative;
    min-height: 98px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 20px 12px;
    color: var(--yellow);
    background: linear-gradient(145deg, #222222, #121212);
    border: 2px solid var(--yellow);
    border-radius: 12px;
    font-family: "Orbitron", sans-serif;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.2s ease;
}

.nav-button small {
    color: var(--muted);
    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.nav-button:hover,
.nav-button:focus {
    color: #050505;
    background: var(--yellow);
    transform: translateY(-4px);
    box-shadow:
        0 0 12px rgba(255, 208, 0, 0.75),
        0 0 28px rgba(255, 208, 0, 0.42);
    outline: none;
}

.nav-button:hover small,
.nav-button:focus small {
    color: #050505;
}

.featured-button {
    color: var(--green);
    border-color: var(--green);
    box-shadow: inset 0 0 16px rgba(124, 255, 0, 0.07), 0 0 15px rgba(124, 255, 0, 0.15);
}

.featured-button:hover,
.featured-button:focus {
    background: var(--green);
    box-shadow:
        0 0 14px rgba(124, 255, 0, 0.75),
        0 0 30px rgba(124, 255, 0, 0.4);
}

/* SECTIONS */

.section {
    position: relative;
    padding: 30px;
    margin: 26px 0;
    background: linear-gradient(145deg, var(--panel-light), var(--panel));
    border-radius: 14px;
    border-left: 5px solid var(--yellow);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    scroll-margin-top: 90px;
}

.section::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 110px;
    height: 2px;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

.section-code {
    color: var(--yellow);
    margin-bottom: 12px;
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

h2 {
    margin: 0 0 18px;
    color: var(--green);
    font-family: "Orbitron", sans-serif;
    font-size: clamp(25px, 4vw, 36px);
    line-height: 1.12;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(124, 255, 0, 0.32);
}

h3 {
    color: var(--white);
    font-family: "Orbitron", sans-serif;
}

p,
li {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.lead-copy {
    color: var(--white) !important;
    font-size: 21px;
    font-weight: 700;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.data-box {
    min-height: 105px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    text-align: center;
    background: #101010;
    border: 1px solid rgba(255, 208, 0, 0.32);
    border-radius: 9px;
}

.data-box strong {
    color: var(--green);
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    text-transform: uppercase;
}

.data-box span {
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
}

.mission-title {
    color: var(--white);
    font-family: "Orbitron", sans-serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
    margin-bottom: 8px;
}

.mission-subtitle {
    color: var(--yellow);
    font-weight: 700;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.project-card {
    position: relative;
    padding: 22px;
    background: #111111;
    border: 1px solid rgba(255, 208, 0, 0.32);
    border-radius: 11px;
    transition: 0.2s ease;
}

.project-card:hover {
    border-color: var(--yellow);
    transform: translateY(-3px);
    box-shadow: 0 20px 30px rgba(255, 208, 0, 0.1);
}

.project-card h3 {
    margin: 10px 0;
    font-size: 21px;
}

.project-card p {
    margin-bottom: 35px;
    font-size: 15px;
}

.project-icon {
    font-size: 28px;
}

.project-state {
    position: absolute;
    left: 22px;
    bottom: 17px;
    color: var(--yellow);
    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.project-state.online {
    color: var(--green);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-link {
    min-width: 200px;
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px;
    color: var(--yellow);
    background: #101010;
    border: 1px solid var(--yellow);
    border-radius: 8px;
    font-family: "Orbitron", sans-serif;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    transition: 0.2s ease;
}

.social-link small {
    color: var(--muted);
    font-family: "Share Tech Mono", monospace;
    font-weight: 400;
}

.social-link:hover,
.social-link:focus {
    color: #050505;
    background: var(--yellow);
    box-shadow: 0 0 18px rgba(255, 208, 0, 0.48);
    outline: none;
}

.social-link:hover small,
.social-link:focus small {
    color: #050505;
}

/* FOOTER */

footer {
    margin-top: 55px;
    padding: 42px 20px;
    text-align: center;
    background: #050505;
    border-top: 1px solid rgba(255, 208, 0, 0.45);
}

.footer-title {
    color: var(--yellow);
    font-family: "Orbitron", sans-serif;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(255, 208, 0, 0.5);
}

.footer-copy {
    color: var(--muted);
    line-height: 1.7;
}

.back-to-top {
    display: inline-block;
    color: var(--green);
    margin-top: 12px;
    font-family: "Share Tech Mono", monospace;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

/* ANIMATIONS */

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.7); }
}

@keyframes metricFlash {
    0% { filter: brightness(1); }
    50% { filter: brightness(2); transform: scale(1.06); }
    100% { filter: brightness(1); }
}

@keyframes cameraNoise {
    0% { transform: translate(0, 0); }
    50% { transform: translate(2px, -1px); }
    100% { transform: translate(-1px, 2px); }
}

@keyframes recordingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

@keyframes visitorBars {
    from { height: 18%; }
    to { height: 100%; }
}

/* RESPONSIVE */

@media (max-width: 850px) {
    .classified-panel,
    .weather-panel {
        grid-column: span 6;
    }

    .camera-panel,
    .alert-panel,
    .visitor-panel {
        grid-column: span 3;
    }

    .visitor-panel {
        grid-column: 2 / span 4;
    }

    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .site-shell,
    .top-bar-inner,
    .live-metrics,
    .terminal-clock,
    .intelligence-grid {
        width: min(100% - 24px, 1100px);
    }

    .live-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-hud {
        position: static;
        margin-top: 12px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .intelligence-grid {
        grid-template-columns: 1fr;
    }

    .classified-panel,
    .weather-panel,
    .camera-panel,
    .alert-panel,
    .visitor-panel {
        grid-column: auto;
    }

    .intel-panel {
        min-height: 0;
    }

    .clock-time {
        font-size: 34px;
        letter-spacing: 2px;
    }

    .ticker-badge {
        min-width: 100px;
        padding: 0 10px;
        font-size: 10px;
    }

    .ticker-set span {
        font-size: 11px;
    }

    .ticker-track {
        animation-duration: 48s;
    }

    .sif-logo-wrap {
        padding: 18px;
    }
}

@media (max-width: 430px) {
    .nav-grid,
    .data-grid {
        grid-template-columns: 1fr;
    }

    .status {
        display: none;
    }

    p,
    li {
        font-size: 16px;
    }

    .section {
        padding: 22px;
    }

    .metric-value {
        font-size: 18px;
    }

    .metric-label {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track,
    .ticker-live-light,
    .transmission-light,
    .camera-noise,
    .recording-light,
    .visitor-bars span,
    .metric-flash {
        animation: none;
    }
}
/* SIF HERO ARTWORK UPGRADE */

.sif-logo-wrap {
    padding: 18px;
    overflow: hidden;
}

.sif-logo-image {
    width: 100%;
    max-height: none;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    filter:
        contrast(1.06)
        saturate(1.08)
        drop-shadow(0 0 18px rgba(255, 208, 0, 0.42));
}
