/* Page styles for deepdish_ocs.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 {
    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.1);
    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;
}

/* Document aging effect */
.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.015) 2px,
            rgba(139, 233, 253, 0.015) 4px
        );
    pointer-events: none;
    z-index: 1;
}

.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;
}

.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;
}

/* Top bar with document info */
.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 rgba(139, 233, 253, 0.15);
    padding: 0.3rem 0.5rem;
    background: rgba(0, 0, 0, 0.3);
}

.document-bar-item label {
    color: #4a7a8a;
    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 span {
    color: #8be9fd;
    font-family: 'Share Tech Mono', monospace;
    transition: text-shadow 0.3s ease;
}

.document-info {
    border: 1px solid rgba(139, 233, 253, 0.2);
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.7rem;
    font-size: 0.62rem;
    color: #6a8a9a;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem 1.5rem;
}

.document-info p {
    margin: 0.1rem 0;
    color: #6a8a9a;
}

.project-writeup h2 {
    color: #8be9fd;
    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;
}

.project-writeup h3 {
    color: #5fcfdf;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-writeup p {
    color: #9aafba;
    margin-bottom: 0.35rem;
    text-align: justify;
    font-size: 0.68rem;
}

.project-writeup ul, .project-writeup ol {
    color: #9aafba;
    margin-left: 1.2rem;
    margin-bottom: 0.35rem;
    font-size: 0.65rem;
}

.project-writeup li {
    margin-bottom: 0.15rem;
}

.project-writeup code {
    background: #0a0a0a;
    color: #8be9fd;
    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);
}

.project-writeup a {
    color: #8be9fd;
    text-decoration: none;
    border-bottom: 1px dashed #8be9fd;
    transition: all 0.2s;
}

.project-writeup a:hover {
    color: #b4f8c3;
    border-bottom-color: #b4f8c3;
}

/* ========================================
   COMPREHENSIVE HOVER EFFECTS
   ======================================== */

/* Document bar items hover */
.document-bar-item {
    border: 1px solid rgba(139, 233, 253, 0.15);
    padding: 0.3rem 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}

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

.document-bar-item:hover label {
    color: #8be9fd;
}

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

/* Mini stat hover */
.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.1);
    border-color: rgba(139, 233, 253, 0.4);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(139, 233, 253, 0.2);
}

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

/* Status grid item hover */
.status-item {
    text-align: center;
    padding: 0.3rem;
    border: 1px solid rgba(139, 233, 253, 0.15);
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}

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

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

/* Info box hover */
.info-box {
    border: 1px solid rgba(139, 233, 253, 0.2);
    padding: 0.4rem;
    margin: 0.35rem 0;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.65rem;
    transition: all 0.3s ease;
    cursor: default;
}

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

.info-box:hover .info-box-header {
    color: #b4f8c3;
    text-shadow: 0 0 8px rgba(180, 248, 195, 0.5);
}

/* Spec table row hover */
.spec-table tr {
    transition: all 0.2s ease;
}

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

.spec-table tr:hover td {
    color: #8be9fd;
    text-shadow: 0 0 5px rgba(139, 233, 253, 0.3);
}

.spec-table tr:hover td.highlight {
    color: #b4f8c3;
    text-shadow: 0 0 8px rgba(180, 248, 195, 0.5);
}

/* Compact table row hover */
.compact-table tr {
    transition: all 0.2s ease;
}

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

.compact-table tr:hover td {
    color: #b4f8c3 !important;
}

/* Timeline item hover */
.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:hover {
    background: rgba(139, 233, 253, 0.05);
    padding-left: 1rem;
}

.timeline-item:hover::before {
    background: #b4f8c3;
    box-shadow: 0 0 10px rgba(180, 248, 195, 0.8);
    transform: scale(1.5);
}

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

/* Clearance badge hover */
.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:hover {
    background: rgba(196, 30, 58, 0.5);
    box-shadow: 0 0 15px rgba(196, 30, 58, 0.6);
}

.clearance-badge.s:hover {
    background: rgba(255, 121, 198, 0.4);
    box-shadow: 0 0 15px rgba(255, 121, 198, 0.6);
}

.clearance-badge.c:hover {
    background: rgba(139, 233, 253, 0.4);
    box-shadow: 0 0 15px rgba(139, 233, 253, 0.6);
}

/* Sidebar panel hover */
.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.1);
}

.sidebar-panel:hover .sidebar-panel-header {
    text-shadow: 0 0 10px currentColor;
}

