body.blog-layout {
    background:
        radial-gradient(760px 460px at 8% 0%, rgba(0, 209, 255, 0.14), transparent 60%),
        radial-gradient(620px 380px at 92% 6%, rgba(255, 255, 255, 0.08), transparent 56%),
        linear-gradient(180deg, #0c1218 0%, #111820 36%, #101010 100%);
    color: #e4edf1;
}

body.blog-layout::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, black 34%, transparent 84%);
}

.blog-shell {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 112px 24px 80px;
}

.blog-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 34px;
}

.blog-hero-panel,
.blog-highlight-panel,
.blog-section,
.blog-card,
.blog-cta,
.blog-post-hero,
.blog-article,
.blog-sidebar-card,
.blog-related-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(17, 24, 32, 0.92), rgba(10, 14, 20, 0.96));
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.blog-hero-panel {
    position: relative;
    overflow: hidden;
    padding: 36px;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 42, 170, 0.1), transparent 30%),
        radial-gradient(circle at 14% 82%, rgba(0, 209, 255, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(17, 24, 32, 0.94), rgba(10, 14, 20, 0.97));
}

.blog-hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(0, 209, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 42, 170, 0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 82% 18%, black 0%, transparent 58%);
}

.blog-hero-panel > * {
    position: relative;
    z-index: 1;
}

.blog-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 209, 255, 0.1);
    border: 1px solid rgba(0, 209, 255, 0.22);
    color: var(--clr-primary);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.blog-hero-signal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    max-width: 560px;
}

.blog-hero-signal span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(0, 209, 255, 0.16);
    border-radius: 4px;
    background:
        linear-gradient(135deg, rgba(0, 209, 255, 0.08), rgba(255, 42, 170, 0.045)),
        rgba(255, 255, 255, 0.035);
    color: #d5e8f2;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.blog-hero-panel h1,
.blog-post-hero h1 {
    margin: 18px 0 14px;
    color: #ffffff;
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.blog-hero-panel h1 {
    font-size: clamp(2.5rem, 5vw, 4.9rem);
    max-width: 10ch;
}

.blog-hero-panel p,
.blog-post-hero p,
.blog-section p,
.blog-card p,
.blog-cta p,
.blog-article p,
.blog-article li,
.blog-sidebar-card p,
.blog-sidebar-card li,
.blog-related-card p {
    color: #bac6cf;
    line-height: 1.8;
}

.blog-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.blog-metric {
    position: relative;
    overflow: hidden;
    min-height: 112px;
    padding: 16px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 209, 255, 0.075), rgba(255, 42, 170, 0.035)),
        rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(0, 209, 255, 0.13);
    border-left: 3px solid rgba(255, 42, 170, 0.62);
    transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease, border-left-color 0.22s ease;
}

.blog-metric::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.42;
    background:
        linear-gradient(120deg, transparent 0%, rgba(0, 209, 255, 0.08) 46%, transparent 47%),
        radial-gradient(circle at 88% 16%, rgba(255, 42, 170, 0.11), transparent 34%);
    transition: opacity 0.22s ease;
}

.blog-metric:hover {
    border-color: rgba(0, 209, 255, 0.32);
    border-left-color: var(--clr-primary);
    transform: translateY(-2px);
    background:
        linear-gradient(135deg, rgba(0, 209, 255, 0.11), rgba(255, 42, 170, 0.06)),
        rgba(10, 14, 20, 0.92);
}

.blog-metric:hover::after {
    opacity: 1;
}

.blog-metric strong {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--clr-primary);
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.blog-metric span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 10px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: #e0e0e0;
    font-size: 0.82rem;
    line-height: 1.15;
}

