/* ═══════════════════════════════
   THE INTERVENTION | Blog Section
   nikhilkunche.com
   ═══════════════════════════════ */
:root {
    --m: #9B2335;
    --m2: #C62E44;
    --m-glow: rgba(155, 35, 53, .08);
    --void: #0a0a0b;
    --deep: #0e0e10;
    --surface: #14141a;
    --panel: #18181e;
    --t: #F0ECE4;
    --t2: #8a8680;
    --t3: #555550;
    --bd: rgba(255, 255, 255, .06);
    --bd2: rgba(255, 255, 255, .03);
    --g: #22C55E;
    --a: #F59E0B;
    --r: #EF4444;
    --c: #06B6D4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background: var(--void);
    color: var(--t);
    font-family: 'DM Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(155, 35, 53, .35);
    color: var(--t);
}

/* Noise texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)' opacity='0.02'/%3E%3C/svg%3E");
}

/* ═══ SCANLINE OVERLAY ═══ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px);
}

/* ═══ CANVAS BACKGROUND ═══ */
#signalCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ═══ NAVIGATION ═══ */
.signal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, var(--void) 0%, rgba(10, 10, 11, 0.9) 60%, transparent 100%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.signal-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.signal-nav-monogram {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--t);
    opacity: 0.85;
}

.signal-nav-divider {
    width: 1px;
    height: 16px;
    background: var(--bd);
}

.signal-nav-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--m2);
    text-transform: uppercase;
}

.signal-nav-back {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--t2);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.signal-nav-back:hover {
    color: var(--m2);
}

/* ═══ BURGER MENU ═══ */
.signal-nav-burger {
    display: none;
    background: none;
    border: 1px solid var(--bd);
    border-radius: 4px;
    padding: 8px 7px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    z-index: 101;
}

.signal-nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--t);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-open .signal-nav-burger span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-open .signal-nav-burger span:nth-child(2) {
    opacity: 0;
}

.nav-open .signal-nav-burger span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.signal-nav-mobile-menu {
    display: none;
}

.signal-nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ═══ BLOG INDEX HERO ═══ */
.signal-hero {
    position: relative;
    z-index: 1;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 48px 60px;
    text-align: center;
    overflow: hidden;
}

.signal-hero-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--m2);
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.3s forwards;
}

.signal-hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(80px, 15vw, 200px);
    letter-spacing: 0.15em;
    line-height: 0.85;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--t) 0%, rgba(240, 236, 228, 0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    opacity: 0;
    animation: glitchFadeIn 1.2s ease 0.1s forwards;
    overflow-wrap: break-word;
}

/* Glitch effect layers */
.signal-hero-title::before,
.signal-hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--t) 0%, rgba(240, 236, 228, 0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signal-hero-title::before {
    animation: glitch1 4s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.signal-hero-title::after {
    animation: glitch2 4s infinite linear alternate-reverse;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

.signal-hero-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 6px;
    color: var(--t3);
    text-transform: uppercase;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.6s forwards;
}

.signal-hero-line {
    width: 60px;
    height: 1px;
    background: var(--m);
    margin: 32px auto 0;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.9s forwards;
}

/* ═══ FILTER BAR ═══ */
.signal-filters {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 48px 48px;
    flex-wrap: wrap;
}

.signal-filter {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--t3);
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid var(--bd);
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.signal-filter:hover {
    color: var(--t2);
    border-color: rgba(155, 35, 53, 0.3);
}

.signal-filter.active {
    color: var(--m2);
    border-color: rgba(155, 35, 53, 0.5);
    background: rgba(155, 35, 53, 0.08);
    box-shadow: 0 0 20px rgba(155, 35, 53, 0.1);
}

/* ═══ SIGNAL FEED ═══ */
.signal-feed {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 48px 120px;
}

.signal-entry {
    position: relative;
    display: block;
    padding: 40px 0 40px 32px;
    border-bottom: 1px solid var(--bd);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.signal-entry:first-child {
    border-top: 1px solid var(--bd);
}

/* Left accent bar */
.signal-entry::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent 0%, var(--m) 30%, var(--m) 70%, transparent 100%);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.signal-entry:hover::before {
    opacity: 1;
    box-shadow: 0 0 12px rgba(155, 35, 53, 0.4);
}

.signal-entry:hover {
    transform: translateX(4px);
}

/* Transmission metadata row */
.signal-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.signal-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--t3);
}

