/* Against the Grain — Insights archive */

.atg-insights-page {
    background: var(--atg-black);
    color: var(--atg-cream);
}

.atg-insights-page__shell {
    position: relative;
}

.atg-insights-page__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
}

.atg-insights-page__eyebrow {
    margin: 0 0 14px;
    color: var(--atg-gold);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.atg-insights-page__neon {
    display: inline-block;
    color: transparent;
    background: linear-gradient(
        90deg,
        var(--atg-neon-blue),
        var(--atg-neon-purple),
        var(--atg-neon-pink),
        var(--atg-neon-orange),
        var(--atg-neon-blue)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: atgInsightsNeon 7s linear infinite;
}

@keyframes atgInsightsNeon {
    from { background-position: 0% 50%; }
    to { background-position: 300% 50%; }
}

.atg-insights-page__hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 430px;
    display: flex;
    align-items: center;
    padding: 82px 0 92px;
    background:
        radial-gradient(circle at 74% 38%, rgba(0, 229, 255, 0.075), transparent 31%),
        radial-gradient(circle at 25% 48%, rgba(138, 43, 226, 0.13), transparent 35%),
        linear-gradient(180deg, #050505, #090909 60%, #050505);
}

.atg-insights-page__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.22;
}

.atg-insights-page__hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, var(--atg-black));
    pointer-events: none;
}

.atg-insights-page__hero-glow {
    position: absolute;
    top: 4%;
    left: 50%;
    z-index: -2;
    width: min(1100px, 90vw);
    height: 500px;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 30% 45%, rgba(138, 43, 226, 0.13), transparent 36%),
        radial-gradient(circle at 74% 38%, rgba(0, 229, 255, 0.08), transparent 34%);
    filter: blur(22px);
    pointer-events: none;
}

.atg-insights-page__hero .atg-insights-page__container {
    max-width: 1450px;
}

.atg-insights-page__hero h1 {
    max-width: 930px;
    margin: 0 0 26px;
    color: var(--atg-cream);
    font-size: clamp(58px, 6.5vw, 96px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.atg-insights-page__lead {
    max-width: 760px;
    margin: 0;
    color: var(--atg-muted);
    font-size: 18px;
    line-height: 1.75;
}

.atg-insights-page__posts {
    position: relative;
    isolation: isolate;
    padding: 12px 0 40px;
    background: linear-gradient(180deg, #050505, #080808 48%, #050505);
}

.atg-insights-page__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.atg-insights-page__empty {
    max-width: 640px;
    margin: 20px auto 48px;
    padding: 48px 36px;
    text-align: center;
    border: 1px solid var(--atg-gold-line);
    background: rgba(9, 9, 9, 0.86);
}

.atg-insights-page__empty h2 {
    margin: 0 0 14px;
    color: var(--atg-cream);
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -0.03em;
}

.atg-insights-page__empty p {
    margin: 0;
    color: var(--atg-muted);
    font-size: 16px;
    line-height: 1.7;
}

.atg-insights-card {
    min-width: 0;
    background: #0a0a0a;
    border: 1px solid rgba(180, 138, 67, 0.28);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    transition:
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        transform 0.4s ease;
}

.atg-insights-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.atg-insights-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #111;
}

.atg-insights-card__media--empty {
    background:
        linear-gradient(135deg, rgba(180, 138, 67, 0.12), transparent 46%),
        #111;
}

.atg-insights-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 82% center;
    filter: brightness(0.94) saturate(1.04) contrast(1.03);
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease;
}

.atg-insights-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px 24px 28px;
}

