/* Page styles for deepdish_top.html (extracted from inline <style>) */
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Courier+Prime:wght@400;700&family=Share+Tech+Mono&display=swap');

/* ========================================
   PROJECT WRITEUP — CLASSIFIED DOCUMENT
   ======================================== */
.project-writeup {
    max-width: 1100px;
    margin: 1rem 70px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.2rem 1.8rem;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(139, 233, 253, 0.12);
    border-top-color: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(255, 255, 255, 0.03);
    border-radius: 0;
    line-height: 1.3;
    font-family: 'Courier Prime', 'Courier New', monospace;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
    font-size: 0.7rem;
}

/* Scanline overlay */
.project-writeup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 233, 253, 0.012) 2px,
            rgba(139, 233, 253, 0.012) 4px
        );
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   PRIMARY THEME — Color Tokens
   ======================================== */
:root {
    --top-red: #8be9fd;
    --top-orange: #5fcfdf;
    --top-amber: #8be9fd;
    --top-green: #2a9d8f;
    --top-cyan: #8be9fd;
    --top-dim: #4a5a6a;
    --top-text: #9aafba;
    --top-text-bright: #c0d0dd;
    --top-bg-card: rgba(0, 0, 0, 0.3);
    --top-border: rgba(139, 233, 253, 0.2);
}

/* ========================================
   CLASSIFIED HEADER
   ======================================== */
.classified-header {
    text-align: center;
    border: 3px solid #c41e3a;
    padding: 0.25rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(196, 30, 58, 0.1);
    position: relative;
    transition: all 0.3s ease;
    cursor: default;
}

.classified-header:hover {
    background: rgba(196, 30, 58, 0.2);
    box-shadow: 0 0 30px rgba(196, 30, 58, 0.3), inset 0 0 20px rgba(196, 30, 58, 0.1);
}

.classified-header:hover h1 {
    text-shadow: 0 0 15px rgba(196, 30, 58, 0.8);
    letter-spacing: 0.5em;
}

.classified-header h1 {
    color: #c41e3a;
    font-family: 'Special Elite', monospace;
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    margin: 0;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.classification-stamp {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #000000;
    padding: 0 10px;
    color: #c41e3a;
    font-weight: bold;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
}

/* ========================================
   DOCUMENT BAR
   ======================================== */
.document-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.7rem;
    font-size: 0.6rem;
}

.document-bar-item {
    border: 1px solid var(--top-border);
    padding: 0.3rem 0.5rem;
    background: var(--top-bg-card);
    transition: all 0.3s ease;
    cursor: default;
}

.document-bar-item:hover {
    background: rgba(139, 233, 253, 0.06);
    border-color: rgba(139, 233, 253, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 233, 253, 0.12);
}

.document-bar-item label {
    color: var(--top-dim);
    display: block;
    font-size: 0.48rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.1rem;
    transition: color 0.3s ease;
}

.document-bar-item:hover label {
    color: var(--top-amber);
}

.document-bar-item span {
    color: var(--top-amber);
    font-family: 'Share Tech Mono', monospace;
    transition: text-shadow 0.3s ease;
}

.document-bar-item:hover span {
    text-shadow: 0 0 8px rgba(139, 233, 253, 0.5);
}

/* ========================================
   DOCUMENT INFO
   ======================================== */
.document-info {
    border: 1px solid var(--top-border);
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.7rem;
    font-size: 0.62rem;
    color: #6a7a8a;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem 1.5rem;
    transition: all 0.3s ease;
}

.document-info:hover {
    background: rgba(139, 233, 253, 0.02);
    border-color: rgba(139, 233, 253, 0.35);
}

.document-info p {
    margin: 0.1rem 0;
    color: #6a7a8a;
    transition: all 0.2s ease;
    padding: 0.1rem;
}

.document-info p:hover {
    background: rgba(139, 233, 253, 0.04);
    color: var(--top-amber);
}

/* ========================================
   HEADINGS
   ======================================== */
.project-writeup h2 {
    color: var(--top-amber);
    margin-top: 0.7rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(139, 233, 253, 0.3);
    padding-bottom: 0.15rem;
    font-family: 'Special Elite', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: default;
}

.project-writeup h2:hover {
    color: var(--top-red);
    border-bottom-color: rgba(139, 233, 253, 0.6);
    text-shadow: 0 0 10px rgba(139, 233, 253, 0.5);
    padding-left: 10px;
}