.blog-highlight-panel {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.blog-highlight-panel h2 {
    margin-bottom: 8px;
}

.blog-highlight-list li span {
    margin-right: 8px;
    margin-bottom: 4px;
}

.blog-highlight-panel h2,
.blog-section h2,
.blog-article h2,
.blog-sidebar-card h2,
.blog-related-card h2 {
    color: #ffffff;
    margin-bottom: 14px;
    font-size: clamp(1.15rem, 2vw, 1.75rem);
}

.blog-highlight-list,
.blog-link-list,
.blog-article ul,
.blog-sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-highlight-list li,
.blog-link-list li,
.blog-sidebar-card li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-highlight-list li:last-child,
.blog-link-list li:last-child,
.blog-sidebar-card li:last-child {
    border-bottom: 0;
}

.blog-highlight-list span,
.blog-post-meta span,
.blog-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #dbe8ef;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.blog-highlight-list a,
.blog-card a,
.blog-section a,
.blog-post-hero a,
.blog-article a,
.blog-sidebar-card a,
.blog-related-card a,
.blog-breadcrumb a {
    color: var(--clr-primary);
    text-decoration: none;
}

.blog-highlight-list a:hover,
.blog-card a:hover,
.blog-section a:hover,
.blog-post-hero a:hover,
.blog-article a:hover,
.blog-sidebar-card a:hover,
.blog-related-card a:hover,
.blog-breadcrumb a:hover {
    color: #ffffff;
}

.blog-section {
    padding: 28px;
    margin-bottom: 28px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    transition: transform 0.28s ease, border-color 0.28s ease;
}

.blog-card:hover,
.blog-related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 209, 255, 0.34);
}

.blog-card h3,
.blog-related-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1.42;
}

.blog-card h3 {
    margin: 0;
    min-height: 4.26em;
    max-height: 4.26em;
    overflow: hidden;
}

.blog-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-title-wrap {
    display: flex;
    align-items: flex-start;
    min-height: 4.26em;
    padding: 0;
}

.blog-title-wrap h3 {
    flex: 1;
}

.blog-card > p {
    flex: 1 1 auto;
    margin: 0;
    min-height: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.blog-card-meta,
.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-card-meta {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    min-height: 84px;
    align-content: flex-start;
}

.blog-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 74px;
    align-content: flex-start;
}

.blog-tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d7e3ea;
    font-size: 0.82rem;
}

.blog-link {
    margin-top: 0;
    padding-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--clr-primary);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.blog-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 28px;
}

.role-page-columns {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1100px;
    margin-inline: auto;
}

.blog-columns > *,
.blog-article-grid,
.blog-related-grid,
.blog-post-hero,
.blog-article,
.blog-sidebar-card,
.blog-related-card {
    min-width: 0;
}

.blog-post-hero,
.blog-article,
.blog-sidebar-card,
.blog-related-card {
    overflow-wrap: anywhere;
}

.blog-post-hero,
.blog-article,
.blog-sidebar-card,
.blog-related-card,
.blog-cta {
    padding: 28px;
}

.blog-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 24px;
}

.blog-media-panel {
    margin: 18px 0 24px;
    overflow: hidden;
    background: #101010;
    border: 1px solid #1a1a1a;
    border-radius: 10px;
}

.blog-media-grid .blog-media-panel {
    margin: 0;
}

.blog-media-panel-wide {
    grid-column: 1 / -1;
}

.blog-media-panel img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #080808;
}

.blog-media-panel figcaption {
    padding: 13px 16px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #b9b9b9;
    font-size: 0.92rem;
    line-height: 1.6;
}

.blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: #95a6b2;
    font-size: 0.92rem;
}

.blog-breadcrumb span[aria-current="page"] {
    color: #ffffff;
}

.blog-article h2 {
    margin-top: 26px;
}

.blog-article ul {
    margin-top: 14px;
}

.blog-article li {
    position: relative;
    padding-left: 18px;
    margin: 10px 0;
}

.blog-article li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--clr-primary);
}

.blog-callout {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 3px solid var(--clr-primary);
    background: rgba(0, 209, 255, 0.08);
    border-radius: 0 14px 14px 0;
}

.blog-article-grid,
.blog-related-grid {
    display: grid;
    gap: 18px;
}

.blog-related-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.blog-cta {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.blog-cta-stack {
    margin-top: 28px;
    display: grid;
    gap: 18px;
}

.blog-cta-stack .blog-cta {
    margin-top: 0;
}

.blog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 209, 255, 0.32);
    background: rgba(0, 209, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.blog-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(0, 209, 255, 0.16);
}