/* Network node hover */
.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.15);
    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 0.5s ease infinite alternate;
}

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

/* Personnel entry hover */
.personnel-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.3rem;
    border-bottom: 1px solid rgba(139, 233, 253, 0.08);
    transition: all 0.2s ease;
    cursor: default;
    margin: 0 -0.3rem;
}

.personnel-entry:hover {
    background: rgba(139, 233, 253, 0.1);
    padding-left: 0.6rem;
}

.personnel-entry:hover .personnel-name {
    color: #8be9fd;
}

.personnel-entry:hover .personnel-status {
    transform: scale(1.1);
    box-shadow: 0 0 8px currentColor;
}

/* Incident entry hover */
.incident-entry {
    padding: 0.3rem 0.3rem;
    border-bottom: 1px solid rgba(139, 233, 253, 0.1);
    transition: all 0.2s ease;
    cursor: default;
    margin: 0 -0.3rem;
}

.incident-entry:hover {
    background: rgba(139, 233, 253, 0.08);
    padding-left: 0.5rem;
    border-left: 2px solid #8be9fd;
}

.incident-entry:hover .incident-msg {
    color: #8be9fd;
}

.incident-entry:hover .incident-msg.alert {
    color: #ff6b6b;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

.incident-entry:hover .incident-msg.ok {
    color: #69ff69;
    text-shadow: 0 0 8px rgba(105, 255, 105, 0.5);
}

.incident-entry:hover .incident-msg.warn {
    color: #ffff6b;
    text-shadow: 0 0 8px rgba(255, 255, 107, 0.5);
}

/* Comms entry hover */
.comms-entry {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem;
    margin-bottom: 0.2rem;
    border-left: 2px solid #4a7a8a;
    font-size: 0.55rem;
    transition: all 0.3s ease;
    cursor: default;
}

.comms-entry:hover {
    background: rgba(139, 233, 253, 0.1);
    border-left-width: 4px;
    padding-left: 0.6rem;
    transform: translateX(3px);
}

.comms-entry.priority:hover {
    background: rgba(196, 30, 58, 0.15);
    box-shadow: 0 0 15px rgba(196, 30, 58, 0.2);
}

.comms-entry:hover .comms-body {
    color: #8be9fd;
}

/* Image hover effects */
.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.3);
}

/* Code block hover */
.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: #8be9fd;
    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.15), inset 0 0 30px rgba(139, 233, 253, 0.03);
}

/* Inline code hover */
.project-writeup code {
    background: #0a0a0a;
    color: #8be9fd;
    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.15);
    border-color: rgba(139, 233, 253, 0.5);
    color: #b4f8c3;
    box-shadow: 0 0 10px rgba(139, 233, 253, 0.3);
}

/* Redacted hover - mysterious glitch effect */
.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:hover {
    background: #1a2530;
    animation: redacted-glitch 0.3s ease infinite;
}

.redacted:hover::after {
    background: repeating-linear-gradient(
        90deg,
        #1a2530 0px,
        #1a2530 3px,
        #253540 3px,
        #253540 4px
    );
    animation: redacted-scan 0.5s linear infinite;
}

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

@keyframes redacted-scan {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Redacted block hover */
.redacted-block {
    background: #0a1215;
    padding: 0.25rem 0.4rem;
    margin: 0.35rem 0;
    border-left: 3px solid #c41e3a;
    font-style: italic;
    color: #4a6a7a;
    font-size: 0.63rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
    transition: all 0.3s ease;
    cursor: default;
}

.redacted-block:hover {
    background: rgba(139, 233, 253, 0.03);
    border-left-color: #8be9fd;
    color: #6a8a9a;
}

/* Warning box hover */
.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: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);
}

.warning-box:hover::before {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
}

/* Caution box hover */
.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: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);
}

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

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

.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: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);
}

/* Classified header hover */
.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;
}

/* Section headers hover */
.project-writeup h2 {
    color: #8be9fd;
    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: #b4f8c3;
    border-bottom-color: rgba(180, 248, 195, 0.5);
    text-shadow: 0 0 10px rgba(180, 248, 195, 0.5);
    padding-left: 10px;
}

.project-writeup h2:hover .section-number {
    color: #8be9fd;
}

.project-writeup h3 {
    color: #5fcfdf;
    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: #8be9fd;
    text-shadow: 0 0 8px rgba(139, 233, 253, 0.5);
    padding-left: 8px;
}

