/* Add this near the top of style.css */
a {
    color: var(--text); /* Forces links to be light grey/white */
    text-decoration: none; /* Removes the underline */
}

a:visited {
    color: var(--text); /* Prevents visited links from turning purple */
}

/* --- CLEAN MINIMALIST MONO --- */
:root {
    --bg: #0a0a0a;
    --text: #e5e5e5;
    --dim: #666666;
    --accent: #ffffff !important;
    --line: #222222;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Space Mono', monospace;
    margin: 0;
    padding: 40px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    min-height: 100vh;
}

/* --- FABRIC / MESH TEXTURE --- */
body::before {
    content: "";
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: radial-gradient(circle, black 60%, rgba(0,0,0,0.5) 100%);
}

/* --- LAYOUT UTILS --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
}

.spacer { height: 60px; }

/* --- TYPOGRAPHY --- */
.scramble {
    display: inline-block;
    min-height: 1.5em; 
    white-space: pre-wrap;
    vertical-align: middle;
}

.large {
    font-size: 3em;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -1px;
    display: block;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1.2em;
    color: var(--dim);
    display: block;
    margin-bottom: 20px;
}

.meta {
    font-size: 0.85em;
    color: var(--dim);
    text-transform: uppercase;
}

.label {
    display: block;
    font-size: 0.75em;
    color: var(--dim);
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bold { font-weight: 700; color: var(--accent); }
.sub { font-size: 0.9em; color: var(--dim); }

/* --- GRID ROWS (Standard List View) --- */
.grid-row {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s;
}

a.grid-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 10px;
    padding-right: 10px;
    border-color: transparent;
}

/* --- CONTACT / NAV BUTTONS (Side by Side) --- */
.row-group {
    display: flex; /* Makes them sit side-by-side */
    gap: 15px;
    flex-wrap: wrap; /* Allows wrapping on small screens */
    width: 100%;
}

.row-group .grid-row {
    /* Overriding the standard grid layout for these specific buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    
    flex: 1; /* Grow to fill space */
    min-width: 150px; /* Don't get too squished */
    
    padding: 16px;
    border: 1px solid var(--line); /* Full border box */
    border-bottom: 1px solid var(--line); /* Ensure bottom is present */
    
    background-color: rgba(255,255,255,0.01);
}

.row-group .grid-row:hover {
    border-color: var(--text); /* Highlight border on hover */
    padding-left: 16px; /* Reset the shift effect from standard rows */
    padding-right: 16px;
}

/* --- IMAGES & ICONS --- */
.col-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-slot {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: contain;
}

.icon-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.icon-slot img {
    width: 100%;
    height: 100%;
    border-radius: 2px;
}

.col-date { text-align: right; color: var(--dim); }
.arrow { color: var(--dim); font-size: 0.8em; }

/* --- TOAST NOTIFICATION --- */
#toast {
    visibility: hidden;
    min-width: 300px;
    background-color: #0a0a0a; 
    color: #fff;
    text-align: center;
    border: 1px solid #333;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s, top 0.3s;
}

#toast.show {
    visibility: visible;
    opacity: 1;
    top: 30px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    /* Standard rows stack on mobile */
    .grid-section .grid-row:not(.link) {
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: start;
    }
    
    /* Contact buttons stack 2x2 or 1x1 on mobile */
    .row-group .grid-row {
        min-width: 45%; 
    }

    .col-main {
        flex-direction: row; 
        align-items: center;
    }

    .col-date {
        text-align: left;
        font-size: 0.85em;
        margin-top: 5px;
    }
    
    .large { font-size: 2em; }
    
    body { padding: 20px; }
}

.header-divider {
    border: 0;
    height: 1px;
    background: #333; /* Dark grey line */
    margin: 15px 0;
}

.yellow { color: #FFD700; }

/* --- IMAGE DECODE EFFECT --- */

/* 1. Hide images initially */
.scramble-asset {
    opacity: 0;
}

/* 2. The class JS will add to trigger the appear effect */
.scramble-asset.reveal {
    animation: decode-glitch 0.4s steps(4) forwards;
}

/* 3. The Animation: Rapid flickering and color inversion */
@keyframes decode-glitch {
    0% {
        opacity: 0;
        filter: invert(1) grayscale(1); /* Start inverted */
        transform: scale(0.95);
    }
    25% {
        opacity: 1;
        filter: invert(0) grayscale(1); /* Flash visible */
    }
    50% {
        opacity: 0.2; /* Flicker out */
        filter: invert(0.5);
    }
    75% {
        opacity: 1;
        filter: none; /* Almost normal */
    }
    100% {
        opacity: 1;
        filter: none;
        transform: scale(1);
    }
}