/* =========================================================
   CHANNELS — SANCTIONED TRANSMISSIONS
   Minimal terminal interface for external communication
   Text-only, monochrome, restrained
   ========================================================= */

.iv-channels {
    position: relative;
    padding: 64px 0;
    overflow: hidden;

    background:
        linear-gradient(180deg, rgba(6, 8, 11, 0.98), rgba(3, 4, 6, 1));
}


/* =========================================================
   BACKGROUND ANIMATIONS
   ========================================================= */

/* Subtle noise/grain layer */
.iv-channels__noise {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.03;
    overflow: hidden;

    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );

    animation: noise-drift 20s linear infinite;
}

@keyframes noise-drift {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(40px);
    }
}

/* Subtle light sweep */
.iv-channels__sweep {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    clip-path: inset(0);

    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(127, 166, 201, 0.02) 50%,
        transparent 100%
    );

    animation: sweep-down 15s ease-in-out infinite;
}

@keyframes sweep-down {
    0% {
        top: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}


/* =========================================================
   WRAPPER
   ========================================================= */

.iv-channels__inner {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 64px));
    margin: 0 auto;
    text-align: center;
}


/* =========================================================
   TITLE
   ========================================================= */

.iv-channels__title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: 0.12em;
    margin-bottom: 48px;
    color: var(--bone-white);
    opacity: 0.92;

    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(127, 166, 201, 0.08);
}


/* =========================================================
   BLOCKS
   ========================================================= */

.iv-channels__block {
    margin-bottom: 40px;
}

.iv-channels__label {
    font-size: 0.65rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ash-gray);
    opacity: 0.7;
    margin-bottom: 16px;
}


/* =========================================================
   LINKS
   ========================================================= */

.iv-channels__links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.iv-channels__link {
    position: relative;
    display: inline-block;
    padding: 14px 0;
    text-decoration: none;
    color: var(--bone-white);
    opacity: 0.82;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    transition: opacity 0.3s ease, color 0.3s ease;
    cursor: pointer;

    /* Subtle underline */
    border-bottom: 1px solid transparent;
    transition:
        opacity 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.iv-channels__linkText {
    position: relative;
    z-index: 2;
}

/* Scan-line effect on hover */
.iv-channels__scan {
    position: absolute;
    left: -10%;
    top: 0;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(127, 166, 201, 0.08) 50%,
        transparent 100%
    );
    opacity: 0;
    transform: translateX(-100%);
    transition: none;
    pointer-events: none;
}

.iv-channels__link:hover {
    opacity: 1;
    color: var(--bone-white);
    border-bottom-color: rgba(127, 166, 201, 0.35);
}

.iv-channels__link:hover .iv-channels__scan {
    animation: scan-pass 0.6s ease-out forwards;
}

@keyframes scan-pass {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Focus state for keyboard navigation */
.iv-channels__link:focus {
    outline: 2px solid rgba(127, 166, 201, 0.5);
    outline-offset: 4px;
    opacity: 1;
    border-bottom-color: rgba(127, 166, 201, 0.5);
}

.iv-channels__link:focus:not(:focus-visible) {
    outline: none;
}


/* =========================================================
   DECREE (Closing Statement)
   ========================================================= */

.iv-channels__decree {
    margin-top: 48px;
    padding: 24px 32px;
    border-top: 1px solid rgba(127, 166, 201, 0.12);
    border-bottom: 1px solid rgba(127, 166, 201, 0.12);
}

.iv-channels__decree p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--ash-gray);
    opacity: 0.75;
    letter-spacing: 0.02em;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    .iv-channels {
        padding: 48px 0;
    }

    .iv-channels__title {
        margin-bottom: 40px;
    }

    .iv-channels__block {
        margin-bottom: 32px;
    }

    .iv-channels__link {
        font-size: 0.98rem;
        padding: 12px 0;
    }

    .iv-channels__decree {
        margin-top: 40px;
        padding: 20px 24px;
    }

    .iv-channels__decree p {
        font-size: 0.85rem;
    }
}

@media (max-width: 520px) {
    .iv-channels {
        padding: 40px 0;
    }

    .iv-channels__inner {
        width: calc(100% - 48px);
    }

    .iv-channels__title {
        font-size: 1.75rem;
        margin-bottom: 32px;
    }

    .iv-channels__link {
        font-size: 0.92rem;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .iv-channels__noise,
    .iv-channels__sweep,
    .iv-channels__scan,
    .iv-channels__link {
        animation: none !important;
        transition: opacity 0.2s ease, color 0.2s ease;
    }

    .iv-channels__link:hover .iv-channels__scan {
        display: none;
    }
}