.project-writeup h3 {
    color: var(--top-orange);
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    cursor: default;
}

.project-writeup h3:hover {
    color: var(--top-amber);
    text-shadow: 0 0 8px rgba(139, 233, 253, 0.5);
    padding-left: 8px;
}

.project-writeup h4 {
    color: var(--top-orange);
    margin-top: 0.4rem;
    margin-bottom: 0.15rem;
    font-family: 'Courier Prime', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-number {
    color: var(--top-dim);
    font-size: 0.6rem;
    margin-right: 0.3rem;
}

/* ========================================
   BODY TEXT
   ======================================== */
.project-writeup p {
    color: var(--top-text);
    margin-bottom: 0.35rem;
    text-align: justify;
    font-size: 0.68rem;
}

.project-writeup ul, .project-writeup ol {
    color: var(--top-text);
    margin-left: 1.2rem;
    margin-bottom: 0.35rem;
    font-size: 0.65rem;
}

.project-writeup li {
    margin-bottom: 0.15rem;
    transition: all 0.2s ease;
    padding: 0.05rem 0;
}

.project-writeup li:hover {
    color: var(--top-amber);
    padding-left: 5px;
}

.project-writeup a {
    color: var(--top-amber);
    text-decoration: none;
    border-bottom: 1px dashed var(--top-amber);
    transition: all 0.2s;
}

.project-writeup a:hover {
    color: var(--top-red);
    border-bottom-color: var(--top-red);
    text-shadow: 0 0 6px rgba(139, 233, 253, 0.4);
}

/* ========================================
   CODE & INLINE CODE
   ======================================== */
.project-writeup code {
    background: #0a0a0a;
    color: var(--top-amber);
    padding: 0.1rem 0.2rem;
    border-radius: 0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.63rem;
    border: 1px solid rgba(139, 233, 253, 0.2);
    transition: all 0.2s ease;
}

.project-writeup code:hover {
    background: rgba(139, 233, 253, 0.1);
    border-color: rgba(139, 233, 253, 0.5);
    color: var(--top-red);
    box-shadow: 0 0 10px rgba(139, 233, 253, 0.2);
}

.code-block {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 233, 253, 0.15);
    padding: 0.35rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: var(--top-amber);
    overflow-x: auto;
    margin: 0.35rem 0;
    transition: all 0.3s ease;
    cursor: text;
}

.code-block:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(139, 233, 253, 0.4);
    box-shadow: 0 0 20px rgba(139, 233, 253, 0.1), inset 0 0 30px rgba(139, 233, 253, 0.02);
}

.code-block .comment { color: #4a5a6a; }
.code-block .keyword { color: var(--top-red); }
.code-block .string { color: #f1fa8c; }

/* ========================================
   TABLES
   ======================================== */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.6rem;
    margin: 0.35rem 0;
}

.spec-table th, .spec-table td {
    border: 1px solid rgba(139, 233, 253, 0.12);
    padding: 0.2rem 0.4rem;
    text-align: left;
}

.spec-table th {
    background: rgba(139, 233, 253, 0.06);
    color: var(--top-amber);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.55rem;
}

.spec-table td {
    color: var(--top-text);
    background: rgba(0, 0, 0, 0.2);
}

.spec-table td.highlight {
    color: var(--top-amber);
}

.spec-table tr {
    transition: all 0.2s ease;
}

.spec-table tbody tr:hover,
.spec-table tr:hover {
    background: rgba(139, 233, 253, 0.06) !important;
}

.spec-table tr:hover td {
    color: var(--top-amber);
    text-shadow: 0 0 5px rgba(139, 233, 253, 0.2);
}

.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.58rem;
    margin: 0.2rem 0;
}

.compact-table th, .compact-table td {
    border: 1px solid rgba(139, 233, 253, 0.1);
    padding: 0.15rem 0.3rem;
    text-align: left;
}