.signal-category {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 2px;
}

.signal-category[data-cat="RESEARCH"] {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.signal-category[data-cat="ENGINEERING"] {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.signal-category[data-cat="PHILOSOPHY"] {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.signal-category[data-cat="OPEN-SOURCE"] {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.signal-readtime {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--t3);
    opacity: 0.6;
}

/* Post title */
.signal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: 3px;
    line-height: 0.95;
    margin-bottom: 12px;
    color: var(--t);
    transition: color 0.3s;
}

.signal-entry:hover .signal-title {
    color: var(--m2);
}

/* Excerpt */
.signal-excerpt {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--t2);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 16px;
}

/* Decrypt CTA */
.signal-decrypt {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--m2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.signal-decrypt-arrow {
    transition: transform 0.2s;
}

.signal-entry:hover .signal-decrypt {
    color: var(--t);
}

.signal-entry:hover .signal-decrypt-arrow {
    transform: translateX(4px);
}

/* Waveform decoration */
.signal-waveform {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.15;
    transition: opacity 0.3s;
    pointer-events: none;
}

.signal-entry:hover .signal-waveform {
    opacity: 0.35;
}

/* Hidden entry (filtered out) */
.signal-entry.hidden {
    display: none;
}

/* ═══ BLOG POST PAGE ═══ */

/* Post hero */
.post-hero {
    position: relative;
    z-index: 1;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 48px 48px;
    text-align: center;
    border-bottom: 1px solid var(--bd);
}

.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.post-hero-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--t3);
}

.post-hero-readtime {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--t3);
    opacity: 0.6;
}

.post-hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 8vw, 120px);
    letter-spacing: 0.1em;
    line-height: 0.9;
    max-width: 900px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--t) 0%, rgba(240, 236, 228, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeSlideUp 1s ease 0.2s forwards;
}

.post-hero-excerpt {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: var(--t2);
    line-height: 1.7;
    max-width: 580px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.5s forwards;
}

.post-hero-line {
    width: 40px;
    height: 1px;
    background: var(--m);
    margin: 40px auto 0;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.7s forwards;
}

/* Post content */
.post-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 80px 24px 120px;
}

.post-content p {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    color: rgba(240, 236, 228, 0.8);
    line-height: 1.85;
    margin-bottom: 28px;
    letter-spacing: 0.01em;
}

.post-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    letter-spacing: 4px;
    color: var(--t);
    margin: 56px 0 24px;
    padding-left: 20px;
    border-left: 3px solid var(--m);
    line-height: 1;
}

.post-content h2::before {
    content: '◈ ';
    color: var(--m2);
    font-size: 14px;
    vertical-align: middle;
}

.post-content strong {
    color: var(--t);
    font-weight: 600;
}

.post-content em {
    color: rgba(240, 236, 228, 0.9);
    font-style: italic;
}

.post-content blockquote {
    position: relative;
    padding: 24px 28px;
    margin: 36px 0;
    background: rgba(155, 35, 53, 0.04);
    border-left: 3px solid var(--m);
    border-radius: 0 4px 4px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-style: italic;
    color: rgba(240, 236, 228, 0.85);
    line-height: 1.7;
    box-shadow: inset 0 0 40px rgba(155, 35, 53, 0.03);
}

.post-content blockquote::before {
    content: 'INTERVENTION FRAGMENT';
    position: absolute;
    top: -10px;
    left: 28px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 8px;
    font-style: normal;
    letter-spacing: 3px;
    color: var(--m2);
    background: var(--void);
    padding: 2px 8px;
}

.post-content pre {
    background: var(--surface);
    border: 1px solid rgba(155, 35, 53, 0.15);
    border-radius: 4px;
    padding: 24px;
    margin: 32px 0;
    overflow-x: auto;
}

.post-content code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--m2);
    line-height: 1.7;
}

.post-content p code {
    background: rgba(155, 35, 53, 0.08);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0 28px 20px;
}

.post-content li {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: rgba(240, 236, 228, 0.8);
    line-height: 1.8;
    margin-bottom: 8px;
}

.post-content li strong {
    color: var(--t);
}

.post-content sub {
    font-size: 0.75em;
}

