/*
    HOME PRECISION CSS
    Calm, professional UI — muted accents, smooth motion
*/

.precision-dashboard {
    background: transparent;
    color: #f4f4f5;
    padding-bottom: 120px;
    font-family: 'Inter Tight', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Muted semantic accents (replaces neon; class names unchanged for markup compat) */
    --neon-cyan: #8b9caf;
    --neon-magenta: #9d8fa3;
    --neon-lime: #7d9b82;
    --neon-orange: #b8956a;
    --neon-yellow: #c9a227;
}

.hover-subtle {
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), 
                box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), 
                background 0.4s ease, 
                border-color 0.4s ease,
                filter 0.4s ease;
}

.hover-subtle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    filter: brightness(1.02);
}

/* --- TYPOGRAPHY & UTILITIES --- */
.text-overline {
    font-family: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-yellow);
    margin-bottom: 16px;
    display: inline-block;
}

.text-title-xl {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.028em;
    margin-bottom: 24px;
    color: #fafafa;
}

.text-title-section {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #fafafa;
}

.text-subtitle {
    font-size: 1.15rem;
    color: rgba(244, 244, 245, 0.62);
    line-height: 1.65;
    max-width: 800px;
}

.text-muted { color: rgba(228, 228, 231, 0.45); }
.text-body { color: rgba(244, 244, 245, 0.72); line-height: 1.65; font-size: 1rem; }

.divider-subtle {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 80px 0;
    width: 100%;
}

/* --- COMPONENT: PRECISION CARD --- */
.precision-card {
    background: rgba(20, 20, 25, 0.65);
    backdrop-filter: blur(20px) saturate(1.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow: hidden;
    position: relative;
}

.precision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.precision-card:hover::before {
    opacity: 1;
}

.precision-card-hoverable:hover {
    background: rgba(25, 25, 30, 0.85);
    border-color: rgba(212, 168, 75, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(212, 168, 75, 0.1);
    transform: translateY(-2px);
}

/* --- 1. HERO SECTION --- */
.precision-hero {
    padding: 140px 0 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Ambient Shiny Glow */
.precision-hero::before {
    content: ''; position: absolute;
    top: 40%; left: 20%; width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.08) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    filter: blur(60px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 80px;
    align-items: center;
}
@media (max-width: 991px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}



.hero-stats-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px; /* Set from inline */
    background: rgba(12, 12, 16, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 24px 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}


.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.stat-row:last-child { border-bottom: none; padding-bottom: 0; }
.stat-label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); display: flex; align-items: center; gap: 8px;}
.stat-value { font-size: 0.95rem; font-weight: 500; color: #fff; text-align: right; }
.dot-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--neon-lime); box-shadow: 0 0 6px rgba(125, 155, 130, 0.45); position: relative; }
.dot-indicator::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: var(--neon-lime); opacity: 0.12; animation: trust-pulse 4s ease-in-out infinite; }

@keyframes trust-pulse {
    0%, 100% { transform: scale(1); opacity: 0.12; }
    50% { transform: scale(1.25); opacity: 0.04; }
}

.dot-indicator.neon-yellow { background: var(--neon-yellow); box-shadow: 0 0 6px rgba(201, 162, 39, 0.4); }
.dot-indicator.neon-yellow::after { background: var(--neon-yellow); }

.dot-indicator.neon-cyan { background: var(--neon-cyan); box-shadow: 0 0 6px rgba(139, 156, 175, 0.4); }
.dot-indicator.neon-cyan::after { background: var(--neon-cyan); }

/* --- 2. OPERATING MODEL (ENGINEERING PHILOSOPHY) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
}
@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; gap: 40px; }
}

.bento-card {
    background: transparent;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 24px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.4s ease;
}
.bento-card:hover {
    border-top-color: var(--accent-yellow);
}

.bento-header {
    display: flex;
    align-items: center;
    gap: 20px;
}
.bento-number {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-yellow);
    opacity: 0.9;
}
.bento-cell-title {
    font-size: 1.5rem; font-weight: 600; color: #fff; margin: 0; line-height: 1.3; letter-spacing: -0.02em;
}
.bento-cell-text {
    font-size: 1.05rem; color: rgba(255,255,255,0.6); line-height: 1.6;
    padding-left: 45px;
    margin: 0;
}

/* --- 3. SELECTED WORK (CASE STUDIES) --- */
.case-study-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.horizontal-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Featured Override for wide primary card */
.horizontal-card-grid.featured-first .case-study-card:first-child {
    grid-column: 1 / -1;
}

@media (min-width: 901px) {
    .horizontal-card-grid.featured-first .case-study-card:first-child {
        flex-direction: row;
    }
    .horizontal-card-grid.featured-first .case-study-card:first-child .case-visual-wrapper {
        flex: 0 0 32%;
        border-right: 1px solid rgba(255,255,255,0.05);
        border-bottom: none;
    }
}

@media (max-width: 900px) {
    .horizontal-card-grid { grid-template-columns: 1fr; }
}

.case-study-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.08); /* Stronger */
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 8px 30px rgba(0, 0, 0, 0.4);
    background: rgba(12, 12, 16, 0.8);
    overflow: hidden;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
}

.case-study-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--accent-yellow);
    transform: scaleX(0); transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1); transform-origin: left;
    z-index: 10;
}

.case-study-card:hover {
    transform: translateY(-4px);
    border-color: rgba(234, 179, 8, 0.3);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 16px 40px rgba(0, 0, 0, 0.6);
    background: rgba(18, 18, 22, 0.9);
}

.case-study-card:hover::before { opacity: 1; transform: scaleX(1); }