.contact.blog-contact {
    position: fixed;
}

.contact.blog-contact .contactpic {
    height: 34px;
    width: 34px;
    margin: 8px auto;
    opacity: 0.88;
}

@media (max-width: 1080px) {
    .blog-hero,
    .blog-columns {
        grid-template-columns: 1fr;
    }

    .contact.blog-contact {
        display: none;
    }

    .blog-shell {
        padding-right: 24px;
    }
}

@media (max-width: 768px) {
    .blog-shell {
        padding: 92px 16px 60px;
    }

    .blog-hero-panel,
    .blog-highlight-panel,
    .blog-section,
    .blog-card,
    .blog-post-hero,
    .blog-article,
    .blog-sidebar-card,
    .blog-related-card,
    .blog-cta {
        padding: 22px;
        border-radius: 18px;
    }

    .blog-hero-metrics {
        grid-template-columns: 1fr;
    }

    .blog-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-related-card,
    .blog-button {
        transition: none;
    }
}

/* Align blog visuals with projects/about style */
body.blog-layout {
    background: #171717;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
}

body.blog-layout::before {
    display: none;
}

.blog-shell {
    max-width: 1200px;
    padding: 100px 20px 60px;
}

.blog-hero,
.blog-columns {
    gap: 24px;
}

.blog-hero-panel,
.blog-highlight-panel,
.blog-section,
.blog-card,
.blog-post-hero,
.blog-article,
.blog-sidebar-card,
.blog-related-card,
.blog-cta {
    background: #101010;
    border: 1px solid #1a1a1a;
    border-radius: 10px;
    box-shadow: none;
}

.blog-card,
.blog-related-card {
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.blog-card:hover,
.blog-related-card:hover {
    border-color: var(--clr-primary);
    transform: translateY(-4px);
}

.blog-hero-panel h1,
.blog-post-hero h1,
.blog-highlight-panel h2,
.blog-section h2,
.blog-article h2,
.blog-sidebar-card h2,
.blog-related-card h2,
.blog-card h3,
.blog-related-card h3 {
    color: #ffffff;
}

.blog-hero-panel p,
.blog-post-hero p,
.blog-section p,
.blog-card p,
.blog-cta p,
.blog-article p,
.blog-article li,
.blog-sidebar-card p,
.blog-sidebar-card li,
.blog-related-card p {
    color: #b9b9b9;
}

.blog-kicker,
.blog-highlight-list span,
.blog-post-meta span,
.blog-card-meta span,
.blog-tag-row span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #d5e8f2;
}

.blog-hero-panel {
    background:
        radial-gradient(circle at 86% 8%, rgba(255, 42, 170, 0.09), transparent 30%),
        radial-gradient(circle at 14% 88%, rgba(0, 209, 255, 0.1), transparent 36%),
        linear-gradient(180deg, rgba(15, 20, 27, 0.96), rgba(10, 13, 18, 0.98));
}

.blog-kicker {
    background: rgba(0, 209, 255, 0.1);
    border-color: rgba(0, 209, 255, 0.24);
    color: var(--clr-primary);
}