.compact-table th {
    background: rgba(139, 233, 253, 0.05);
    color: var(--top-orange);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.compact-table td {
    color: #7a8a9a;
    background: rgba(0, 0, 0, 0.15);
}

.compact-table tr {
    transition: all 0.2s ease;
}

.compact-table tr:hover {
    background: rgba(139, 233, 253, 0.08) !important;
}

.compact-table tr:hover td {
    color: var(--top-amber) !important;
}

/* ========================================
   INFO BOXES
   ======================================== */
.info-box {
    border: 1px solid var(--top-border);
    padding: 0.4rem;
    margin: 0.35rem 0;
    background: var(--top-bg-card);
    font-size: 0.65rem;
    transition: all 0.3s ease;
    cursor: default;
}

.info-box:hover {
    background: rgba(139, 233, 253, 0.04);
    border-color: rgba(139, 233, 253, 0.45);
    transform: translateX(5px);
    box-shadow: -3px 0 15px rgba(139, 233, 253, 0.1);
}

.info-box-header {
    color: var(--top-amber);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid rgba(139, 233, 253, 0.15);
}

.info-box:hover .info-box-header {
    color: var(--top-red);
    text-shadow: 0 0 8px rgba(139, 233, 253, 0.4);
}

/* ========================================
   STATUS GRID
   ======================================== */
.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.3rem;
    margin: 0.35rem 0;
}

.status-item {
    text-align: center;
    padding: 0.3rem;
    border: 1px solid rgba(139, 233, 253, 0.15);
    background: var(--top-bg-card);
    transition: all 0.3s ease;
    cursor: default;
}

.status-item:hover {
    background: rgba(139, 233, 253, 0.06);
    border-color: rgba(139, 233, 253, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 233, 253, 0.15);
}

.status-item .value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: var(--top-amber);
    transition: all 0.3s ease;
}

.status-item:hover .value {
    text-shadow: 0 0 12px currentColor;
    transform: scale(1.1);
    display: inline-block;
}

.status-item .value.ok { color: var(--top-green); }
.status-item .value.alert { color: var(--top-red); }