.case-visual-wrapper {
    background-color: rgba(6, 6, 8, 0.9);
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 180px;
}
.case-visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.case-study-card:hover .case-visual-image {
    transform: scale(1.05);
}
.case-visual-icon { 
    font-size: 4rem; 
    color: rgba(255, 255, 255, 0.14); 
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.case-study-card:hover .case-visual-icon {
    color: rgba(212, 168, 75, 0.85);
    transform: scale(1.08);
}
.case-study-card:nth-child(2n):hover .case-visual-icon {
    color: rgba(139, 156, 175, 0.9);
}
.case-study-card:nth-child(3n):hover .case-visual-icon {
    color: rgba(125, 155, 130, 0.9);
}

.case-content-wrapper {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
@media (max-width: 767px) {
    .horizontal-card-grid { grid-template-columns: 1fr; }
}

.case-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.case-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin: 0; line-height: 1.2; }
.case-status {
    font-size: 0.65rem; padding: 4px 10px; border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 100px; color: rgba(255,255,255,0.5); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
}

.case-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; flex-direction: column; gap: 16px;
}

.case-data-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.case-data-block span.cd-label { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.35); text-transform: uppercase; margin-bottom: 4px; letter-spacing: 0.05em;}
.case-data-block span.cd-val { display: block; font-size: 0.95rem; color: #fff; font-weight: 500; }

/* Tag System & Neon Pill Variants */
.tag-sp {
    display: inline-block; padding: 4px 10px; font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.03); color: rgba(255, 255, 255, 0.6);
    border-radius: 6px; margin-right: 8px; margin-bottom: 8px;
    font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase; letter-spacing: 0.02em;
}