.editorial-type {
    display: inline-flex;
    margin: 0 0 0 8px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #edf4f8;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.editorial-leak { border-color: rgba(255, 186, 73, 0.55); color: #ffd58a; background: rgba(255, 186, 73, 0.1); }
.editorial-theory { border-color: rgba(190, 151, 255, 0.55); color: #d9c4ff; background: rgba(150, 100, 255, 0.12); }
.editorial-notice { margin: 18px 0; padding: 14px 16px; border-left: 3px solid #ffba49; border-radius: 4px; background: rgba(255, 186, 73, 0.08); color: #f3e4c9; }
.editorial-notice.theory { border-left-color: #be97ff; background: rgba(150, 100, 255, 0.08); color: #e8ddfa; }

.blog-hero-signal span {
    background:
        linear-gradient(135deg, rgba(0, 209, 255, 0.08), rgba(255, 42, 170, 0.045)),
        rgba(255, 255, 255, 0.035);
    border-color: rgba(0, 209, 255, 0.16);
    color: #d5e8f2;
}

@media (min-width: 901px) {
    .blog-hero-panel {
        display: block;
    }

    .blog-hero-panel h1 {
        margin-bottom: 14px;
    }

    .blog-hero-panel p {
        margin: 0;
        max-width: 60ch;
    }

    .blog-hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 28px;
    }
}

.blog-callout {
    border-left-color: var(--clr-primary);
    background: rgba(0, 209, 255, 0.08);
}

.blog-highlight-list li,
.blog-link-list li,
.blog-sidebar-card li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.blog-highlight-panel {
    padding: 32px;
    gap: 12px;
}

.blog-highlight-list li {
    padding: 14px 0;
    line-height: 1.7;
    font-size: 0.92rem;
}

.blog-highlight-list li span {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 4px;
    font-weight: 600;
}

.blog-button {
    background: transparent;
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.blog-button:hover {
    background: var(--clr-primary);
    color: #050505;
}

.role-tech-list,
.role-link-grid,
.hire-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.role-tech-list span,
.role-link-grid a,
.hire-cta-grid a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: #d7e3ea;
    text-decoration: none;
    line-height: 1.35;
}

.role-link-grid a,
.hire-cta-grid a {
    color: var(--clr-primary);
    font-weight: 700;
}

.role-link-grid a:hover,
.hire-cta-grid a:hover {
    border-color: rgba(0, 209, 255, 0.34);
    color: #ffffff;
}

.role-internal-links-section {
    max-width: 640px;
    margin-right: auto;
}

.role-internal-links-section .role-link-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.role-internal-links-section .role-link-grid a {
    min-height: 54px;
    justify-content: flex-start;
    padding: 14px 16px;
    border-color: rgba(0, 209, 255, 0.18);
    background: rgba(11, 18, 22, 0.66);
}

.role-project-card {
    min-height: 100%;
}

.role-project-card h3 {
    min-height: 0;
}

.role-project-card p {
    margin-top: 8px;
}

.compact-article-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.compact-article-list article {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.compact-article-list h3 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.contact.blog-contact {
    display: none;
}

@media (max-width: 768px) {
    .blog-shell {
        padding: 88px 14px 48px;
    }

    .blog-hero-panel,
    .blog-highlight-panel,
    .blog-section,
    .blog-card,
    .blog-post-hero,
    .blog-article,
    .blog-sidebar-card,
    .blog-related-card,
    .blog-cta,
    .blog-media-panel {
        padding: 18px;
        border-radius: 8px;
    }

    .blog-media-panel {
        padding: 0;
    }

    .blog-media-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero-panel h1,
    .blog-post-hero h1 {
        font-size: clamp(1.8rem, 7.4vw, 2.4rem);
        line-height: 1.18;
    }

    .blog-card h3,
    .blog-related-card h3 {
        font-size: 1.2rem;
    }

    .blog-card h3,
    .blog-title-wrap,
    .blog-card-meta,
    .blog-tag-row {
        min-height: 0;
    }

    .blog-card h3 {
        max-height: none;
    }

    .blog-card h3 a {
        display: inline;
        overflow: visible;
        -webkit-line-clamp: unset;
        -webkit-box-orient: initial;
    }

    .blog-card > p {
        flex: 0 1 auto;
    }

    .blog-post-meta,
    .blog-card-meta,
    .blog-tag-row,
    .blog-breadcrumb {
        gap: 6px;
    }

    .blog-article li {
        margin: 8px 0;
    }
}
/* Horizon WebGL component */
.blog-layout { overflow-x: clip; }
.blog-layout #all,
.blog-shell { overflow: visible; }
.blog-shell { padding-top: 0; padding-bottom: 0; }
.blog-horizon {
    --hero-progress: 0;
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    min-height: 300vh;
    margin: 0 0 0 -50vw;
    background: #02030d;
}
.blog-horizon-stage.hero-container {
    position: sticky;
    top: 0;
    isolation: isolate;
    width: 100%;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    display: block;
    background:
        radial-gradient(ellipse 70% 62% at 51% 72%, rgba(133, 169, 225, .76) 0%, rgba(93, 133, 212, .8) 20%, rgba(76, 111, 197, .64) 43%, rgba(45, 66, 147, .12) 73%, transparent 100%),
        radial-gradient(ellipse 56% 48% at 74% 58%, rgba(111, 120, 222, .2) 0%, rgba(63, 79, 174, .1) 58%, transparent 100%),
        radial-gradient(ellipse 70% 52% at 19% 73%, rgba(67, 112, 205, .2) 0%, transparent 100%),
        linear-gradient(180deg, #172253 0%, #202e6e 47%, #3b5897 100%);
}
.blog-horizon-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(2, 3, 13, .32), transparent 19%, transparent 81%, rgba(2, 3, 13, .28)),
        linear-gradient(0deg, rgba(1, 2, 10, .62), transparent 36%);
}
.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.horizon-fallback .hero-canvas { display: none; }
.blog-horizon-stage.horizon-scene-ready .hero-canvas { opacity: 1; }
.horizon-fallback .blog-horizon-copy .hero-title {
    display: block;
    text-align: center;
    overflow-wrap: normal;
}
.side-menu {
    position: absolute;
    z-index: 8;
    left: clamp(20px, 3.2vw, 62px);
    top: 43%;
    display: block;
    color: rgba(240, 243, 255, .72);
}
.side-menu-posts {
    appearance: none;
    padding: 0;
    border: 0;
    outline: 0;
    color: rgba(240, 243, 255, .72) !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    font: 400 .76rem/1.2 Inter, sans-serif;
    letter-spacing: .3em;
    writing-mode: vertical-rl;
    transition: color .2s ease, text-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.side-menu-posts:hover,
.side-menu-posts:focus,
.side-menu-posts:active,
.side-menu-posts:focus-visible { color: rgba(240, 243, 255, .9) !important; background: transparent !important; text-shadow: 0 0 14px rgba(255, 255, 255, .24); outline: none; }
.blog-horizon-copy.hero-content {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    padding: clamp(32px, 5vh, 58px) 6vw 120px;
    box-sizing: border-box;
    text-align: center;
    transform: none;
    opacity: clamp(0, calc(1 - var(--hero-progress) * 2.2), 1);
    pointer-events: none;
    will-change: opacity;
}
.blog-horizon-kicker {
    color: #68e8ff;
    font: 700 clamp(.66rem, .9vw, .8rem)/1 Inter, sans-serif;
    letter-spacing: .27em;
    text-transform: uppercase;
    text-shadow: 0 0 22px rgba(46, 221, 255, .45);
}
.blog-horizon-copy .hero-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    column-gap: .2em;
    width: min(1340px, 86vw);
    max-width: none;
    margin: clamp(24px, 4vh, 48px) auto 0;
    color: #ff4b7d;
    font: 800 clamp(3.4rem, 8vw, 9.2rem)/.84 Poppins, sans-serif;
    letter-spacing: -.075em;
    text-wrap: balance;
    text-shadow: 0 0 32px rgba(255, 75, 125, .25);
}
.hero-subtitle.cosmos-subtitle {
    width: min(1340px, 86vw);
    margin: clamp(36px, 7vh, 82px) auto 0;
}
.hero-subtitle .subtitle-line {
    margin: 0;
    color: rgba(242, 247, 255, .88);
    font: 400 clamp(.96rem, 1.65vw, 1.48rem)/1.55 Inter, sans-serif;
    text-shadow: 0 3px 24px #02030d;
}
.blog-horizon-tags { display: none; }
.scroll-sections {
    position: absolute;
    inset: 0;
    z-index: 7;
    pointer-events: none;
}
.content-section {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8vh 7vw 18vh;
    box-sizing: border-box;
    opacity: 0;
    text-align: center;
    will-change: opacity;
}
.content-section h2 {
    margin: 0;
    color: #ff4b7d;
    max-width: 96vw;
    font: 800 clamp(4.2rem, 12vw, 12rem)/.82 Poppins, sans-serif;
    letter-spacing: -.075em;
    text-shadow: 0 0 38px rgba(255, 75, 125, .28);
}
.content-section p {
    margin: clamp(26px, 5vh, 54px) 0 0;
    color: rgba(242, 247, 255, .88);
    font: 400 clamp(1rem, 1.75vw, 1.55rem)/1.6 Inter, sans-serif;
    text-shadow: 0 3px 24px #02030d;
}
.blog-featured-carousel.is-in-scene {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 clamp(24px, 6vw, 110px) calc(var(--blog-footer-height, 86px) + 12px);
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(3, 5, 18, .74), rgba(6, 6, 20, .82));
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(72px);
    pointer-events: none;
    transition: opacity .65s ease, transform .8s cubic-bezier(.2, .75, .2, 1);
}
.blog-horizon-stage.show-carousel .blog-featured-carousel.is-in-scene {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.blog-carousel-track {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 300px;
    overflow: visible;
    cursor: grab;
    perspective: 1200px;
    perspective-origin: 50% 48%;
    transform-style: preserve-3d;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.blog-carousel-track.is-dragging { cursor: grabbing; }
.blog-carousel-track.is-dragging .blog-carousel-card { transition: none; }
.blog-carousel-card {
    --coverflow-x: 0px;
    --coverflow-z: 0px;
    --coverflow-rotate: 0deg;
    --coverflow-scale: 1;
    --coverflow-opacity: 1;
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(260px, 27vw, 350px);
    height: clamp(260px, 27vw, 350px);
    min-height: 0;
    margin: 0;
    overflow: hidden;
    transform: translate(-50%, -50%) translateX(var(--coverflow-x)) translateZ(var(--coverflow-z)) rotateY(var(--coverflow-rotate)) scale(var(--coverflow-scale));
    transform-style: preserve-3d;
    opacity: var(--coverflow-opacity);
    box-shadow: 0 26px 60px rgba(0, 0, 0, .52);
    transition: transform .82s cubic-bezier(.2, .72, .16, 1), opacity .68s ease, border-color .55s ease, box-shadow .55s ease;
    will-change: transform, opacity;
}
.blog-carousel-card[data-glow] {
    --spotlight-size: 200px;
    --x: -400px;
    --y: -400px;
    --spotlight-color: #00d1ff;
    border: 3px solid transparent;
    border-radius: 14px;
    background:
        linear-gradient(#101010, #101010) padding-box,
        radial-gradient(circle var(--spotlight-size) at var(--x) var(--y), var(--spotlight-color), transparent 85%) border-box,
        linear-gradient(#1a1a1a, #1a1a1a) border-box;
}
.blog-carousel-card.is-active {
    box-shadow: 0 30px 80px rgba(0, 0, 0, .62);
}
.blog-carousel-card:hover {
    transform: translate(-50%, -50%) translateX(var(--coverflow-x)) translateZ(var(--coverflow-z)) rotateY(var(--coverflow-rotate)) scale(var(--coverflow-scale));
}
.blog-carousel-card .blog-card-meta { flex-direction: row; min-height: 0; gap: 6px; }
.blog-carousel-card .blog-card-meta span,
.blog-carousel-card .blog-tag-row span { padding: 5px 9px; font-size: .7rem; }
.blog-carousel-card h3 {
    min-height: 0;
    max-height: 3.9em;
    font-size: 1.22rem;
    line-height: 1.3;
}
.blog-carousel-card h3 a { -webkit-line-clamp: 3; }
.blog-carousel-card > p {
    display: -webkit-box;
    flex: 0 1 auto;
    overflow: hidden;
    font-size: .88rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.blog-carousel-card .blog-tag-row { min-height: 0; gap: 6px; }
.blog-carousel-card .blog-link { margin-top: auto; padding-top: 4px; font-size: .83rem; }
.blog-library[hidden] { display: none; }

.blog-footer-overlay {
    position: absolute !important;
    inset: auto 0 0;
    z-index: 14;
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 0;
    background: rgba(3, 5, 18, .94);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
    transition: opacity .55s ease .15s, transform .72s cubic-bezier(.2, .72, .18, 1) .08s;
}
.blog-horizon-stage.show-carousel .blog-footer-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.blog-footer-overlay .footer-container { padding: 6px 10px; }
.blog-footer-overlay .footer-link-list { gap: 7px; margin: 3px 0 11px; }
.blog-footer-overlay .footer-link-pill { min-height: 27px; padding: 0 10px; font-size: 10px; }
.blog-footer-overlay .footer-meta { gap: 5px; margin: 0; font-size: 10px; line-height: 1.3; }
.blog-footer-overlay .footer-legal-inline { gap: 5px; }

@media (max-width: 760px) {
    .blog-horizon { min-height: 280svh; }
    .blog-horizon-stage.hero-container { height: 100svh; min-height: 0; }
    .side-menu { left: 8px; top: 50%; transform: translateY(-50%); }
    .side-menu-posts { font-size: .58rem; letter-spacing: .2em; }
    .blog-horizon-copy.hero-content { padding: max(28px, env(safe-area-inset-top)) 18px 72px; }
    .blog-horizon-kicker { font-size: .58rem; letter-spacing: .2em; }
    .blog-horizon-copy .hero-title {
        width: 88vw;
        margin-top: clamp(18px, 3.5svh, 30px);
        column-gap: .16em;
        font-size: clamp(2.65rem, 13.5vw, 5.2rem);
        line-height: .88;
        letter-spacing: -.06em;
    }
    .content-section { padding: 64px 24px 88px; }
    .content-section h2 { max-width: 92vw; font-size: clamp(3rem, 13vw, 5.8rem); line-height: .88; }
    .content-section p { max-width: 84vw; margin-top: 24px; font-size: clamp(.84rem, 3.7vw, 1rem); line-height: 1.5; }
    .hero-subtitle.cosmos-subtitle { width: 84vw; margin-top: clamp(22px, 4svh, 34px); }
    .hero-subtitle .subtitle-line { font-size: clamp(.82rem, 3.65vw, 1rem); line-height: 1.5; }
    .blog-featured-carousel.is-in-scene { bottom: 0; padding: 0 8px calc(var(--blog-footer-height, 86px) + 12px); }
    .blog-carousel-track { min-height: 0; height: 100%; }
    .blog-carousel-card { width: min(76vw, 280px); height: min(76vw, 280px); padding: 16px; gap: 9px; }
    .blog-carousel-card h3 { font-size: clamp(.94rem, 4.3vw, 1.08rem); line-height: 1.24; }
    .blog-carousel-card > p { font-size: .76rem; line-height: 1.35; -webkit-line-clamp: 2; }
    .blog-carousel-card .blog-card-meta span,
    .blog-carousel-card .blog-tag-row span { padding: 4px 7px; font-size: .58rem; }
    .blog-carousel-card .blog-link { font-size: .72rem; }
    .blog-footer-overlay .footer-container { padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .blog-horizon { min-height: 200vh; }
    .blog-featured-carousel.is-in-scene { transition: none; }
    .hero-canvas { transition: none; }
}


/* Content-sized article sidebar cards. Future generated posts use these same classes. */
.blog-columns > aside.blog-article-grid {
  align-self: start;
  align-content: start;
  grid-auto-rows: max-content;
}

.blog-columns > aside.blog-article-grid > .blog-sidebar-card {
  height: auto;
  min-height: 0;
  align-self: start;
}

.blog-columns > aside.blog-article-grid > .blog-sidebar-card > :last-child {
  margin-bottom: 0;
}


/* Source-attributed article artwork, shared with social-video backgrounds. */
.blog-source-image {
    margin: 0 0 clamp(28px, 4vw, 44px);
}
.blog-source-image > a {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: rgba(5,10,20,.55);
}
.blog-source-image img {
    display: block;
    width: 100%;
    max-height: min(70vh, 720px);
    object-fit: cover;
}
.blog-source-image figcaption {
    margin-top: 9px;
    color: rgba(220,230,240,.72);
    font: 500 .78rem/1.45 Inter, sans-serif;
}
.blog-source-image figcaption a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