.status-item .label {
    font-size: 0.5rem;
    color: var(--top-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.1rem;
}

.mini-stat {
    text-align: center;
    padding: 0.25rem;
    border: 1px solid rgba(139, 233, 253, 0.1);
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: default;
}

.mini-stat:hover {
    background: rgba(139, 233, 253, 0.08);
    border-color: rgba(139, 233, 253, 0.4);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(139, 233, 253, 0.15);
}

.mini-stat .value {
    font-family: 'Share Tech Mono', monospace;
    color: var(--top-amber);
}

.mini-stat:hover .value {
    text-shadow: 0 0 10px currentColor;
}

.mini-stat .label {
    font-size: 0.45rem;
    color: var(--top-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   REDACTED
   ======================================== */
.redacted {
    background: #0a1215;
    color: #0a1215;
    padding: 0 4px;
    user-select: none;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
    cursor: not-allowed;
}

.redacted::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        #0a1215 0px,
        #0a1215 3px,
        #0f1a1f 3px,
        #0f1a1f 4px
    );
}

.redacted:hover {
    background: #0f1820;
    animation: redacted-glitch 0.3s ease infinite;
}

@keyframes redacted-glitch {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

.redacted-block {
    background: #0a1215;
    padding: 0.25rem 0.4rem;
    margin: 0.35rem 0;
    border-left: 3px solid #c41e3a;
    font-style: italic;
    color: #4a5a6a;
    font-size: 0.63rem;
    transition: all 0.3s ease;
    cursor: default;
}

.redacted-block:hover {
    background: rgba(139, 233, 253, 0.03);
    border-left-color: var(--top-amber);
    color: #6a7a8a;
}

/* ========================================
   WARNING / CAUTION BOXES
   ======================================== */
.warning-box {
    border: 2px solid #c41e3a;
    background: rgba(196, 30, 58, 0.05);
    padding: 0.4rem;
    margin: 0.4rem 0;
    position: relative;
    font-size: 0.63rem;
    transition: all 0.3s ease;
    cursor: default;
}

.warning-box::before {
    content: '⚠ WARNING';
    position: absolute;
    top: -10px;
    left: 15px;
    background: #000000;
    padding: 0 8px;
    color: #c41e3a;
    font-weight: bold;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
}

.warning-box:hover {
    background: rgba(196, 30, 58, 0.12);
    border-color: #ff4757;
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.3), inset 0 0 30px rgba(196, 30, 58, 0.05);
    transform: scale(1.01);
}

.caution-box {
    border: 1px solid #f1fa8c;
    background: rgba(241, 250, 140, 0.05);
    padding: 0.25rem 0.4rem;
    margin: 0.35rem 0;
    font-size: 0.6rem;
    color: #f1fa8c;
    transition: all 0.3s ease;
    cursor: default;
}

.caution-box::before {
    content: '△ CAUTION: ';
    font-weight: bold;
}

.caution-box:hover {
    background: rgba(241, 250, 140, 0.12);
    border-color: #ffff6b;
    box-shadow: 0 0 15px rgba(241, 250, 140, 0.2);
    transform: translateX(5px);
}

/* ========================================
   STAMPS
   ======================================== */
.stamp {
    position: absolute;
    transform: rotate(-15deg);
    border: 3px solid;
    padding: 0.25rem 0.5rem;
    font-family: 'Special Elite', monospace;
    font-weight: bold;
    letter-spacing: 0.2em;
    opacity: 0.5;
    pointer-events: auto;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stamp:hover {
    opacity: 0.9;
    transform: rotate(-15deg) scale(1.15);
}

.stamp.approved {
    color: var(--top-amber);
    border-color: var(--top-amber);
    top: 60px;
    right: 30px;
}

.stamp.approved:hover {
    box-shadow: 0 0 20px rgba(139, 233, 253, 0.5);
    text-shadow: 0 0 10px rgba(139, 233, 253, 0.8);
}

.stamp.eyes-only {
    color: #c41e3a;
    border-color: #c41e3a;
    bottom: 80px;
    left: 20px;
    transform: rotate(12deg);
}

.stamp.eyes-only:hover {
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.5);
    text-shadow: 0 0 10px rgba(196, 30, 58, 0.8);
    transform: rotate(12deg) scale(1.15);
}

/* ========================================
   CLEARANCE BADGES
   ======================================== */
.clearance-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 2px;
    margin-right: 0.3rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.clearance-badge:hover {
    transform: scale(1.15);
    box-shadow: 0 0 15px currentColor;
}

.clearance-badge.ts {
    background: rgba(196, 30, 58, 0.3);
    color: #c41e3a;
    border: 1px solid #c41e3a;
}

.clearance-badge.s {
    background: rgba(139, 233, 253, 0.2);
    color: var(--top-amber);
    border: 1px solid var(--top-amber);
}

.clearance-badge.c {
    background: rgba(204, 34, 51, 0.2);
    color: var(--top-orange);
    border: 1px solid var(--top-orange);
}

/* ========================================
   TICKER
   ======================================== */
.ticker-wrap {
    overflow: hidden;
    background: rgba(139, 233, 253, 0.06);
    border: 1px solid rgba(139, 233, 253, 0.25);
    padding: 0.15rem 0;
    margin-bottom: 0.4rem;
    transition: all 0.3s ease;
    cursor: default;
}

.ticker-wrap:hover {
    background: rgba(139, 233, 253, 0.12);
    border-color: rgba(139, 233, 253, 0.5);
}

.ticker-wrap:hover .ticker {
    animation-play-state: paused;
    color: var(--top-red);
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.55rem;
    color: var(--top-orange);
    letter-spacing: 0.05em;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ========================================
   LAYOUT
   ======================================== */
.document-layout {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 0.7rem;
    align-items: start;
}

.main-content-area {
    min-width: 0;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin: 0.4rem 0;
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0.4rem 0;
}

/* ========================================
   SIDEBAR
   ======================================== */
.intel-sidebar {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-panel {
    border: 1px solid rgba(139, 233, 253, 0.15);
    background: rgba(0, 0, 0, 0.4);
    padding: 0.35rem;
    font-size: 0.58rem;
    transition: all 0.3s ease;
}

.sidebar-panel:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(139, 233, 253, 0.4);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(139, 233, 253, 0.08);
}

.sidebar-panel-header {
    color: #c41e3a;
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid rgba(196, 30, 58, 0.3);
    font-family: 'Special Elite', monospace;
}

.sidebar-panel-header.green {
    color: var(--top-green);
    border-bottom-color: rgba(42, 157, 143, 0.3);
}

.sidebar-panel-header.amber {
    color: var(--top-amber);
    border-bottom-color: rgba(139, 233, 253, 0.3);
}

/* ========================================
   NETWORK NODES
   ======================================== */
.network-node {
    text-align: center;
    padding: 0.3rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 233, 253, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.network-node:hover {
    background: rgba(139, 233, 253, 0.12);
    border-color: rgba(139, 233, 253, 0.5);
    transform: scale(1.1);
    z-index: 10;
    position: relative;
}

.network-node:hover .node-status {
    animation: pulse-glow-red 0.5s ease infinite alternate;
}

@keyframes pulse-glow-red {
    from { text-shadow: 0 0 5px currentColor; }
    to { text-shadow: 0 0 15px currentColor, 0 0 25px currentColor; }
}

/* ========================================
   TIMELINE
   ======================================== */
.timeline {
    border-left: 2px solid rgba(139, 233, 253, 0.3);
    padding-left: 0.7rem;
    margin: 0.4rem 0;
}

.timeline-item {
    position: relative;
    padding-bottom: 0.35rem;
    font-size: 0.63rem;
    transition: all 0.3s ease;
    cursor: default;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.35rem;
    top: 0.2rem;
    width: 8px;
    height: 8px;
    background: var(--top-red);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(139, 233, 253, 0.04);
    padding-left: 1rem;
}

.timeline-item:hover::before {
    background: var(--top-amber);
    box-shadow: 0 0 10px rgba(139, 233, 253, 0.8);
    transform: scale(1.5);
}

.timeline-item .date {
    color: var(--top-dim);
    font-size: 0.55rem;
}

.timeline-item:hover strong {
    color: var(--top-amber);
    text-shadow: 0 0 8px rgba(139, 233, 253, 0.5);
}

/* ========================================
   FOOTNOTE & FOOTER
   ======================================== */
.footnote {
    font-size: 0.55rem;
    color: var(--top-dim);
    border-top: 1px solid rgba(139, 233, 253, 0.2);
    margin-top: 0.7rem;
    padding-top: 0.35rem;
    transition: all 0.3s ease;
    cursor: default;
}

.footnote:hover {
    color: #6a7a8a;
    background: rgba(139, 233, 253, 0.02);
    padding-left: 10px;
}

.document-footer {
    margin-top: 0.7rem;
    padding-top: 0.35rem;
    border-top: 2px solid rgba(139, 233, 253, 0.3);
    text-align: center;
    font-size: 0.55rem;
    color: var(--top-dim);
    transition: all 0.3s ease;
}

.document-footer:hover {
    color: #6a7a8a;
    border-top-color: rgba(139, 233, 253, 0.5);
}

.back-link {
    display: inline-block;
    margin: 0.4rem 0;
    color: var(--top-amber);
    text-decoration: none;
    border-bottom: 1px dashed var(--top-amber);
    transition: all 0.3s ease;
    font-family: 'Courier Prime', monospace;
}

.back-link:hover {
    color: var(--top-red);
    border-bottom-color: var(--top-red);
    text-shadow: 0 0 10px rgba(139, 233, 253, 0.5);
    transform: translateX(-5px);
    display: inline-block;
}

/* ========================================
   BUTTON CONTAINER / NAV
   ======================================== */
.doc-button-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.doc-return-home {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--top-border);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.doc-return-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.08), transparent);
    transition: left 0.5s ease;
}