/* Inline images — full-bleed breakout from content column */
.post-content .post-image {
    display: block;
    width: calc(100% + 120px);
    max-width: none;
    margin: 48px -60px 8px;
    border-radius: 4px;
    border: 1px solid rgba(155, 35, 53, 0.15);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.post-content .post-image-caption {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--t3);
    text-align: center;
    margin: 0 0 48px;
    opacity: 0.7;
    font-style: normal;
}

/* Embedded HTML iframe (animations, interactive visualizations) */
.post-content .post-embed {
    width: calc(100% + 120px);
    margin: 48px -60px;
    border-radius: 4px;
    border: 1px solid rgba(155, 35, 53, 0.15);
    overflow: hidden;
    background: var(--void);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.post-content .post-iframe {
    display: block;
    width: 100%;
    height: 540px;
    border: none;
    background: var(--void);
}

.post-content .post-embed-caption {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--t3);
    text-align: center;
    padding: 12px 20px;
    border-top: 1px solid var(--bd);
    opacity: 0.7;
}

/* Post footer / back nav */
.post-back {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 0 48px 80px;
}

.post-back-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--m2);
    text-decoration: none;
    padding: 14px 28px;
    border: 1px solid rgba(155, 35, 53, 0.25);
    border-radius: 4px;
    transition: all 0.25s;
}

.post-back-link:hover {
    background: rgba(155, 35, 53, 0.1);
    border-color: rgba(155, 35, 53, 0.5);
    color: var(--t);
    box-shadow: 0 0 24px rgba(155, 35, 53, 0.1);
}

/* ═══ 3-COLUMN POST LAYOUT ═══ */
.post-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 120px minmax(0, 720px) 260px;
    gap: 0 40px;
    justify-content: center;
    width: 100%;
}

/* Center column */
.post-center {
    min-width: 0;
}

.post-center .post-content {
    max-width: none;
    margin: 0;
    padding: 80px 40px 40px;
}

.post-center .post-back {
    padding: 0 40px 60px;
}

/* ═══ LEFT SIDEBAR: Decorative ═══ */
.post-sidebar-left {
    position: relative;
    border-right: 1px solid var(--bd2);
}

.post-sidebar-left::after {
    content: '';
    position: sticky;
    top: 50vh;
    display: block;
    width: 4px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(180deg, transparent 0%, rgba(155, 35, 53, 0.4) 50%, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(155, 35, 53, 0.15);
}

#medtechCanvas {
    display: none;
}

/* ═══ RIGHT SIDEBAR: Latest Interventions ═══ */
.post-sidebar-right {
    border-left: 1px solid var(--bd2);
}

.sidebar-posts {
    position: sticky;
    top: 80px;
    padding: 24px 20px;
}

.sidebar-posts-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--m2);
    display: block;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bd);
}

.sidebar-post-item {
    display: block;
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid var(--bd2);
    transition: all 0.2s;
}

.sidebar-post-item:hover {
    padding-left: 8px;
}

.sidebar-post-item:hover .sidebar-post-title {
    color: var(--m2);
}

.sidebar-post-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 8px;
    letter-spacing: 1px;
    color: var(--t3);
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.sidebar-post-cat {
    color: var(--m2);
}

.sidebar-post-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 15px;
    letter-spacing: 1.5px;
    line-height: 1.1;
    color: var(--t);
    transition: color 0.2s;
}

.sidebar-post-active .sidebar-post-title {
    color: var(--m2);
}

.sidebar-post-active {
    border-left: 2px solid var(--m);
    padding-left: 10px;
}

/* ═══ AUTHOR CARD ═══ */
.post-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    margin: 0 40px 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--bd);
    border-radius: 6px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.post-author-photo-link {
    flex-shrink: 0;
}

.post-author-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bd);
    filter: grayscale(20%);
    transition: filter 0.3s, border-color 0.3s;
}

.post-author-photo:hover {
    filter: grayscale(0%);
    border-color: var(--m);
}

.post-author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.post-author-written {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 8px;
    letter-spacing: 3px;
    color: var(--t3);
}

.post-author-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--t);
    text-decoration: none;
    transition: color 0.2s;
}

.post-author-name:hover {
    color: var(--m2);
}

.post-author-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: var(--t2);
}