.atg-insights-card__date {
    color: var(--atg-gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.atg-insights-card__title {
    margin: 0;
    color: var(--atg-cream);
    font-size: clamp(24px, 2vw, 32px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.atg-insights-card__excerpt {
    margin: 0;
    color: var(--atg-muted);
    font-size: 15px;
    line-height: 1.65;
}

.atg-insights-card__more {
    margin-top: auto;
    padding-top: 8px;
    color: var(--atg-gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
    .atg-insights-card:hover {
        border-color: rgba(244, 239, 230, 0.68);
        box-shadow:
            0 26px 60px rgba(0, 0, 0, 0.48),
            0 0 22px rgba(138, 43, 226, 0.1),
            0 0 18px rgba(255, 45, 149, 0.07);
        transform: translateY(-4px);
    }

    .atg-insights-card:hover img {
        filter: brightness(1) saturate(1.1) contrast(1.03);
        transform: scale(1.04);
    }

    .atg-insights-card:hover .atg-insights-card__more {
        color: var(--atg-cream);
    }
}

.atg-insights-page__cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 34px 0 92px;
    background: linear-gradient(180deg, #050505 0%, #080808 100%);
}

.atg-insights-page__cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1420px, calc(100% - 80px));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(180, 138, 67, 0.68), transparent);
}

.atg-insights-page__cta-glow {
    position: absolute;
    top: 48%;
    left: 50%;
    z-index: -2;
    width: min(920px, 92vw);
    height: 390px;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at 35% 50%, rgba(138, 43, 226, 0.16), transparent 42%),
        radial-gradient(circle at 68% 48%, rgba(255, 45, 149, 0.09), transparent 40%);
    filter: blur(34px);
    pointer-events: none;
}

.atg-insights-page__cta-inner {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    max-width: 1420px;
    margin: 0 auto;
    padding: 50px 56px;
    background: linear-gradient(145deg, rgba(13, 13, 13, 0.96), rgba(7, 7, 7, 0.9));
    border: 1px solid rgba(180, 138, 67, 0.46);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.atg-insights-page__cta-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(0, 229, 255, 0.045), transparent 34%, transparent 64%, rgba(255, 45, 149, 0.065));
    pointer-events: none;
}

.atg-insights-page__cta-copy,
.atg-insights-page__button {
    position: relative;
    z-index: 2;
}

.atg-insights-page__cta-copy {
    max-width: 890px;
}

.atg-insights-page__cta h2 {
    margin: 0 0 20px;
    color: var(--atg-cream);
    font-size: clamp(46px, 5.2vw, 76px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.043em;
}

.atg-insights-page__cta-copy > p:not(.atg-insights-page__eyebrow) {
    max-width: 720px;
    margin: 0 0 28px;
    color: var(--atg-muted);
    font-size: 16px;
    line-height: 1.72;
}

.atg-insights-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.atg-insights-page__button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 15px 27px;
    color: var(--atg-cream);
    background: transparent;
    border: 1px solid var(--atg-gold);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.12em;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.atg-insights-page__button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        var(--atg-neon-blue),
        var(--atg-neon-purple),
        var(--atg-neon-pink),
        var(--atg-neon-orange),
        var(--atg-neon-blue)
    );
    background-size: 300% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.atg-insights-page__button:hover,
.atg-insights-page__button:focus-visible {
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.22), 0 0 20px rgba(255, 45, 149, 0.16);
}

.atg-insights-page__button:hover::before,
.atg-insights-page__button:focus-visible::before {
    opacity: 1;
    animation: atgInsightsButton 2.5s linear infinite;
}

.atg-insights-page__button:focus-visible {
    outline: 2px solid var(--atg-neon-blue);
    outline-offset: 5px;
}

@keyframes atgInsightsButton {
    from { background-position: 0% 50%; }
    to { background-position: 300% 50%; }
}

@media (max-width: 1100px) {
    .atg-insights-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .atg-insights-page__cta-inner {
        min-height: 0;
        padding: 44px 38px;
    }
}

@media (max-width: 650px) {
    .atg-insights-page__container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .atg-insights-page__hero {
        min-height: auto;
        padding: 60px 0 66px;
    }

    .atg-insights-page__hero h1 {
        font-size: clamp(42px, 12vw, 64px);
    }

    .atg-insights-page__grid {
        grid-template-columns: 1fr;
    }

    .atg-insights-page__cta {
        padding: 28px 0 64px;
    }

    .atg-insights-page__cta-inner {
        margin-left: 18px;
        margin-right: 18px;
        padding: 34px 22px;
    }

    .atg-insights-page__cta h2 {
        font-size: clamp(36px, 10vw, 52px);
    }

    .atg-insights-page__button {
        width: 100%;
    }
}