.doc-return-home:hover::before {
    left: 100%;
}

.doc-return-home:hover {
    background: rgba(139, 233, 253, 0.06);
    border-color: rgba(139, 233, 253, 0.5);
}

.doc-return-home img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid var(--top-border);
    transition: all 0.3s ease;
}

.doc-return-home:hover img {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(139, 233, 253, 0.4);
}

.doc-return-home-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.doc-return-home-text span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--top-amber);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.doc-return-home-text small {
    font-size: 0.55rem;
    color: var(--top-dim);
    font-family: 'Courier Prime', monospace;
}

/* ========================================
   VIDEO EMBED
   ======================================== */
.video-container {
    position: relative;
    border: 1px solid rgba(139, 233, 253, 0.2);
    margin: 0.5rem 0;
    background: #000;
    transition: all 0.3s ease;
}

.video-container:hover {
    border-color: rgba(139, 233, 253, 0.5);
    box-shadow: 0 0 25px rgba(139, 233, 253, 0.15);
}

.video-container video {
    width: 100%;
    display: block;
}

.video-label {
    position: absolute;
    top: 6px;
    left: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.5rem;
    color: var(--top-red);
    background: rgba(0, 0, 0, 0.7);
    padding: 0.1rem 0.3rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid rgba(139, 233, 253, 0.3);
    z-index: 2;
}

/* ========================================
   CLUSTER NODE DIAGRAM
   ======================================== */
.cluster-diagram {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin: 0.5rem 0;
}