/* Document info hover */
.document-info {
    border: 1px solid rgba(139, 233, 253, 0.2);
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.7rem;
    font-size: 0.62rem;
    color: #6a8a9a;
    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.03);
    border-color: rgba(139, 233, 253, 0.4);
}

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

.document-info p:hover {
    background: rgba(139, 233, 253, 0.05);
    color: #8be9fd;
}

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

.project-writeup li:hover {
    color: #8be9fd;
    padding-left: 5px;
}

/* Ticker hover - pause animation */
.ticker-wrap {
    overflow: hidden;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid rgba(196, 30, 58, 0.3);
    padding: 0.15rem 0;
    margin-bottom: 0.4rem;
    transition: all 0.3s ease;
    cursor: default;
}

.ticker-wrap:hover {
    background: rgba(196, 30, 58, 0.2);
    border-color: rgba(196, 30, 58, 0.5);
}

.ticker-wrap:hover .ticker {
    animation-play-state: paused;
    color: #ff6b6b;
}

/* Footer link hover enhancements */
.back-link {
    display: inline-block;
    margin: 0.4rem 0;
    color: #8be9fd;
    text-decoration: none;
    border-bottom: 1px dashed #8be9fd;
    transition: all 0.3s ease;
    font-family: 'Courier Prime', monospace;
}

.back-link:hover {
    color: #b4f8c3;
    border-bottom-color: #b4f8c3;
    text-shadow: 0 0 10px rgba(180, 248, 195, 0.5);
    transform: translateX(-5px);
    display: inline-block;
}

/* Document footer hover */
.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: #4a6a7a;
    transition: all 0.3s ease;
}

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

/* Footnote hover */
.footnote {
    font-size: 0.55rem;
    color: #4a6a7a;
    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: #6a9aaa;
    background: rgba(139, 233, 253, 0.02);
    padding-left: 10px;
}

/* Return home / UI demo button enhanced hover */
.doc-return-home, .doc-ui-demo {
    position: relative;
    overflow: hidden;
}

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

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

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

.doc-return-home img, .doc-ui-demo img {
    transition: all 0.3s ease;
}

/* Two column layout */
.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;
}

/* Spec table */
.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.15);
    padding: 0.2rem 0.4rem;
    text-align: left;
}

.spec-table th {
    background: rgba(139, 233, 253, 0.08);
    color: #8be9fd;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.55rem;
}

.spec-table td {
    color: #9aafba;
    background: rgba(0, 0, 0, 0.2);
}

.spec-table td.highlight {
    color: #8be9fd;
}

/* Info boxes */
.info-box {
    border: 1px solid rgba(139, 233, 253, 0.2);
    padding: 0.4rem;
    margin: 0.35rem 0;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.65rem;
}

.info-box-header {
    color: #8be9fd;
    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);
}

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

.status-item .value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: #8be9fd;
    transition: all 0.3s ease;
}

.status-item .value.alert {
    color: #c41e3a;
}

.status-item .value.ok {
    color: #50fa7b;
}

.status-item .label {
    font-size: 0.5rem;
    color: #4a7a8a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.1rem;
}

/* Redaction styling */
.redacted {
    background: #0a1215;
    color: #0a1215;
    padding: 0 4px;
    user-select: none;
    border-radius: 2px;
    position: relative;
}

.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-block {
    background: #0a1215;
    padding: 0.25rem 0.4rem;
    margin: 0.35rem 0;
    border-left: 3px solid #c41e3a;
    font-style: italic;
    color: #4a6a7a;
    font-size: 0.63rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
}

.section-number {
    color: #4a7a8a;
    font-size: 0.6rem;
    margin-right: 0.3rem;
}

.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;
}

.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;
}

.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;
}

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

.footnote {
    font-size: 0.55rem;
    color: #4a6a7a;
    border-top: 1px solid rgba(139, 233, 253, 0.2);
    margin-top: 0.7rem;
    padding-top: 0.35rem;
}

.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: none;
    font-size: 0.7rem;
}

.stamp.approved {
    color: #8be9fd;
    border-color: #8be9fd;
    top: 60px;
    right: 30px;
}

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

.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: #4a6a7a;
}

.back-link {
    display: inline-block;
    margin: 0.4rem 0;
    color: #8be9fd;
    text-decoration: none;
    border-bottom: 1px dashed #8be9fd;
    transition: all 0.2s;
    font-family: 'Courier Prime', monospace;
}

.back-link:hover {
    color: #b4f8c3;
    border-bottom-color: #b4f8c3;
}