.tag-sp:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Tag accents — muted, no glow */
.tag-neon-cyan { color: rgba(196, 206, 218, 0.95); border-color: rgba(139, 156, 175, 0.35); background: rgba(139, 156, 175, 0.08); }
.tag-neon-cyan:hover { box-shadow: none; border-color: rgba(165, 180, 198, 0.5); background: rgba(139, 156, 175, 0.12); color: #e8ecf2; }

.tag-neon-magenta { color: rgba(210, 200, 214, 0.95); border-color: rgba(157, 143, 163, 0.35); background: rgba(157, 143, 163, 0.08); }
.tag-neon-magenta:hover { box-shadow: none; border-color: rgba(180, 168, 186, 0.5); background: rgba(157, 143, 163, 0.12); color: #f0ecf2; }

.tag-neon-lime { color: rgba(190, 210, 194, 0.95); border-color: rgba(125, 155, 130, 0.35); background: rgba(125, 155, 130, 0.08); }
.tag-neon-lime:hover { box-shadow: none; border-color: rgba(150, 175, 154, 0.5); background: rgba(125, 155, 130, 0.12); color: #eef5f0; }

.tag-neon-orange { color: rgba(220, 200, 170, 0.95); border-color: rgba(184, 149, 106, 0.35); background: rgba(184, 149, 106, 0.08); }
.tag-neon-orange:hover { box-shadow: none; border-color: rgba(200, 170, 130, 0.5); background: rgba(184, 149, 106, 0.12); color: #faf6f0; }

.tag-neon-yellow { color: rgba(232, 210, 150, 0.98); border-color: rgba(201, 162, 39, 0.38); background: rgba(201, 162, 39, 0.1); }
.tag-neon-yellow:hover { box-shadow: none; border-color: rgba(212, 168, 75, 0.55); background: rgba(201, 162, 39, 0.14); color: #fdf8e8; }

/* --- PRECISION FOOTER --- */
.precision-footer-section { padding-top: 80px; }
.footer-cta-card { display: flex; align-items: center; justify-content: space-between; padding: 60px; margin-bottom: 80px; position: relative; }
.precision-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; }
@media (max-width: 991px) {
    .footer-cta-card { flex-direction: column; align-items: flex-start; gap: 30px; padding: 40px; }
    .precision-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 767px) {
    .precision-footer-grid { grid-template-columns: 1fr; }
}
.footer-link-item { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.footer-link-item:hover { color: var(--accent-yellow); }

/* --- 4. WRITING (TABULAR LIST) --- */
.tabular-list {
    display: flex;
    flex-direction: column;
}

.tabular-row {
    display: grid;
    grid-template-columns: 120px 100px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-decoration: none !important;
    transition: background 0.2s;
}
.tabular-row:hover {
    background: rgba(255,255,255,0.02);
}
.tabular-row:first-child { border-top: 1px solid rgba(255,255,255,0.06); }

.tab-date { font-family: inherit; font-size: 1rem; font-weight: 700; color: #fff; }
.tab-cat { 
    font-size: 0.85rem; text-transform: uppercase; color: rgba(224, 194, 120, 0.98); 
    font-weight: 700; letter-spacing: 0.05em; 
    background: rgba(212, 168, 75, 0.1); padding: 6px 12px; border-radius: 6px; 
    display: inline-block; text-align: center;
    border: 1px solid rgba(212, 168, 75, 0.15);
}
.tab-title-wrap { display: flex; flex-direction: column; gap: 6px; }
.tab-title { font-size: 1.35rem; font-weight: 800; color: #fff; }
.tab-excerpt { font-size: 1.05rem; color: rgba(255,255,255,0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 600px; }
.tab-action { font-size: 0.85rem; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.tabular-row:hover .tab-action { color: #fff; }

@media (max-width: 767px) {
    .tabular-row { grid-template-columns: 1fr; gap: 8px; align-items: flex-start; padding: 20px 10px; }
    .tab-excerpt { max-width: none; white-space: normal; }
    .tab-date, .tab-cat, .tab-title-wrap { width: 100%; }
    .tab-action { display: none; }
}

/* --- 5. NOW (EXECUTIVE SUMMARY) --- */
.now-summary-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 991px) {
    .now-summary-grid { grid-template-columns: 1fr; }
}

.now-sidebar {
    position: sticky;
    top: 120px;
}

.now-status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; background: rgba(125, 155, 130, 0.12); border: 1px solid rgba(125, 155, 130, 0.22);
    color: rgba(190, 210, 194, 0.98); border-radius: 100px; font-size: 0.8rem; font-weight: 600;
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
@keyframes cursor-blink-anim {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.cursor-blink {
    animation: cursor-blink-anim 1s step-end infinite;
}

.now-stack {
    display: flex; flex-direction: column; gap: 16px;
}

.now-blade {
    background: rgba(12, 12, 16, 0.85);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 4px 15px rgba(0,0,0,0.2);
}

.now-blade::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100%;
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.04), transparent);
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}

.now-blade:hover {
    transform: translateX(6px);
    border-color: rgba(234, 179, 8, 0.3);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 12px 30px rgba(0, 0, 0, 0.4);
    background: rgba(16, 16, 20, 0.95);
}

.now-blade:hover::before {
    opacity: 1;
}

.blade-indicator {
    width: 5px;
    background: rgba(255,255,255,0.05);
    transition: background 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.blade-indicator::after {
    content: ''; position: absolute; top: -50%; left: 0; right: 0; height: 50%;
    background: rgba(255,255,255,0.4);
    animation: blade-scan 3s linear infinite;
    opacity: 0.15;
}

@keyframes blade-scan {
    0% { top: -50%; }
    100% { top: 150%; }
}

.now-blade:hover .blade-indicator {
    background: var(--accent-yellow);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.4);
}
.now-blade:hover .blade-indicator::after { opacity: 0.6; }

.blade-content {
    padding: 24px;
    flex: 1;
}

.blade-label { display: block; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.75rem; text-transform: uppercase; color: var(--accent-yellow); letter-spacing: 0.05em; margin-bottom: 8px; }
.blade-val { font-size: 0.95rem; color: rgba(255,255,255,0.85); line-height: 1.6; }

/* ==============================================
   WORK PAGE STRUCTURE 
   ============================================== */
.work-filter-strip {
    display: flex; gap: 12px; flex-wrap: wrap; 
}
.work-filter-pill {
    background: transparent; border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.58); padding: 8px 16px; border-radius: 8px;
    font-size: 0.82rem; font-family: 'JetBrains Mono', ui-monospace, monospace; text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer; transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.work-filter-pill:hover {
    color: #fff; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05);
}
.work-filter-pill.active {
    color: #000; background: var(--accent-yellow); border-color: var(--accent-yellow);
    font-weight: 700;
}

/* SIDEBAR LAYOUT */
.work-layout-with-sidebar {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    align-items: start;
}

.work-filter-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-header {
    margin-bottom: 24px;
}

.sidebar-header h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.5);
    margin: 0;
    font-weight: 600;
}

.work-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.work-filter-list .work-filter-pill {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.work-filter-list .work-filter-pill:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
}

.work-filter-list .work-filter-pill.active {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: #000;
}

.work-content-area {
    width: 100%;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 900px) {
    .work-layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .work-filter-sidebar {
        position: relative;
        top: auto;
    }

    .work-filter-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .work-filter-list .work-filter-pill {
        width: auto;
    }
}

@media (max-width: 600px) {
    .work-layout-with-sidebar {
        gap: 24px;
    }

    .work-filter-list {
        gap: 6px;
    }

    .work-filter-list .work-filter-pill {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}

/* WRITING PAGE SIDEBAR LAYOUT */
.writing-layout-with-sidebar {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    align-items: start;
}

.writing-filter-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.writing-filter-sidebar .sidebar-header {
    margin-bottom: 24px;
}

.writing-filter-sidebar .sidebar-header h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.5);
    margin: 0;
    font-weight: 600;
}

.writing-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.writing-filter-list .work-filter-pill {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.writing-filter-list .work-filter-pill:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
}

.writing-filter-list .work-filter-pill.active {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: #000;
}

.writing-content-area {
    width: 100%;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 900px) {
    .writing-layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .writing-filter-sidebar {
        position: relative;
        top: auto;
    }

    .writing-filter-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .writing-filter-list .work-filter-pill {
        width: auto;
    }
}

@media (max-width: 600px) {
    .writing-layout-with-sidebar {
        gap: 24px;
    }

    .writing-filter-list {
        gap: 6px;
    }

    .writing-filter-list .work-filter-pill {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}

.case-study-card.archived {
    border: 1px dashed rgba(255,255,255,0.05);
    opacity: 0.7;
    box-shadow: none;
    transition: opacity 0.3s, border-color 0.3s;
}
.case-study-card.archived:hover {
    opacity: 1; border-color: rgba(255,255,255,0.2);
}
.case-study-card.archived .case-visual-wrapper {
    background: rgba(10,10,10,0.5); border-left: 1px solid rgba(255,255,255,0.03);
}
.case-study-card.archived .case-title {
    color: rgba(255,255,255,0.5); font-weight: 600;
}
.work-links-row {
    display: flex; gap: 16px; flex-wrap: wrap;
}

/* ==============================================
   WORK DYNAMIC PIPELINE 
   ============================================== */
.work-pipeline-container {
    display: flex;
    position: relative;
    padding-left: 80px;
}
.pipeline-spine {
    position: absolute;
    left: 39px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(234,179,8,0.5) 0%, rgba(255,255,255,0.02) 100%);
    z-index: 1;
}
.work-showcase {
    position: relative;
    width: 100%;
}
.work-project-wrapper {
    position: relative;
    margin-bottom: 80px;
}
.pipeline-node {
    position: absolute;
    left: -45px;
    top: 40px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-yellow);
    box-shadow: 0 0 15px var(--accent-yellow);
    z-index: 2;
    transition: transform 0.3s;
}
.work-project-wrapper:hover .pipeline-node {
    transform: scale(1.5);
}

.case-study-card {
    position: relative;
    overflow: hidden; 
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.case-study-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 5;
}
.work-project-wrapper:hover .case-study-card {
    transform: translateX(3px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
    border-color: rgba(212, 168, 75, 0.22);
}
.work-project-wrapper:hover .case-study-card::before {
    opacity: 1;
    transform: translateY(0);
}

.massive-index {
    position: absolute;
    top: -40px;
    right: -20px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 14rem;
    font-weight: 900;
    color: rgba(255,255,255,0.02);
    line-height: 1;
    user-select: none;
    z-index: 0;
    pointer-events: none;
    transition: color 0.3s, transform 0.3s;
}
.work-project-wrapper:hover .massive-index {
    color: rgba(212, 168, 75, 0.035);
    transform: scale(1.02);
}

@media (max-width: 767px) {
    .work-pipeline-container { padding-left: 40px; }
    .pipeline-spine { left: 19px; }
    .pipeline-node { left: -25px; }
    .massive-index { font-size: 8rem; top: 0; }
}

/* ==============================================
   WORK DETAIL (STICKY SPLIT PANE) 
   ============================================== */
.split-pane-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 80px;
    align-items: start;
    padding-top: 140px;
    padding-bottom: 120px;
}
@media (max-width: 1000px) {
    .split-pane-layout { grid-template-columns: 1fr; gap: 40px; }
}

.pane-narrative {
    min-width: 0;
}
.pane-sticky-stage {
    position: sticky;
    top: 40px;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    padding-right: 10px;
    -ms-overflow-style: none; scrollbar-width: none;
}
.pane-sticky-stage::-webkit-scrollbar { display: none; }
@media (max-width: 1000px) {
    .pane-sticky-stage { position: relative; top: 0; height: auto; overflow-y: visible; }
}

.narrative-breadcrumb {
    font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.85rem; color: rgba(255,255,255,0.38);
    letter-spacing: 0.05em; margin-bottom: 80px; text-transform: uppercase;
}
.narrative-breadcrumb span { margin: 0 8px; color: rgba(255,255,255,0.1); }
.narrative-breadcrumb a { color: var(--accent-yellow); text-decoration: none; transition: color 0.2s; }
.narrative-breadcrumb a:hover { color: #fff; }

.narrative-hero {
    margin-bottom: 120px;
}
.narrative-section {
    margin-bottom: 100px;
    position: relative;
    padding-left: 40px;
    border-left: 1px solid rgba(255,255,255,0.06);
}
.narrative-indicator {
    position: absolute;
    left: -7px; top: 4px; /* visually align with heading */
    width: 13px; height: 13px;
    border-radius: 50%; background: rgba(212, 168, 75, 0.9); box-shadow: 0 0 0 2px rgba(212, 168, 75, 0.15);
}

.stage-card {
    background: rgba(15,15,15,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; padding: 30px;
    position: relative; overflow: visible;
}

.terminal-block {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 30px;
    font-family: inherit;
    font-size: 0.95rem; 
    color: rgba(255,255,255,0.8);
    position: relative;
    overflow: auto;
    flex-grow: 1; min-height: 300px;
}

.bento-lessons-grid {
    display: flex; flex-direction: column; gap: 24px;
}
.bento-lesson-card {
    background: rgba(18,18,20,0.42);
    border: 1px solid rgba(255,255,255,0.055);
    padding: 40px; border-radius: 10px;
    position: relative; overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.4s ease, border-color 0.35s ease;
}
.bento-lesson-card:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38);
    border-color: rgba(212, 168, 75, 0.22);
}
.lesson-text {
    position: relative; z-index: 2; font-size: 1.05rem; line-height: 1.6; color: rgba(255,255,255,0.8); margin: 0;
}

/* ==============================================
   WRITING INDEX (THE SERVER LOGBOOK)
   ============================================== */
.logbook-hero {
    padding-top: 150px; padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.logbook-header-row {
    display: grid;
    grid-template-columns: 160px 180px 100px 1fr;
    gap: 20px;
    padding: 16px 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.logbook-row {
    display: grid;
    grid-template-columns: 160px 180px 100px 1fr;
    gap: 20px;
    align-items: center;
    padding: 32px 40px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    margin-bottom: 16px;
    background: rgba(18,18,22,0.4);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 4px 20px rgba(0,0,0,0.2);
    color: rgba(244, 244, 245, 0.6);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
}
.logbook-row::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--accent-yellow);
    transform: scaleY(0); transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1); transform-origin: center;
}
.logbook-row:hover {
    background: rgba(25, 25, 30, 0.8);
    border-color: rgba(234, 179, 8, 0.25);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 14px 40px rgba(0,0,0,0.5);
    transform: translateY(-3px);
}
.logbook-row:hover::before {
    transform: scaleY(1);
}
.logbook-date { display: flex; align-items: center; gap: 12px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.95rem; }
.lb-idx { color: rgba(255, 255, 255, 0.25); font-size: 0.8rem; }
.lb-date { color: rgba(255, 255, 255, 0.85); font-weight: 500; }

.logbook-category .lb-tag {
    font-size: 0.75rem; font-weight: 700; color: var(--accent-yellow);
    background: rgba(234, 179, 8, 0.08); border: 1px solid rgba(234, 179, 8, 0.2);
    padding: 6px 14px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.05em;
    display: inline-block;
}
.logbook-time { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.9rem; color: rgba(255, 255, 255, 0.3); }

.logbook-title-wrap {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.logbook-title { 
    font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; margin: 0;
    color: #f4f4f5; transition: color 0.3s;
}
.lb-arrow {
    stroke: rgba(255, 255, 255, 0.15); transition: stroke 0.3s, transform 0.3s;
}
.logbook-row:hover .lb-arrow {
    stroke: var(--accent-yellow); transform: translate(4px, -4px);
}
.logbook-row:hover .logbook-title {
    color: var(--accent-yellow);
}

@media (max-width: 900px) {
    .logbook-header-row { display: none !important; }
    .logbook-row {
        grid-template-columns: 1fr auto !important;
        grid-template-areas: 
            "date cat"
            "title title" !important;
        gap: 16px 12px !important;
        padding: 24px 20px !important;
        background: rgba(18, 18, 22, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: 12px;
        margin-bottom: 20px;
    }
    .logbook-row::before { display: none; }
    .logbook-date { grid-area: date; }
    .logbook-category { grid-area: cat; text-align: right; }
    .logbook-time { display: none; }
    .logbook-title-wrap { grid-area: title; align-items: flex-start; margin-top: 4px; }
    .logbook-title { font-size: 1.25rem; line-height: 1.4; color: #fff; }
    .logbook-row:hover {
        background: rgba(25, 25, 30, 0.7) !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        transform: translateY(-2px);
    }
}

/* ==============================================
   WRITING DETAIL (THE UNIX MAN PAGE)
   ============================================== */
.man-page-layout {
    max-width: 850px;
    margin: 0 auto;
    padding: 140px 20px 120px 20px;
}
.man-terminal-wrapper {
    background: rgba(15,15,15,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 60px 40px 40px 40px; 
    position: relative;
    margin-bottom: 80px;
}
.man-terminal-dots {
    position: absolute; top: 20px; left: 20px; display: flex; gap: 8px;
}
.man-terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.m-red { background: #c45c58; } .m-yel { background: #c4a85c; } .m-grn { background: #6d9074; }

.man-section-header {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.05rem;
    color: var(--accent-yellow);
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}
.man-title { font-size: 3.5rem; line-height: 1.1; margin-bottom: 32px; letter-spacing: -0.02em; }
.man-synopsis { font-size: 1.25rem; line-height: 1.6; color: rgba(255,255,255,0.7); border-left: 2px solid var(--accent-yellow); padding-left: 20px; margin-bottom: 0; }

.man-content-section { margin-bottom: 80px; }
.man-h2 {
    font-size: 2rem; margin-bottom: 24px; margin-top: 60px;
}
.man-prose {
    font-size: 1.2rem; line-height: 1.8; color: rgba(255,255,255,0.85); margin-bottom: 24px;
}
.man-code-block {
    background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px; padding: 24px; font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1rem; color: rgba(255,255,255,0.9); overflow-x: auto;
    margin: 40px 0;
}

/* Markdig-rendered article content */
.man-content-section h2 {
    font-size: 2rem; margin-bottom: 24px; margin-top: 60px;
    color: #fff; font-weight: 700;
}
.man-content-section p {
    font-size: 1.2rem; line-height: 1.8; color: rgba(255,255,255,0.85); margin-bottom: 24px;
}
.man-content-section em { color: var(--accent-yellow); font-style: italic; }
.man-content-section strong { color: #fff; font-weight: 700; }
.man-content-section pre {
    background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px; padding: 24px; font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 0.95rem; color: rgba(255,255,255,0.9); overflow-x: auto;
    margin: 40px 0; line-height: 1.6;
}
.man-content-section code {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 0.9em; color: var(--accent-yellow);
}
.man-content-section pre code {
    color: rgba(255,255,255,0.9); font-size: 0.95rem;
}
.man-content-section ul, .man-content-section ol {
    padding-left: 24px; margin-bottom: 24px;
}
.man-content-section li {
    font-size: 1.15rem; line-height: 1.8; color: rgba(255,255,255,0.8); margin-bottom: 8px;
}

/* ==============================================
   CONTACT PAGE (SECURE UPLINK TERMINAL)
   ============================================== */
.contact-hero-wrap {
    text-align: left; margin-bottom: 40px; margin-top: 80px;
}

.network-dashboard {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 120px;
}

@media (max-width: 900px) {
    .network-dashboard {
        grid-template-columns: 1fr;
    }
}

.transmit-console {
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.console-header {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.console-body {
    padding: 40px;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    font-size: 0.95rem;
}

.console-cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--accent-yellow);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
    margin-left: 4px;
}

@keyframes blink { 50% { opacity: 0; } }

.socket-node {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(10,10,10,0.6);
    padding: 24px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.socket-node:hover {
    border-color: rgba(255,255,255,0.18);
    background: rgba(22,22,24,0.82);
    transform: translateX(2px);
}

.socket-node::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--accent-yellow);
    transform: scaleY(0); transition: transform 0.2s; transform-origin: top;
}
.socket-node:hover::before { transform: scaleY(1); }

.socket-title {
    color: #fff; font-size: 1.25rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center;
}
.socket-metrics {
    font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.8rem; color: rgba(228,228,231,0.38); display: flex; flex-direction: column; gap: 4px;
}
.socket-online {
    color: rgba(160, 192, 168, 0.95); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.75rem; display: flex; align-items: center; gap: 6px;
}
.socket-online::before {
    content: ''; width: 6px; height: 6px; background: rgba(125, 155, 130, 0.95); border-radius: 50%; box-shadow: 0 0 6px rgba(125, 155, 130, 0.35);
}

/* ==============================================
   OMNI-TERMINAL GLOBAL OS TISSUE
   ============================================== */
body::after {
    content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: linear-gradient(rgba(255,255,255,0.008) 1px, transparent 1px);
    background-size: 100% 3px;
    pointer-events: none; z-index: 9999;
}
.os-frame {
    position: fixed; top: 12px; left: 12px; right: 12px; bottom: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px; pointer-events: none; z-index: 9998;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.55);
}

.omni-laser-hover { position: relative; overflow: hidden; transition: all 0.2s; }
.omni-laser-hover::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--accent-yellow);
    transform: scaleY(0); transition: transform 0.2s; transform-origin: center;
}
.omni-laser-hover:hover { background: rgba(234, 179, 8, 0.03); color: #fff; }
.omni-laser-hover:hover::before { transform: scaleY(1); }

/* ==============================================
   OMNI-TERMINAL CUSTOM SCROLLBAR & FOOTER
   ============================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #050505;
    border-left: 1px solid rgba(255,255,255,0.05);
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 75, 0.28);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 75, 0.45);
}

.footer-diagnostics-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
@media (max-width: 767px) {
    .footer-diagnostics-grid { grid-template-columns: 1fr; gap: 60px;}
}

/* ==============================================
   PROJECT IMAGE GALLERY (WORK DETAIL)
   ============================================== */
.project-image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 60px;
}

.gallery-item-main {
    grid-column: 1 / -1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(12,12,16,0.8);
    aspect-ratio: 16 / 9;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.gallery-item:hover {
    border-color: rgba(234, 179, 8, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-main {
    aspect-ratio: 2 / 1;
}

.gallery-item-optional {
    aspect-ratio: 16 / 10;
}

@media (max-width: 991px) {
    .project-image-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item-main {
        grid-column: 1;
        aspect-ratio: 16 / 9;
    }
    
    .gallery-item-optional {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 767px) {
    .project-image-gallery {
        gap: 16px;
        margin-bottom: 40px;
    }
    
    .gallery-item {
        border-radius: 8px;
    }
}

/* ==============================================
   GLOBAL MOBILE RESPONSIVENESS
   Complete coverage: Nav, Home, Work, Writing,
   Contact, About, WorkDetail, Footer
   ============================================== */

/* Mobile Drawer Logic (Applies to the webflow .header-mobile) */
.header-mobile.nav-drawer-open {
    transform: translate(0) !important;
    opacity: 1 !important;
    background: #0a0a0f !important;
    box-shadow: 10px 0 30px rgba(0,0,0,0.8);
}

/* --- TABLET (max 991px) --- */
@media screen and (max-width: 991px) {
    /* Nav sticky bar: hide on tablets/phones to avoid conflict with hamburger header */
    .nav-sticky {
        display: none !important;
    }

    /* Hero */
    .precision-hero {
        min-height: auto;
        padding: 80px 0 60px;
    }

    /* Force grids strictly */
    .hero-grid,
    .case-study-card,
    .split-pane-layout,
    .now-summary-grid,
    .bento-grid,
    .telemetry-grid,
    .registry-grid,
    .live-view-split,
    .footer-diagnostics-grid {
        grid-template-columns: 1fr !important;
    }

    .case-visual-wrapper {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding: 30px 20px;
    }
    .case-content-wrapper {
        padding: 24px;
    }
    .case-header {
        flex-direction: column;
        gap: 10px;
    }

    /* Work detail split pane */
    .split-pane-layout {
        padding-top: 80px;
        gap: 40px;
    }
    .pane-sticky-stage {
        position: relative;
        top: 0;
        height: auto;
        overflow-y: visible;
    }
    .narrative-section { padding-left: 24px; }

    /* Now section */
    .now-sidebar { position: relative; top: 0; }

    /* Footer */
    .footer-cta-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding: 40px;
    }
    .precision-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* --- MOBILE (max 800px) --- */
@media screen and (max-width: 800px) {
    /* ===== 1. GLOBAL SPACING ===== */
    .container-box,
    .w-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    .divider-subtle { margin: 40px 0; }
    .precision-dashboard { padding-bottom: 60px; overflow-x: hidden; width: 100vw; }
    .os-frame { top: 4px; left: 4px; right: 4px; bottom: 4px; border-radius: 8px; }

    /* ===== 2. TYPOGRAPHY ===== */
    .text-title-xl { font-size: clamp(2rem, 8vw, 3rem) !important; margin-bottom: 16px; }
    .text-subtitle { font-size: 1rem; }
    .text-overline { font-size: 0.7rem; }

    /* ===== 3. HOME PAGE ===== */
    .precision-hero { padding: 50px 0 40px !important; }
    .hero-grid { gap: 30px !important; }
    .hero-cta-group {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .hero-cta-group a {
        text-align: center;
        justify-content: center;
        display: flex !important;
        width: 100%;
    }
    .hero-stats-panel { padding: 16px !important; }
    .stat-row { padding-bottom: 10px; }
    .stat-label { font-size: 0.8rem; }
    .stat-value { font-size: 0.85rem; }

    /* Bento Grid */
    .bento-grid { gap: 16px; }
    .precision-card { padding: 20px !important; }
    .bento-cell-title { font-size: 1.1rem; }

    /* Section headers */
    .section-header-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px;
    }
    
    .section-case-studies > .container > div:first-child,
    .section-writing > .container > div:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* ===== 4. CASE STUDY CARDS (Home + Work) ===== */
    .case-title { font-size: 1.4rem !important; }
    .case-status { font-size: 0.65rem; }
    .case-data-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .case-visual-wrapper { padding: 20px !important; }
    .case-visual-icon { font-size: 2.5rem; }
    .case-content-wrapper { padding: 20px !important; }

    /* ===== 5. WORK PIPELINE ===== */
    .work-pipeline-container { padding-left: 24px !important; }
    .pipeline-spine { left: 6px !important; }
    .pipeline-node { left: -22px !important; width: 8px !important; height: 8px !important; top: 20px !important; }
    .massive-index { font-size: 5rem !important; top: -10px !important; right: -5px !important; }
    .work-project-wrapper { margin-bottom: 40px !important; }
    .work-project-wrapper:hover .case-study-card { transform: none; }

    /* Work filter strip */
    .work-filter-strip {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding-bottom: 8px;
    }
    .work-filter-strip::-webkit-scrollbar { display: none; }
    .work-filter-pill { white-space: nowrap; flex-shrink: 0; }

    /* ===== 6. WORK DETAIL ===== */
    .narrative-hero { margin-bottom: 60px; }
    .narrative-breadcrumb { margin-bottom: 40px; font-size: 0.75rem; }
    .narrative-section { margin-bottom: 60px; padding-left: 20px; }
    .narrative-indicator { left: -6px; width: 11px; height: 11px; }
    .stage-card { padding: 20px; }
    .terminal-block { padding: 16px !important; min-height: 200px; font-size: 0.8rem; }
    .bento-lesson-card { padding: 20px !important; }
    .lesson-text { font-size: 0.95rem; }

    /* ===== 7. WRITING LOGBOOK ===== */
    .logbook-hero { padding-top: 80px; padding-bottom: 40px; }
    .logbook-header-row { display: none !important; }
    .logbook-row {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-areas: 
            "date cat"
            "title title" !important;
        gap: 20px 12px !important;
        padding: 24px 20px !important;
        background: rgba(18, 18, 22, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 12px;
        margin-bottom: 20px;
    }
    .logbook-row:hover {
        background: rgba(25, 25, 30, 0.8) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        transform: translateY(-2px);
    }
    .logbook-row::before { display: none; }
    .logbook-date { grid-area: date; }
    .logbook-category { grid-area: cat; text-align: right; }
    .logbook-time { display: none; }
    .logbook-title-wrap { grid-area: title; align-items: flex-start; }
    .logbook-title { font-size: 1.35rem !important; line-height: 1.4; margin-top: 0; }
    .lb-arrow { width: 22px; height: 22px; }

    /* Writing Detail (Man Page) */
    .man-page-layout { padding: 80px 16px 60px 16px; }
    .man-terminal-wrapper { padding: 40px 16px 24px 16px !important; margin-bottom: 40px; }
    .man-terminal-dots { top: 12px !important; left: 12px !important; }
    .man-terminal-dot { width: 10px; height: 10px; }
    .man-title { font-size: 1.8rem !important; line-height: 1.2 !important; margin-bottom: 16px !important; }
    .man-synopsis { font-size: 1.05rem; padding-left: 16px; }
    .man-content-section { margin-bottom: 40px; }
    .man-content-section h2 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 16px; }
    .man-content-section p { font-size: 1.05rem; }
    .man-content-section pre { padding: 16px; font-size: 0.85rem; margin: 24px 0; }
    .man-code-block { padding: 16px; font-size: 0.85rem; margin: 24px 0; }

    /* ===== 8. CONTACT PAGE ===== */
    .contact-hero-wrap { margin-top: 50px; }
    .contact-hero-wrap h1 { font-size: 2.5rem !important; }
    .network-dashboard { gap: 24px; margin-bottom: 60px; }
    .console-body { padding: 20px; font-size: 0.85rem; }
    .console-header { padding: 12px 16px; font-size: 0.75rem; }
    .socket-node { padding: 16px; }
    .socket-title { font-size: 1.05rem; }

    /* ===== 9. ABOUT PAGE ===== */
    .sys-hero { padding: 60px 0 40px; }
    .sys-hero-grid { grid-template-columns: 1fr !important; gap: 30px; }
    .sys-title { font-size: clamp(2rem, 8vw, 3rem) !important; }
    .sys-lede { max-width: 100%; }
    .telemetry-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .telemetry-node-main { grid-column: span 1 !important; grid-row: span 1 !important; }
    .telemetry-node { padding: 18px; }
    .telemetry-node .stat-value { font-size: 2.5rem; }
    .sys-section-header { margin: 50px 0 24px; gap: 14px; }
    .sys-section-header h2 { font-size: 1.25rem; white-space: normal; }
    .registry-grid { grid-template-columns: 1fr !important; }
    .live-view-split { grid-template-columns: 1fr !important; gap: 30px; }
    .live-view-sticky { position: static !important; margin-bottom: 20px; }
    .live-view-sticky h2 { font-size: 2rem; }
    .sys-glass-panel { padding: 20px; }
    .sys-event { padding-bottom: 30px; }
    .term-content { padding: 20px; font-size: 0.8rem; }

    /* ===== 10. FOOTER ===== */
    .footer-diagnostics-grid { grid-template-columns: 1fr !important; gap: 40px; }
    .precision-footer-grid { grid-template-columns: 1fr !important; }
    .footer-cta-card { padding: 24px !important; }

    /* Footer bottom bar */
    .footer-bottom-bar {
        flex-direction: column !important;
        gap: 8px;
        text-align: center;
    }

    /* ===== 11. ERROR PAGE ===== */
    .terminal-block h1 { font-size: 2rem !important; }
}

/* --- SMALL PHONE (max 480px) --- */
@media screen and (max-width: 480px) {
    .text-title-xl { font-size: 1.8rem !important; }
    .hero-grid { gap: 20px !important; }
    .case-title { font-size: 1.2rem !important; }
    .massive-index { display: none !important; }
    .pipeline-spine { display: none; }
    .work-pipeline-container { padding-left: 0 !important; }
    .pipeline-node { display: none; }
    .man-title { font-size: 1.5rem !important; }
    .contact-hero-wrap h1 { font-size: 2rem !important; }
    .sys-title { font-size: 1.8rem !important; }
    .telemetry-node .stat-value { font-size: 2rem; }
    .blade-content { padding: 16px; }
    .blade-val { font-size: 0.95rem; }
    .now-blade:hover { transform: none; }
    .bento-lesson-card:hover { transform: none; }
}

/* Calm motion: reduce hover slides and pulses when user prefers */
@media (prefers-reduced-motion: reduce) {
    .hover-subtle:hover,
    .case-study-card:hover,
    .bento-grid .precision-card:hover,
    .work-project-wrapper:hover .case-study-card {
        transform: none !important;
    }
    .now-blade:hover,
    .bento-lesson-card:hover,
    .socket-node:hover {
        transform: none !important;
    }
    .dot-indicator::after {
        animation: none !important;
    }
    .console-cursor {
        animation: none !important;
    }
}

/* ==============================================
   ENHANCED GLASSMORPHIC FOOTER
   ============================================== */

/* Glass Footer Container */
.glass-footer-container {
    margin-top: 80px;
    position: relative;
}

.glass-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

/* Glass Footer Cards */
.glass-footer-card {
    background: rgba(15, 15, 20, 0.65);
    backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.glass-footer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-footer-card:hover::before {
    opacity: 1;
}

.glass-card-primary {
    background: rgba(20, 20, 25, 0.75);
    border: 1px solid rgba(212, 168, 75, 0.15);
}

.glass-card-primary:hover {
    background: rgba(25, 25, 30, 0.85);
    border-color: rgba(212, 168, 75, 0.25);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(212, 168, 75, 0.1);
    transform: translateY(-2px);
}

.glass-card-secondary:hover {
    background: rgba(20, 20, 25, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

/* Card Headers */
.glass-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.status-indicator-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.status-available {
    background: rgba(125, 155, 130, 0.95);
    box-shadow: 0 0 8px rgba(125, 155, 130, 0.4);
}

.status-available::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 1px solid rgba(125, 155, 130, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.status-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.trust-badges {
    display: flex;
    gap: 8px;
}

.trust-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    background: rgba(125, 155, 130, 0.15);
    border: 1px solid rgba(125, 155, 130, 0.3);
    border-radius: 6px;
    color: rgba(125, 155, 130, 0.9);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.card-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.card-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

/* Card Content */
.glass-card-content {
    position: relative;
    z-index: 1;
}

.footer-headline {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Professional Metrics */
.professional-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.metric-item {
    text-align: center;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 168, 75, 0.2);
}

.metric-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-yellow);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.footer-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(4px);
}

.footer-nav-item:hover::before {
    transform: scaleY(1);
}

.footer-nav-item.featured {
    background: rgba(212, 168, 75, 0.1);
    border: 1px solid rgba(212, 168, 75, 0.2);
    color: var(--accent-yellow);
    font-weight: 600;
}

.footer-nav-item.featured:hover {
    background: rgba(212, 168, 75, 0.2);
    border-color: rgba(212, 168, 75, 0.3);
}

.nav-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.footer-nav-item:hover .nav-indicator {
    background: var(--accent-yellow);
    box-shadow: 0 0 8px rgba(212, 168, 75, 0.4);
}

.nav-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Connect Links */
.connect-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.connect-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.connect-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.connect-link.primary-cta {
    background: rgba(212, 168, 75, 0.1);
    border: 1px solid rgba(212, 168, 75, 0.2);
    color: var(--accent-yellow);
}

.connect-link.primary-cta:hover {
    background: rgba(212, 168, 75, 0.2);
    border-color: rgba(212, 168, 75, 0.3);
}

.connect-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.connect-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.connect-platform {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.connect-handle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Footer Bar */
.glass-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bar-left,
.footer-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.copyright,
.rights,
.design-credit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bar-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bar-link:hover {
    color: var(--accent-yellow);
}

.separator {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ==============================================
   PREMIUM REFINEMENTS - ADVANCED GLASSMORPHISM
   ============================================== */

/* Enhanced Glass Container with Animated Background */
.glass-footer-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 20% 50%,
        rgba(212, 168, 75, 0.03) 0%,
        transparent 50%
    ),
    radial-gradient(
        circle at 80% 20%,
        rgba(139, 156, 175, 0.02) 0%,
        transparent 50%
    ),
    radial-gradient(
        circle at 40% 80%,
        rgba(125, 155, 130, 0.02) 0%,
        transparent 50%
    );
    animation: floatingGradient 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatingGradient {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.8;
    }
}

/* Premium Card Depth Enhancement */
.glass-footer-card {
    background: rgba(20, 20, 25, 0.65);
    backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.glass-footer-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.02) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.01) 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-footer-card:hover::after {
    opacity: 1;
}

/* Enhanced Status Indicator - Static for Professional Look */
.status-available {
    background: rgba(125, 155, 130, 0.95);
    box-shadow: 
        0 0 8px rgba(125, 155, 130, 0.3),
        inset 0 0 4px rgba(125, 155, 130, 0.2);
}

/* Premium Trust Badges */
.trust-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    background: rgba(125, 155, 130, 0.15);
    border: 1px solid rgba(125, 155, 130, 0.3);
    border-radius: 6px;
    color: rgba(125, 155, 130, 0.9);
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.trust-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(125, 155, 130, 0.2) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.trust-badge:hover::before {
    left: 100%;
}

.trust-badge:hover {
    background: rgba(125, 155, 130, 0.25);
    border-color: rgba(125, 155, 130, 0.5);
    transform: translateY(-1px);
}

/* Enhanced Professional Metrics */
.metric-item {
    text-align: center;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(
        circle,
        rgba(212, 168, 75, 0.1) 0%,
        transparent 70%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.metric-item:hover::before {
    width: 100px;
    height: 100px;
}

.metric-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 168, 75, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Premium Navigation Items */
.footer-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-nav-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 168, 75, 0.05) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

.footer-nav-item:hover::after {
    left: 100%;
}

.footer-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Enhanced Connect Links */
.connect-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.connect-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(
        circle,
        rgba(212, 168, 75, 0.08) 0%,
        transparent 70%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.connect-link:hover::before {
    width: 120px;
    height: 120px;
}

.connect-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.connect-link.primary-cta:hover {
    background: rgba(212, 168, 75, 0.2);
    border-color: rgba(212, 168, 75, 0.3);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(212, 168, 75, 0.1);
}

/* Premium Footer Bar */
.glass-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
}

.glass-footer-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 168, 75, 0.1) 50%,
        transparent 100%
    );
    opacity: 0.5;
}

/* Enhanced Footer Links */
.footer-bar-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bar-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-yellow);
    transition: width 0.3s ease;
}

.footer-bar-link:hover::after {
    width: 100%;
}

.footer-bar-link:hover {
    color: var(--accent-yellow);
}

/* Global Card Enhancement */
.precision-card {
    background: rgba(20, 20, 25, 0.7);
    backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow: hidden;
    position: relative;
}

.precision-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.02) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.01) 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.precision-card:hover::after {
    opacity: 1;
}

/* Enhanced Hover Subtle Class */
.hover-subtle {
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), 
                box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), 
                background 0.4s ease, 
                border-color 0.4s ease,
                filter 0.4s ease,
                backdrop-filter 0.4s ease;
}

.hover-subtle:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(212, 168, 75, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    filter: brightness(1.03) saturate(1.1);
    backdrop-filter: blur(25px) saturate(1.3);
}

/* Responsive Design */
@media (max-width: 991px) {
    .glass-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .glass-footer-card {
        padding: 24px;
    }
    
    .professional-metrics {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .glass-footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .glass-footer-card {
        padding: 20px;
    }
    
    .glass-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .footer-headline {
        font-size: 1.2rem;
    }
    
    .glass-footer-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
    .glass-footer-card,
    .footer-nav-item,
    .connect-link,
    .metric-item,
    .status-available::after {
        animation: none;
        transition: none;
    }
}

/* Premium Link Button */
.premium-link-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; text-decoration: none !important; transition: all 0.3s ease; } .premium-link-btn.primary { background: var(--accent-yellow); color: #000; box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3); } .premium-link-btn.primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4); } .premium-link-btn.secondary { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1); } .premium-link-btn.secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); transform: translateY(-2px); } .btn-icon { display: flex; align-items: center; justify-content: center; } .btn-arrow { font-family: monospace; font-size: 1.1em; transition: transform 0.3s ease; } .premium-link-btn:hover .btn-arrow { transform: translate(2px, -2px); }