.cluster-node {
    padding: 0.35rem;
    border: 1px solid rgba(139, 233, 253, 0.15);
    background: rgba(0, 0, 0, 0.35);
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.cluster-node:hover {
    background: rgba(139, 233, 253, 0.08);
    border-color: rgba(139, 233, 253, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(139, 233, 253, 0.12);
}

.cluster-node .node-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: var(--top-amber);
    margin-bottom: 0.15rem;
}

.cluster-node .node-host {
    font-size: 0.5rem;
    color: var(--top-dim);
}

.cluster-node .node-status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--top-green);
    margin-right: 0.2rem;
    box-shadow: 0 0 6px rgba(42, 157, 143, 0.6);
}

/* ========================================
   ARCHITECTURE FLOW
   ======================================== */
.arch-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    flex-wrap: wrap;
}

.arch-node {
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(139, 233, 253, 0.25);
    background: rgba(139, 233, 253, 0.04);
    color: var(--top-amber);
    transition: all 0.3s ease;
    cursor: default;
}

.arch-node:hover {
    background: rgba(139, 233, 253, 0.12);
    border-color: var(--top-amber);
    box-shadow: 0 0 12px rgba(139, 233, 253, 0.2);
    transform: scale(1.05);
}

.arch-arrow {
    color: var(--top-dim);
    font-size: 0.7rem;
}

/* ========================================
   IMAGES
   ======================================== */
.project-writeup img {
    filter: grayscale(30%) contrast(1.1);
    border: none !important;
    transition: all 0.4s ease;
    cursor: pointer;
}