.project-writeup img {
    filter: grayscale(30%) contrast(1.1);
    border: none !important;
}

/* Code block */
.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: #8be9fd;
    overflow-x: auto;
    margin: 0.35rem 0;
}

.code-block .comment {
    color: #4a7a8a;
}

.code-block .keyword {
    color: #ff79c6;
}

.code-block .string {
    color: #f1fa8c;
}

/* 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;
}

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

.timeline-item .date {
    color: #4a7a8a;
    font-size: 0.55rem;
}

/* Clearance levels */
.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;
}

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

.clearance-badge.s {
    background: rgba(255, 121, 198, 0.2);
    color: #ff79c6;
    border: 1px solid #ff79c6;
}

.clearance-badge.c {
    background: rgba(139, 233, 253, 0.2);
    color: #8be9fd;
    border: 1px solid #8be9fd;
}

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

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

.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;
}

.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.cyan {
    color: #8be9fd;
    border-bottom-color: rgba(139, 233, 253, 0.3);
}

.sidebar-panel-header.green {
    color: #50fa7b;
    border-bottom-color: rgba(80, 250, 123, 0.3);
}

/* Incident log */
.incident-log {
    max-height: 180px;
    overflow-y: auto;
    font-family: 'Share Tech Mono', monospace;
}

.incident-log::-webkit-scrollbar {
    width: 4px;
}

.incident-log::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.incident-log::-webkit-scrollbar-thumb {
    background: rgba(139, 233, 253, 0.3);
}

.incident-entry {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(139, 233, 253, 0.1);
}

.incident-entry:last-child {
    border-bottom: none;
}

.incident-time {
    color: #4a7a8a;
    font-size: 0.55rem;
}

.incident-msg {
    color: #9aafba;
}

.incident-msg.alert {
    color: #c41e3a;
}

.incident-msg.warn {
    color: #f1fa8c;
}

.incident-msg.ok {
    color: #50fa7b;
}

/* Personnel roster */
.personnel-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(139, 233, 253, 0.08);
}

.personnel-name {
    color: #9aafba;
}

.personnel-status {
    font-size: 0.55rem;
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.personnel-status.active {
    background: rgba(80, 250, 123, 0.2);
    color: #50fa7b;
}

.personnel-status.standby {
    background: rgba(241, 250, 140, 0.2);
    color: #f1fa8c;
}

.personnel-status.offline {
    background: rgba(196, 30, 58, 0.2);
    color: #c41e3a;
}

/* Comms intercept */
.comms-entry {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem;
    margin-bottom: 0.2rem;
    border-left: 2px solid #4a7a8a;
    font-size: 0.55rem;
}

.comms-entry.priority {
    border-left-color: #c41e3a;
    background: rgba(196, 30, 58, 0.05);
}

.comms-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.1rem;
}

.comms-channel {
    color: #ff79c6;
    font-size: 0.48rem;
}

.comms-time {
    color: #4a7a8a;
    font-size: 0.48rem;
}

.comms-body {
    color: #9aafba;
}

/* Network status mini-grid */
.network-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
}

.network-node {
    text-align: center;
    padding: 0.3rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 233, 253, 0.1);
}

.network-node .node-id {
    font-size: 0.55rem;
    color: #4a7a8a;
}

.network-node .node-status {
    font-size: 0.7rem;
    margin-top: 0.15rem;
    transition: all 0.3s ease;
}

.network-node .node-status.up {
    color: #50fa7b;
}

.network-node .node-status.down {
    color: #c41e3a;
}

.network-node .node-status.degraded {
    color: #f1fa8c;
}

/* Four column grid for dense info */
.four-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    margin: 0.4rem 0;
}

/* Mini stat box */
.mini-stat {
    text-align: center;
    padding: 0.25rem;
    border: 1px solid rgba(139, 233, 253, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.mini-stat .value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: #8be9fd;
    transition: text-shadow 0.3s ease;
}

.mini-stat .label {
    font-size: 0.45rem;
    color: #4a7a8a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Blinking cursor effect */
.blink {
    animation: blink-animation 1s steps(2, start) infinite;
}

@keyframes blink-animation {
    to { visibility: hidden; }
}

/* Scrolling ticker */
.ticker-wrap {
    overflow: hidden;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid rgba(196, 30, 58, 0.3);
    padding: 0.15rem 0;
    margin-bottom: 0.4rem;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.55rem;
    color: #c41e3a;
}

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

/* Compact table */
.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.52rem;
}

.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: #5fcfdf;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

/* Button container for split layout */
.doc-button-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Integrated return home button - styled as document control */
.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 rgba(139, 233, 253, 0.2);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.doc-return-home img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid rgba(139, 233, 253, 0.2);
}