.post-author-linkedin {
    flex-shrink: 0;
    color: var(--t3);
    padding: 8px;
    border: 1px solid var(--bd);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.post-author-linkedin:hover {
    color: #0a66c2;
    border-color: #0a66c2;
    background: rgba(10, 102, 194, 0.08);
}

/* ═══ SHARE BUTTONS ═══ */
.post-share {
    margin: 0 40px 60px;
    padding: 24px 0;
    border-top: 1px solid var(--bd);
    text-align: center;
}

.post-share-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--t3);
    display: block;
    margin-bottom: 16px;
}

.post-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.post-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bd);
    border-radius: 4px;
    color: var(--t2);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.post-share-btn:hover {
    color: var(--t);
    border-color: var(--m);
    background: rgba(155, 35, 53, 0.06);
    box-shadow: 0 0 16px rgba(155, 35, 53, 0.08);
}

.post-share-btn.copied {
    color: var(--g);
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.06);
}

/* ═══ COMMENTS SECTION ═══ */
.post-comments {
    margin: 0 40px 40px;
    padding: 32px 0 0;
    border-top: 1px solid var(--bd);
}

.post-comments-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--m2);
    display: block;
    margin-bottom: 24px;
}

/* Comment list */
.post-comments-list {
    margin-bottom: 32px;
}

.comment-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--bd2);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 15px;
    letter-spacing: 1.5px;
    color: var(--t);
}

.comment-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--t3);
}

.comment-body {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: rgba(240, 236, 228, 0.75);
    line-height: 1.7;
}

.comment-empty {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--t3);
    letter-spacing: 1px;
    padding: 16px 0;
}

/* Comment form */
.post-comment-form {
    padding: 20px 0;
}

.comment-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bd);
    border-radius: 4px;
    color: var(--t);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.comment-input:focus {
    border-color: var(--m);
}

.comment-input::placeholder,
.comment-textarea::placeholder {
    color: var(--t3);
    opacity: 0.6;
}

.comment-textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bd);
    border-radius: 4px;
    color: var(--t);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 12px;
}

.comment-textarea:focus {
    border-color: var(--m);
}

.comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.comment-submit-btn {
    padding: 10px 24px;
    background: rgba(155, 35, 53, 0.12);
    border: 1px solid rgba(155, 35, 53, 0.3);
    border-radius: 4px;
    color: var(--m2);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-submit-btn:hover {
    background: rgba(155, 35, 53, 0.2);
    border-color: var(--m2);
    color: var(--t);
    box-shadow: 0 0 20px rgba(155, 35, 53, 0.15);
}

.comment-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.comment-status {
    margin-top: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
}

.comment-status.success {
    color: var(--g);
}

.comment-status.error {
    color: var(--r);
}

/* ═══ BLOG FOOTER ═══ */
.signal-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 48px;
    border-top: 1px solid var(--bd);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    color: var(--t3);
    letter-spacing: 1px;
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glitchFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    30% {
        opacity: 1;
        transform: translateY(0);
    }

    32% {
        transform: translateX(-3px) skewX(-1deg);
    }

    34% {
        transform: translateX(3px) skewX(1deg);
    }

    36% {
        transform: translateX(0) skewX(0);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes glitch1 {

    0%,
    92% {
        transform: none;
    }

    93% {
        transform: translateX(-2px);
    }

    94% {
        transform: translateX(2px);
    }

    95% {
        transform: translateX(-1px);
    }

    96%,
    100% {
        transform: none;
    }
}

@keyframes glitch2 {

    0%,
    94% {
        transform: none;
    }

    95% {
        transform: translateX(2px);
    }

    96% {
        transform: translateX(-2px);
    }

    97% {
        transform: translateX(1px);
    }

    98%,
    100% {
        transform: none;
    }
}

/* Entry reveal animation */
.signal-entry {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}

.signal-entry.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ═══ RESPONSIVE: WIDE ═══ */
@media (max-width: 1280px) {
    .post-layout {
        grid-template-columns: 160px minmax(0, 680px) 180px;
    }
}

@media (max-width: 1100px) {
    .post-layout {
        grid-template-columns: minmax(0, 720px);
        justify-content: center;
    }

    .post-sidebar-left {
        display: none;
    }

    .post-sidebar-right {
        display: none;
    }

    /* Show posts list BELOW the article on mobile */
    .post-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .post-center {
        width: 100%;
        max-width: 720px;
    }

    .post-sidebar-right {
        display: block;
        width: 100%;
        max-width: 720px;
        border-left: none;
        border-top: 1px solid var(--bd);
    }

    .sidebar-posts {
        position: static;
        padding: 32px 20px;
    }
}

/* ═══ RESPONSIVE: TABLET ═══ */
@media (max-width: 1024px) {
    .signal-nav {
        padding: 16px 32px;
    }

    .signal-hero {
        padding: 100px 32px 48px;
        min-height: 50vh;
    }

    .signal-feed {
        padding: 0 32px 80px;
    }

    .signal-waveform {
        display: none;
    }
}

/* ═══ RESPONSIVE: MOBILE ═══ */
@media (max-width: 768px) {
    .signal-nav {
        padding: 14px 16px;
        flex-wrap: wrap;
    }

    .signal-nav-hide-mobile {
        display: none !important;
    }

    .signal-nav-burger {
        display: flex;
    }

    .signal-nav-mobile-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 12px 0 4px;
        border-top: 1px solid var(--bd);
        margin-top: 12px;
    }

    .nav-open .signal-nav-mobile-menu {
        display: flex;
    }

    .signal-nav-mobile-link {
        font-family: 'IBM Plex Mono', monospace;
        font-size: 12px;
        letter-spacing: 2px;
        color: var(--t2);
        text-decoration: none;
        text-transform: uppercase;
        padding: 10px 0;
        border-bottom: 1px solid var(--bd2);
        transition: color 0.2s;
    }

    .signal-nav-mobile-link:first-child {
        color: var(--m2);
    }

    .signal-nav-mobile-link:last-child {
        border-bottom: none;
    }

    .signal-nav-mobile-link:hover {
        color: var(--t);
    }

    .signal-nav-monogram {
        font-size: 16px;
    }

    .signal-hero {
        padding: 100px 20px 40px;
        min-height: 45vh;
    }

    .signal-hero-title {
        font-size: clamp(56px, 15vw, 100px);
        letter-spacing: 0.08em;
    }

    .signal-hero-subtitle {
        font-size: 9px;
        letter-spacing: 4px;
    }

    .signal-filters {
        padding: 0 20px 32px;
        gap: 4px;
    }

    .signal-filter {
        font-size: 9px;
        padding: 6px 12px;
        letter-spacing: 1px;
    }

    .signal-feed {
        padding: 0 20px 60px;
    }

    .signal-entry {
        padding: 28px 0 28px 20px;
    }

    .signal-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    .signal-excerpt {
        font-size: 13px;
    }

    .signal-meta {
        gap: 8px;
    }

    .signal-waveform {
        display: none;
    }

    /* Post page mobile */
    .post-hero {
        padding: 100px 20px 60px;
        min-height: 70vh;
    }

    .post-hero-title {
        font-size: clamp(36px, 10vw, 72px);
    }

    .post-hero-excerpt {
        font-size: 14px;
    }

    .post-content,
    .post-center .post-content {
        padding: 48px 20px 80px;
    }

    .post-content p {
        font-size: 15px;
        line-height: 1.75;
    }

    .post-content h2 {
        font-size: 28px;
        letter-spacing: 3px;
        margin: 40px 0 20px;
    }

    .post-content blockquote {
        padding: 20px;
        font-size: 14px;
        margin: 28px 0;
    }

    .post-content pre {
        padding: 16px;
    }

    .post-content code {
        font-size: 12px;
    }

    .post-back,
    .post-center .post-back {
        padding: 0 20px 60px;
    }

    .post-content .post-image {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
    }

    .post-author {
        margin: 0 20px 24px;
        padding: 20px;
    }

    .post-share {
        margin: 0 20px 40px;
    }

    .post-share-buttons {
        gap: 6px;
        justify-content: center;
    }

    .post-share-btn span {
        display: none;
    }

    .post-share-label {
        text-align: center;
    }

    .post-comments {
        margin: 0 20px 40px;
    }
}

/* ═══ SMALL MOBILE ═══ */
@media (max-width: 480px) {
    .signal-hero-title {
        font-size: clamp(44px, 14vw, 80px);
        letter-spacing: 0.05em;
    }

    .signal-title {
        font-size: clamp(22px, 7vw, 32px);
    }

    .post-hero-title {
        font-size: clamp(32px, 12vw, 56px);
    }

    .post-content h2 {
        font-size: 24px;
    }
}