.project-writeup img:hover {
    filter: grayscale(0%) contrast(1.2) brightness(1.1);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(139, 233, 253, 0.2);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1100px) {
    .project-writeup {
        margin-left: 60px;
        margin-right: 60px;
    }
    .document-layout {
        grid-template-columns: 1fr;
    }
    .intel-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .project-writeup {
        margin-left: 55px;
        margin-right: 55px;
    }
    .two-col, .three-col {
        grid-template-columns: 1fr;
    }
    .document-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .document-info {
        grid-template-columns: 1fr;
    }
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .intel-sidebar {
        grid-template-columns: 1fr;
    }
    .cluster-diagram {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .project-writeup {
        margin-left: 10px;
        margin-right: 10px;
        padding: 0.8rem;
    }
    .classified-header h1 {
        font-size: 0.9rem;
        letter-spacing: 0.2em;
    }
    .stamp {
        display: none;
    }
    .secondary-stats-mobile {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .document-bar {
        grid-template-columns: 1fr;
    }
    .status-grid {
        grid-template-columns: 1fr 1fr;
    }
    .secondary-stats-mobile {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .cluster-diagram {
        grid-template-columns: 1fr;
    }
}

/* Hologram Hero Image Effects */
.hologram-container {
    position: relative;
    display: inline-block;
    max-width: 200px;
    overflow: visible;
    -webkit-mask-image: radial-gradient(ellipse 75% 80% at center, black 40%, transparent 70%);
    mask-image: radial-gradient(ellipse 75% 80% at center, black 40%, transparent 70%);
}
.hologram-image {
    max-width: 200px;
    height: auto;
    filter: contrast(1.1) saturate(1.2);
    animation: hologramPhase 4s ease-in-out infinite, hologramGlitch 8s step-end infinite;
    image-rendering: pixelated;
}
.hologram-container::before, .hologram-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit;
    pointer-events: none;
}
.hologram-container::before {
    background: url('../assets/remilio2.png') center/contain no-repeat;
    mix-blend-mode: screen;
    opacity: 0.4;
    filter: hue-rotate(-30deg) saturate(1.5);
    animation: chromaShiftRed 3s ease-in-out infinite;
}
.hologram-container::after {
    background: url('../assets/remilio2.png') center/contain no-repeat;
    mix-blend-mode: screen;
    opacity: 0.4;
    filter: hue-rotate(30deg) saturate(1.5);
    animation: chromaShiftBlue 3s ease-in-out infinite reverse;
}
.hologram-scanlines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(0deg, transparent 0px, transparent 1px, rgba(0,0,0,0.4) 1px, rgba(0,0,0,0.4) 2px);
    pointer-events: none;
    z-index: 10;
    animation: scanlineMove 0.1s linear infinite;
}
.hologram-flicker {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(139, 233, 253, 0.03);
    pointer-events: none;
    z-index: 11;
    animation: hologramFlicker 0.15s infinite;
    mix-blend-mode: overlay;
}
.hologram-noise {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.15;
    mix-blend-mode: overlay;
    animation: noiseShift 0.5s steps(10) infinite;
}
@keyframes hologramPhase {
    0%, 100% { opacity: 0.95; transform: scale(1) translateY(0); filter: contrast(1.1) saturate(1.2) brightness(1); }
    25% { opacity: 0.85; transform: scale(1.01) translateY(-1px); filter: contrast(1.2) saturate(1.4) brightness(1.1); }
    50% { opacity: 0.9; transform: scale(0.99) translateY(1px); filter: contrast(1.15) saturate(1.3) brightness(0.95); }
    75% { opacity: 1; transform: scale(1.005) translateY(-0.5px); filter: contrast(1.25) saturate(1.5) brightness(1.15); }
}
@keyframes hologramGlitch {
    0%, 95%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    96% { clip-path: inset(20% 0 30% 0); transform: translate(-3px, 0); }
    97% { clip-path: inset(50% 0 10% 0); transform: translate(3px, 0); }
    98% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 0); }
    99% { clip-path: inset(40% 0 20% 0); transform: translate(2px, 0); }
}
@keyframes chromaShiftRed { 0%, 100% { transform: translate(-1px, 0); } 50% { transform: translate(-2px, 1px); } }
@keyframes chromaShiftBlue { 0%, 100% { transform: translate(1px, 0); } 50% { transform: translate(2px, -1px); } }
@keyframes scanlineMove { 0% { background-position: 0 0; } 100% { background-position: 0 4px; } }
@keyframes hologramFlicker {
    0%, 100% { opacity: 0.03; } 10% { opacity: 0.08; } 20% { opacity: 0.02; } 30% { opacity: 0.1; }
    40% { opacity: 0.04; } 50% { opacity: 0.15; } 60% { opacity: 0.05; } 70% { opacity: 0.12; }
    80% { opacity: 0.03; } 90% { opacity: 0.08; }
}
@keyframes noiseShift {
    0% { transform: translate(0, 0); } 10% { transform: translate(-5%, -5%); } 20% { transform: translate(5%, 5%); }
    30% { transform: translate(-5%, 5%); } 40% { transform: translate(5%, -5%); } 50% { transform: translate(-2%, 2%); }
    60% { transform: translate(2%, -2%); } 70% { transform: translate(-3%, -3%); } 80% { transform: translate(3%, 3%); }
    90% { transform: translate(-1%, 1%); } 100% { transform: translate(0, 0); }
}
.hologram-container:hover .hologram-image { animation: hologramPhaseIntense 2s ease-in-out infinite, hologramGlitchIntense 3s step-end infinite; filter: contrast(1.3) saturate(1.6) brightness(1.2); }
.hologram-container:hover .hologram-noise { opacity: 0.25; }
.hologram-container:hover .hologram-flicker { animation: hologramFlickerIntense 0.08s infinite; }
@keyframes hologramPhaseIntense {
    0%, 100% { opacity: 1; transform: scale(1); } 25% { opacity: 0.7; transform: scale(1.02) translateX(-2px); }
    50% { opacity: 0.9; transform: scale(0.98) translateX(2px); } 75% { opacity: 0.8; transform: scale(1.01) translateY(-2px); }
}
@keyframes hologramGlitchIntense {
    0%, 90%, 100% { clip-path: inset(0 0 0 0); }
    91% { clip-path: inset(30% 0 20% 0); transform: translate(-4px, 0); } 92% { clip-path: inset(10% 0 50% 0); transform: translate(4px, 0); }
    93% { clip-path: inset(60% 0 10% 0); transform: translate(-3px, 0); } 94% { clip-path: inset(20% 0 40% 0); transform: translate(3px, 0); }
    95% { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 0); } 96% { clip-path: inset(15% 0 55% 0); transform: translate(2px, 0); }
    97% { clip-path: inset(50% 0 20% 0); transform: translate(-3px, 0); } 98% { clip-path: inset(25% 0 45% 0); transform: translate(3px, 0); }
    99% { clip-path: inset(35% 0 35% 0); transform: translate(-1px, 0); }
}
@keyframes hologramFlickerIntense {
    0%, 100% { opacity: 0.1; background: rgba(139, 233, 253, 0.05); } 25% { opacity: 0.2; background: rgba(255, 100, 100, 0.05); }
    50% { opacity: 0.05; background: rgba(100, 255, 100, 0.05); } 75% { opacity: 0.25; background: rgba(139, 233, 253, 0.08); }
}