.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: #8be9fd;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.doc-return-home-text small {
    font-size: 0.55rem;
    color: #4a7a8a;
    font-family: 'Courier Prime', monospace;
}

/* OCS Web UI Demo Button */
.doc-ui-demo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(139, 233, 253, 0.2);
    text-decoration: none;
    transition: all 0.2s ease;
}

.doc-ui-demo:hover {
    background: rgba(139, 233, 253, 0.08);
    border-color: rgba(139, 233, 253, 0.5);
}

.doc-ui-demo img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid rgba(139, 233, 253, 0.2);
}

.doc-ui-demo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.doc-ui-demo-text span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: #8be9fd;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.doc-ui-demo-text small {
    font-size: 0.55rem;
    color: #4a7a8a;
    font-family: 'Courier Prime', monospace;
}

@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, .four-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;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .doc-button-container {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        margin-bottom: 0.5rem;
    }
    
    .doc-return-home {
        padding: 0.35rem 0.5rem;
        gap: 0.4rem;
    }
    
    .doc-ui-demo {
        padding: 0.35rem 0.5rem;
        gap: 0.4rem;
    }
    
    .doc-return-home img,
    .doc-ui-demo img {
        width: 24px;
        height: 24px;
    }
    
    .doc-return-home-text span,
    .doc-ui-demo-text span {
        font-size: 0.55rem;
    }
    
    .doc-return-home-text small,
    .doc-ui-demo-text small {
        font-size: 0.45rem;
    }
    
    .project-writeup {
        margin-left: 10px;
        margin-right: 10px;
        padding: 0.8rem;
        font-size: 0.62rem;
        line-height: 1.25;
    }
    
    /* Hide stamps on mobile - they overlap too much */
    .stamp {
        display: none;
    }
    
    /* Classified header */
    .classified-header {
        padding: 0.15rem 0.25rem;
        margin-bottom: 0.3rem;
        border-width: 2px;
    }
    
    .classified-header h1 {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }
    
    .classification-stamp {
        font-size: 0.45rem;
        top: -8px;
        right: 5px;
        letter-spacing: 0.08em;
        padding: 0 5px;
    }
    
    /* Document bar - stack on mobile */
    .document-bar {
        grid-template-columns: 1fr 1fr;
        gap: 0.2rem;
        margin-bottom: 0.3rem;
    }
    
    .document-bar-item {
        padding: 0.15rem 0.25rem;
    }
    
    .document-bar-item label {
        margin-bottom: 0.1rem;
        font-size: 0.45rem;
    }
    
    .document-bar-item span {
        font-size: 0.55rem;
    }
    
    /* Secondary stats bar */
    .secondary-stats-mobile {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .mini-stat {
        padding: 0.2rem;
    }
    
    .mini-stat .value {
        font-size: 0.6rem;
    }
    
    .mini-stat .label {
        font-size: 0.4rem;
    }
    
    /* Ticker */
    .ticker-wrap {
        margin-bottom: 0.5rem;
        padding: 0.2rem 0;
    }
    
    .ticker {
        font-size: 0.5rem;
    }
    
    /* Document info */
    .document-info {
        padding: 0.25rem;
        font-size: 0.5rem;
        gap: 0.15rem;
        grid-template-columns: 1fr !important;
    }
    
    .document-info p {
        font-size: 0.5rem;
        margin: 0.05rem 0;
    }
    
    /* Status grid - 2 columns */
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }
    
    .status-item {
        padding: 0.3rem;
    }
    
    .status-item .value {
        font-size: 0.7rem;
    }
    
    .status-item .label {
        font-size: 0.4rem;
    }
    
    /* Four col becomes 2 on mobile */
    .four-col {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }
    
    .two-col, .three-col {
        grid-template-columns: 1fr !important;
        gap: 0.4rem;
    }
    
    .info-box {
        padding: 0.25rem;
        font-size: 0.5rem;
        margin: 0.2rem 0;
    }
    
    .info-box-header {
        font-size: 0.45rem;
        margin-bottom: 0.15rem;
    }
    
    /* Title and subtitle */
    .project-writeup h1 {
        font-size: 0.85rem !important;
    }
    
    .project-writeup h2 {
        font-size: 0.62rem;
        margin-top: 0.5rem;
        margin-bottom: 0.15rem;
        letter-spacing: 0.08em;
    }
    
    .project-writeup h3 {
        font-size: 0.55rem;
        margin-top: 0.3rem;
    }
    
    .project-writeup p {
        font-size: 0.55rem;
        text-align: left;
        margin-bottom: 0.25rem;
    }
    
    .project-writeup ul, .project-writeup ol {
        font-size: 0.5rem;
        margin-left: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .project-writeup li {
        margin-bottom: 0.1rem;
    }
    
    /* Tables */
    .spec-table {
        font-size: 0.45rem;
        margin: 0.2rem 0;
    }
    
    .spec-table th, .spec-table td {
        padding: 0.1rem 0.2rem;
    }
    
    .spec-table th {
        font-size: 0.4rem;
    }
    
    .compact-table {
        font-size: 0.4rem;
    }
    
    .compact-table th, .compact-table td {
        padding: 0.1rem 0.15rem;
    }
    
    /* Code blocks */
    .code-block {
        padding: 0.2rem;
        font-size: 0.45rem;
        overflow-x: auto;
        margin: 0.2rem 0;
    }
    
    .project-writeup code {
        font-size: 0.48rem;
        padding: 0.05rem 0.15rem;
    }
    
    /* Document layout - stack sidebar below */
    .document-layout {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }
    
    /* Intel sidebar on mobile */
    .intel-sidebar {
        position: static !important;
        grid-template-columns: 1fr !important;
        gap: 0.4rem;
        order: 2;
    }
    
    .sidebar-panel {
        padding: 0.4rem;
    }
    
    .sidebar-panel-header {
        font-size: 0.5rem;
        margin-bottom: 0.3rem;
    }
    
    .incident-log {
        max-height: 100px;
    }
    
    .incident-time {
        font-size: 0.4rem;
    }
    
    .incident-msg {
        font-size: 0.5rem;
    }
    
    .incident-entry {
        padding: 0.2rem 0;
    }
    
    .network-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.2rem;
    }
    
    .network-node {
        padding: 0.15rem;
    }
    
    .network-node .node-id {
        font-size: 0.4rem;
    }
    
    .network-node .node-status {
        font-size: 0.5rem;
    }
    
    .personnel-entry {
        font-size: 0.5rem;
        padding: 0.2rem 0;
    }
    
    .personnel-status {
        font-size: 0.4rem;
    }
    
    .comms-entry {
        font-size: 0.45rem;
        padding: 0.2rem;
    }
    
    .comms-channel, .comms-time {
        font-size: 0.4rem;
    }
    
    /* Warning/Caution boxes */
    .warning-box {
        padding: 0.25rem;
        font-size: 0.48rem;
        margin: 0.25rem 0;
    }
    
    .warning-box::before {
        font-size: 0.4rem;
        top: -8px;
        left: 8px;
    }
    
    .caution-box {
        font-size: 0.45rem;
        padding: 0.2rem 0.3rem;
        margin: 0.2rem 0;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 0.4rem;
        margin: 0.25rem 0;
    }
    
    .timeline-item {
        font-size: 0.48rem;
        padding: 0.15rem 0;
    }
    
    .timeline-item .date {
        font-size: 0.4rem;
    }
    
    /* Clearance badges */
    .clearance-badge {
        font-size: 0.4rem;
        padding: 0.08rem 0.2rem;
    }
    
    /* Footer */
    .document-footer {
        font-size: 0.42rem;
        margin-top: 0.4rem;
        padding-top: 0.25rem;
    }
    
    .footnote {
        font-size: 0.4rem;
        margin-top: 0.4rem;
        padding-top: 0.25rem;
    }
    
    /* Images */
    .project-writeup img {
        max-width: 100%;
        height: auto;
    }
    
    /* Redacted block */
    .redacted-block {
        font-size: 0.48rem;
        padding: 0.15rem 0.25rem;
        margin: 0.2rem 0;
    }
    
    .section-number {
        font-size: 0.5rem;
    }
    
    /* Back link */
    .back-link {
        font-size: 0.6rem;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .document-bar {
        grid-template-columns: 1fr;
    }
    
    .four-col {
        grid-template-columns: 1fr;
    }
    
    .status-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .secondary-stats-mobile {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .network-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .classified-header h1 {
        font-size: 0.55rem;
        letter-spacing: 0.08em;
    }
    
    .project-writeup h2 {
        font-size: 0.52rem;
    }
    
    .project-writeup p {
        font-size: 0.48rem;
    }
}

/* 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); }
}
