/* stylelint-disable no-descending-specificity -- Shared button styles need cross-component ordering; reordering would impact cards and buttons */
/* CTA button styles extracted from style.css */
/* --- CTA Button Styles --- */

.cta-button:not(.hero__cta-button),
.wp-block-button__link.cta-button:not(.hero__cta-button),
.post-card .wp-block-read-more a {
    padding: 15px 42px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    background: linear-gradient(120deg, var(--neon-cyan), var(--neon-magenta), var(--deep-purple));
    border: 0;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    min-height: var(--btn-height-md);
    transition: transform 0.35s ease, box-shadow 0.35s ease, color 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 12px 30px rgba(3, 6, 14, 0.65), 0 0 0 rgba(0, 229, 255, 0);
    letter-spacing: 0.02em;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65em;
    will-change: transform, box-shadow;
}

.cta-button:not(.hero__cta-button)::before,
.wp-block-button__link.cta-button:not(.hero__cta-button)::before,
.post-card .wp-block-read-more a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(0, 229, 255, 0.18), rgba(255, 0, 224, 0.22));
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease;
    z-index: 0;
}

.cta-button:not(.hero__cta-button)::after,
.wp-block-button__link.cta-button:not(.hero__cta-button)::after,
.post-card .wp-block-read-more a::after {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 20%, rgba(0, 229, 255, 0.45), transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(255, 0, 224, 0.4), transparent 65%);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.45s ease, transform 0.45s ease;
    z-index: -1;
}

.cta-button:not(.hero__cta-button) .btn-text,
.wp-block-button__link.cta-button:not(.hero__cta-button) .btn-text,
.post-card .wp-block-read-more a .btn-text {
    position: relative;
    z-index: 1;
    transition: letter-spacing 0.35s ease, text-shadow 0.35s ease, transform 0.35s ease;
}

.cta-button:not(.hero__cta-button):hover,
.cta-button:not(.hero__cta-button):focus-visible,
.wp-block-button__link.cta-button:not(.hero__cta-button):hover,
.wp-block-button__link.cta-button:not(.hero__cta-button):focus-visible,
.post-card .wp-block-read-more a:hover,
.post-card .wp-block-read-more a:focus-visible {
    transform: translateY(-3px) scale(var(--btn-scale-hover, 1.02));
    color: var(--background-dark);
    box-shadow: 0 18px 40px rgba(0, 229, 255, 0.35), 0 0 36px rgba(255, 0, 224, 0.3);
}

.cta-button:not(.hero__cta-button):hover::before,
.cta-button:not(.hero__cta-button):focus-visible::before,
.wp-block-button__link.cta-button:not(.hero__cta-button):hover::before,
.wp-block-button__link.cta-button:not(.hero__cta-button):focus-visible::before,
.post-card .wp-block-read-more a:hover::before,
.post-card .wp-block-read-more a:focus-visible::before {
    opacity: 1;
    transform: scaleX(1);
}

.cta-button:not(.hero__cta-button):hover .btn-text,
.cta-button:not(.hero__cta-button):focus-visible .btn-text,
.wp-block-button__link.cta-button:not(.hero__cta-button):hover .btn-text,
.wp-block-button__link.cta-button:not(.hero__cta-button):focus-visible .btn-text,
.post-card .wp-block-read-more a:hover .btn-text,
.post-card .wp-block-read-more a:focus-visible .btn-text {
    letter-spacing: 0.1em;
    color: var(--background-dark);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.4), 0 0 24px rgba(255, 0, 224, 0.35);
}

.cta-button:not(.hero__cta-button):hover::after,
.cta-button:not(.hero__cta-button):focus-visible::after,
.wp-block-button__link.cta-button:not(.hero__cta-button):hover::after,
.wp-block-button__link.cta-button:not(.hero__cta-button):focus-visible::after,
.post-card .wp-block-read-more a:hover::after,
.post-card .wp-block-read-more a:focus-visible::after {
    opacity: 0.95;
    transform: scale(1);
}

.cta-button:not(.hero__cta-button):active,
.cta-button:not(.hero__cta-button).is-pressed,
.wp-block-button__link.cta-button:not(.hero__cta-button):active,
.wp-block-button__link.cta-button:not(.hero__cta-button).is-pressed,
.post-card .wp-block-read-more a:active,
.post-card .wp-block-read-more a.is-pressed {
    transform: translateY(-1px) scale(0.995);
    box-shadow:
        inset 0 0 0 2px rgba(0, 0, 0, 0.2),
        0 10px 28px rgba(0, 229, 255, 0.25),
        0 0 18px rgba(255, 0, 224, 0.22);
}

.cta-button:not(.hero__cta-button):focus-visible,
.wp-block-button__link.cta-button:not(.hero__cta-button):focus-visible,
.post-card .wp-block-read-more a:focus-visible {
    outline: 3px solid var(--neon-cyan);
    outline-offset: 4px;
}

.cta-button.is-static:not(.hero__cta-button),
.wp-block-button__link.cta-button.is-static:not(.hero__cta-button),
.post-card .wp-block-read-more a.is-static {
    pointer-events: none;
    cursor: default;
    transform: none;
}

.cta-button.is-static:not(.hero__cta-button)::before,
.wp-block-button__link.cta-button.is-static:not(.hero__cta-button)::before,
.post-card .wp-block-read-more a.is-static::before {
    display: none;
}

.cta-button.is-static:not(.hero__cta-button)::after,
.wp-block-button__link.cta-button.is-static:not(.hero__cta-button)::after,
.post-card .wp-block-read-more a.is-static::after {
    display: none;
}

.cta-button.btn--primary,
.wp-block-button__link.cta-button.btn--primary {
    background: var(--gradient-cta);
    color: var(--text-primary);
    border: 0;
}

.cta-button.btn--secondary,
.wp-block-button__link.cta-button.btn--secondary {
    background: var(--surface-dark);
    color: var(--text-primary);
    border: 1px solid rgba(79, 240, 255, 0.26);
    box-shadow: 0 10px 28px rgba(3, 8, 26, 0.45);
}

.cta-button.btn--secondary::before,
.cta-button.btn--secondary::after,
.wp-block-button__link.cta-button.btn--secondary::before,
.wp-block-button__link.cta-button.btn--secondary::after {
    display: none;
}

.cta-button.btn--secondary:hover,
.cta-button.btn--secondary:focus-visible,
.wp-block-button__link.cta-button.btn--secondary:hover,
.wp-block-button__link.cta-button.btn--secondary:focus-visible {
    color: var(--text-primary);
    border-color: rgba(79, 240, 255, 0.36);
    box-shadow: 0 14px 32px rgba(0, 229, 255, 0.28);
}

.cta-button.btn--ghost,
.wp-block-button__link.cta-button.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(79, 240, 255, 0.32);
    box-shadow: none;
}

.cta-button.btn--ghost::before,
.cta-button.btn--ghost::after,
.wp-block-button__link.cta-button.btn--ghost::before,
.wp-block-button__link.cta-button.btn--ghost::after {
    display: none;
}

.cta-button.btn--ghost:hover,
.cta-button.btn--ghost:focus-visible,
.wp-block-button__link.cta-button.btn--ghost:hover,
.wp-block-button__link.cta-button.btn--ghost:focus-visible {
    color: var(--text-primary);
    border-color: rgba(79, 240, 255, 0.45);
    background: rgba(79, 240, 255, 0.06);
    box-shadow: 0 12px 28px rgba(0, 229, 255, 0.18);
}

.cta-button.btn--icon,
.wp-block-button__link.cta-button.btn--icon {
    min-width: var(--btn-height-md);
    min-height: var(--btn-height-md);
    width: var(--btn-height-md);
    border-radius: 999px;
    padding: 0;
    gap: 0;
    position: relative;
}

.cta-button.btn--icon .btn-text,
.wp-block-button__link.cta-button.btn--icon .btn-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cta-button .btn-icon,
.wp-block-button__link.cta-button .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
}

.cta-button .btn-icon svg,
.wp-block-button__link.cta-button .btn-icon svg {
    width: 100%;
    height: 100%;
}

.cta-button.btn--secondary:active,
.cta-button.btn--secondary.is-pressed,
.wp-block-button__link.cta-button.btn--secondary:active,
.wp-block-button__link.cta-button.btn--secondary.is-pressed {
    transform: translateY(0);
    box-shadow: 0 9px 22px rgba(0, 229, 255, 0.22);
}

.cta-button.btn--ghost:active,
.cta-button.btn--ghost.is-pressed,
.wp-block-button__link.cta-button.btn--ghost:active,
.wp-block-button__link.cta-button.btn--ghost.is-pressed {
    transform: translateY(0);
    background: rgba(79, 240, 255, 0.08);
    border-color: rgba(79, 240, 255, 0.38);
    box-shadow: 0 6px 16px rgba(0, 229, 255, 0.16);
}

.cta-button.btn--surface,
.wp-block-button__link.cta-button.btn--surface {
    background: linear-gradient(165deg, rgba(6, 12, 32, 0.92), rgba(3, 6, 18, 0.9));
    color: var(--text-primary);
    border: 1px solid rgba(79, 240, 255, 0.24);
    box-shadow: 0 18px 42px rgba(3, 8, 26, 0.55);
}

.cta-button.btn--surface::before,
.cta-button.btn--surface::after,
.wp-block-button__link.cta-button.btn--surface::before,
.wp-block-button__link.cta-button.btn--surface::after {
    display: none;
}

.cta-button.btn--surface:hover,
.cta-button.btn--surface:focus-visible,
.wp-block-button__link.cta-button.btn--surface:hover,
.wp-block-button__link.cta-button.btn--surface:focus-visible {
    background: linear-gradient(165deg, rgba(9, 16, 40, 0.94), rgba(4, 8, 22, 0.92));
    border-color: rgba(79, 240, 255, 0.34);
    box-shadow:
        0 22px 52px rgba(0, 229, 255, 0.26),
        0 0 40px rgba(255, 0, 224, 0.18);
}

.cta-button.btn--surface:active,
.cta-button.btn--surface.is-pressed,
.wp-block-button__link.cta-button.btn--surface:active,
.wp-block-button__link.cta-button.btn--surface.is-pressed {
    transform: translateY(0);
    box-shadow:
        0 10px 28px rgba(0, 229, 255, 0.22),
        0 0 24px rgba(255, 0, 224, 0.16);
}

.cta-button.btn--sm,
.wp-block-button__link.cta-button.btn--sm {
    min-height: var(--btn-height-sm);
    padding: clamp(0.4rem, 0.9vw, 0.55rem) clamp(1rem, 2vw, 1.4rem);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.cta-button.btn--lg,
.wp-block-button__link.cta-button.btn--lg {
    min-height: var(--btn-height-lg);
    padding: clamp(0.6rem, 1.4vw, 0.85rem) clamp(1.5rem, 3vw, 2.4rem);
    font-size: 1.05rem;
    letter-spacing: 0.1em;
}

.cta-button.btn--link,
.wp-block-button__link.cta-button.btn--link {
    min-height: auto;
    padding: 0;
    background: none;
    border: none;
    color: var(--neon-cyan);
    box-shadow: none;
    letter-spacing: 0.08em;
}

.cta-button.btn--link::before,
.cta-button.btn--link::after,
.wp-block-button__link.cta-button.btn--link::before,
.wp-block-button__link.cta-button.btn--link::after {
    display: none;
}

.cta-button.btn--link .btn-text,
.wp-block-button__link.cta-button.btn--link .btn-text {
    position: relative;
    padding-bottom: 2px;
}

.cta-button.btn--link .btn-text::after,
.wp-block-button__link.cta-button.btn--link .btn-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(79, 240, 255, 0), rgba(79, 240, 255, 0.6), rgba(255, 0, 224, 0.6), rgba(255, 0, 224, 0));
    transform: scaleX(0.75);
    transform-origin: left center;
    transition: transform 0.32s ease, opacity 0.32s ease;
    opacity: 0.75;
}

.cta-button.btn--link:hover .btn-text::after,
.cta-button.btn--link:focus-visible .btn-text::after,
.wp-block-button__link.cta-button.btn--link:hover .btn-text::after,
.wp-block-button__link.cta-button.btn--link:focus-visible .btn-text::after {
    transform: scaleX(1);
    opacity: 1;
}

/* removed old star drift fragments */

@keyframes header-stars-drift {
    0% {
        /* Start near origin */
        background-position: 0 0, 0 0, 0 0;
        transform: translate3d(-2%, -1.2%, 0) scale(0.985);
    }

    50% {
        /* Parallax-like drift across the three layers */
        background-position: -800px 400px, 600px -450px, -1000px -700px;
        transform: translate3d(-8%, 3%, 0) scale(1.02);
    }

    100% {
        background-position: -1600px 800px, 1200px -900px, -2000px -1400px;
        transform: translate3d(-16%, -4%, 0) scale(1.0);
    }
}

/* removed old twinkle fragments */

@keyframes glyph-glow {
    0% {
        text-shadow: 0 0 12px rgba(0, 229, 255, 0.6), 0 0 20px rgba(255, 0, 224, 0.55);
    }

    100% {
        text-shadow: 0 0 18px rgba(0, 229, 255, 0.9), 0 0 32px rgba(255, 0, 224, 0.85);
    }
}

@media (prefers-reduced-motion: reduce) {
    #masthead.site-header,
    #masthead.site-header::before,
    .cta-button,
    .cta-button::before,
    .cta-button::after,
    .wp-block-button__link.cta-button,
    .wp-block-button__link.cta-button::before,
    .wp-block-button__link.cta-button::after,
    .post-card .wp-block-read-more a,
    .post-card .wp-block-read-more a::before,
    .post-card .wp-block-read-more a::after {
        transition: none;
    }

    .cta-button:hover .btn-text,
    .cta-button:focus-visible .btn-text,
    .wp-block-button__link.cta-button:hover .btn-text,
.wp-block-button__link.cta-button:focus-visible .btn-text,
.post-card .wp-block-read-more a:hover .btn-text,
.post-card .wp-block-read-more a:focus-visible .btn-text {
        animation: none;
    }

    .cta-button::after,
    .wp-block-button__link.cta-button::after,
    .post-card .wp-block-read-more a::after {
        transition: opacity 0.45s ease;
    }

    .stars,
    .stars2,
    .stars3 {
        animation: none;
        opacity: 0.5;
        filter: none;
    }

    /* Ensure header starfield pseudo-element stops animating for motion-sensitive users */

    #masthead.site-header::after {
        animation: none !important;
        opacity: 0.5;
    }
}

/* Footer styles moved to assets/footer.css */

/* --- Page Header --- */

.page-header-container {
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--text-secondary);
    background: radial-gradient(circle, rgba(20,22,28,0.9) 0%, var(--background-dark) 70%);
}

/* Use the existing section-title class for consistency */

.page-header-container .section-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 4.5rem);
    text-align: center;
    margin-bottom: 0; /* Remove bottom margin as it's the only element */
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.page-header-container .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: var(--neon-cyan);
    border-radius: 2px;
    box-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
}


/* --- Content Wrapper for Pages/Posts --- */

.container .entry-content,
.container .entry-footer,
.container .comments-area,
.container .no-results,
.container .error-404 {
    padding-block: var(--space-section-lg);
}

.entry-footer {
    border-top: 1px solid var(--text-secondary);
    padding-top: 30px;
    margin-top: 40px;
}

.entry-footer .entry-meta {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-secondary);
}

.tag-links a {
    display: inline-block;
    padding: 5px 15px;
    margin: 5px 5px 5px 0;
    background: var(--surface-dark);
    border: 1px solid var(--text-secondary);
    border-radius: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-links a:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}


/* --- Blog Template --- */

.site-content.blog-archive {
    padding-top: var(--mcd-admin-bar-offset, 0);
    /* Prevent wide-desktop horizontal scroll from 100vw full-bleed wrappers */
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.blog-hero {
    --typing-neon-cyan: #39f5ff;
    --typing-neon-magenta: #ff4dd9;
    --typing-neon-orange: #ff8a3d;
    --blog-hero-top-gap: clamp(28px, 6vw, 72px);
    --blog-hero-bottom-gap: clamp(44px, 7vw, 96px);
    --blog-hero-top-offset: var(--mcd-header-offset, var(--header-height, 80px));
    position: relative;
    overflow: hidden;
    padding-inline: clamp(24px, 5vw, 72px);
    padding-block: calc(var(--blog-hero-top-offset) + var(--blog-hero-top-gap)) var(--blog-hero-bottom-gap);
    background: radial-gradient(circle at 50% 30%, rgba(0, 229, 255, 0.15), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 224, 0.12), transparent 55%),
        var(--background-dark);
    border-bottom: 2px solid rgba(0, 229, 255, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-drift 20s linear infinite;
    opacity: 0.7;
}

.blog-page .blog-hero__typing {
    display: none;
}

.blog-page .blog-hero__typing.is-ready {
    display: block;
    position: absolute;
    /* Fill the entire hero area so the typing effect is full-bleed */
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    mix-blend-mode: screen;
    opacity: 0.54;
    isolation: isolate;
}

.blog-page .blog-hero__typing.is-ready::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 16, 36, 0.62) 0%, rgba(5, 16, 36, 0.08) 35%, rgba(5, 16, 36, 0.08) 65%, rgba(5, 16, 36, 0.62) 100%);
    z-index: 2;
    transition: opacity 0.6s ease;
}

.blog-page .blog-hero__typing-line {
    --erase-progress: 0;
    position: absolute;
    top: var(--line-top, 12%);
    left: var(--line-left, 10%);
    max-width: clamp(220px, 40vw, 460px);
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 1.45vw, 1.1rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--line-color, rgba(248, 252, 255, 0.84));
    opacity: 0;
    border-right: 1px solid rgba(234, 242, 255, 0.55);
    padding-right: 8px;
    line-height: 1.35;
    text-shadow: 0 0 18px rgba(22, 167, 255, 0.3);
    transform: translateY(12px);
    transition: opacity 0.45s ease, filter 0.45s ease, border-right-color 0.45s ease, transform 0.6s ease;
    z-index: 1;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.55) 18%, rgba(0, 0, 0, 0.85) 52%, rgba(0, 0, 0, 0.35) 100%);
}

.blog-page .blog-hero__typing-text {
    position: relative;
    display: inline-flex;
    white-space: pre;
    clip-path: inset(0 0 0 calc(var(--erase-progress, 0) * 100%));
    will-change: clip-path;
}

@supports not (clip-path: inset(0 0 0 0)) {
    .blog-page .blog-hero__typing-text {
        clip-path: none;
    }
}

.blog-page .blog-hero__typing-line.is-visible {
    opacity: 0.6;
    transform: translateY(0);
}

.blog-page .blog-hero__typing-line.is-finished {
    border-right-color: transparent;
    opacity: 0.46;
}

.blog-page .blog-hero__typing-line.is-erasing {
    border-right-color: transparent;
    opacity: 0.34;
    text-shadow: 0 0 8px rgba(22, 167, 255, 0.12);
}

.blog-page .blog-hero__typing-line[data-motion='static'] {
    filter: blur(0.4px);
    opacity: 0.22;
    border-right-color: transparent;
    transform: none;
}

.blog-page .blog-hero__typing-line[data-motion='static'] .blog-hero__typing-text {
    clip-path: inset(0 0 0 0);
}

.blog-page .blog-hero__typing-line.is-entering {
    opacity: 0;
    transform: translateY(12px);
}

.blog-page .blog-hero__typing-line.is-fading {
    transform: translateY(-6px);
    opacity: 0;
    filter: blur(1px);
    text-shadow: 0 0 12px rgba(22, 167, 255, 0.2);
}

.blog-page .blog-hero--compact .blog-hero__typing.is-ready {
    /* Compact still fills the hero; copy adjusts only overall hero padding */
    inset: 0;
    opacity: 0.48;
}

.blog-page .blog-hero__typing-line.is-erasing .blog-hero__typing-text {
    pointer-events: none;
}

.blog-page .blog-hero__typing-line--ghost {
    --erase-progress: 0;
    opacity: 0.48;
    pointer-events: none;
    clip-path: inset(0 0 0 calc(var(--erase-progress, 0) * 100%));
    transition: opacity 0.35s ease, filter 0.35s ease;
}

.blog-page .blog-hero__typing-line--ghost.is-erasing {
    opacity: 0.36;
}

.blog-page .blog-hero__typing-line--ghost.is-fading {
    opacity: 0;
    filter: blur(1px);
}

.blog-page .blog-hero__typing-line--fifo-ghost {
    opacity: 0.4;
    pointer-events: none;
    border-right-color: transparent;
}

.blog-page .blog-hero__typing-line--fifo-ghost .blog-hero__typing-char--lead {
    animation: none;
    text-shadow: inherit;
}

@keyframes blog-hero-ghost-erase {
    0% {
        opacity: 0.48;
        filter: blur(0);
    }

    100% {
        opacity: 0;
        filter: blur(1.4px);
    }
}

.blog-page .blog-hero__inner {
    position: relative;
    z-index: 1;
    max-width: min(1120px, 92vw);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(22px, 3.6vw, 36px);
    text-align: left;
    align-items: stretch;
}

.blog-hero__headline {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 24px);
}

.blog-page .blog-hero__headline {
    align-items: flex-start;
}

.blog-page .blog-hero__title {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 7vw, 5.6rem);
    line-height: 1.15; /* Increased from 1.08 to prevent descender clipping on "g" */
    margin: 0;
    /* Nudge the headline upward to tighten hero composition */
    margin-top: -35px;
    color: var(--text-primary);
    text-shadow: 0 6px 24px rgba(0, 229, 255, 0.25), 0 0 32px rgba(255, 0, 224, 0.18);
    animation: subtle-glow 3s ease-in-out infinite;
}

/* Mobile: reduce hero title size and padding to prevent overflow */
@media (max-width: 480px) {
    .blog-page .blog-hero {
        padding-inline: 10px;
    }
    .blog-page .blog-hero__title {
        font-size: clamp(1.3rem, 7vw, 2rem);
        margin-top: -8px;
        text-wrap: balance;
        overflow-wrap: anywhere;
    }
    .blog-page .blog-hero__title .blog-hero__accent {
        display: inline;
    }
}

.blog-hero__title-text,
.blog-hero__title-text--visual {
    display: inline-block;
}

.blog-hero__title-text--visual {
    white-space: normal;
}

.blog-hero__word {
    display: inline-flex;
    gap: 0;
}

.blog-hero__letter {
    display: inline-block;
    position: relative;
    cursor: default;
}

.blog-hero__letter:hover::before,
.blog-hero__letter:hover::after,
.blog-hero__letter:focus-visible::before,
.blog-hero__letter:focus-visible::after {
    content: attr(data-char);
    position: absolute;
    top: 0;
    left: 0;
    animation: glitch 0.35s infinite;
}

.blog-hero__letter:hover::before,
.blog-hero__letter:focus-visible::before {
    color: var(--neon-cyan);
    z-index: -1;
    animation-direction: reverse;
}

.blog-hero__letter:hover::after,
.blog-hero__letter:focus-visible::after {
    color: var(--neon-magenta);
    z-index: -2;
}

.blog-hero.is-reduced-motion .blog-hero__letter:hover::before,
.blog-hero.is-reduced-motion .blog-hero__letter:hover::after,
.blog-hero.is-reduced-motion .blog-hero__letter:focus-visible::before,
.blog-hero.is-reduced-motion .blog-hero__letter:focus-visible::after {
    animation: none;
    content: none;
}

/* --- Word-level hover for the accented phrase only --- */
/* When hovering any letter inside a word in the accented span ("neon edge"),
   apply the same glitch pseudo-elements to all letters in that word, and
   subtly bring the word into focus. */

.blog-page .blog-hero__title .blog-hero__accent .blog-hero__word {
    transition: filter 160ms ease, opacity 160ms ease;
}

.blog-page .blog-hero__title .blog-hero__accent .blog-hero__word:hover,
.blog-page .blog-hero__title .blog-hero__accent .blog-hero__word:focus-within {
    /* Perception of focus without disrupting global heading glow */
    filter: brightness(1.08) saturate(1.12);
}

.blog-page .blog-hero__title .blog-hero__accent .blog-hero__word:hover .blog-hero__letter::before,
.blog-page .blog-hero__title .blog-hero__accent .blog-hero__word:hover .blog-hero__letter::after,
.blog-page .blog-hero__title .blog-hero__accent .blog-hero__word:focus-within .blog-hero__letter::before,
.blog-page .blog-hero__title .blog-hero__accent .blog-hero__word:focus-within .blog-hero__letter::after {
    content: attr(data-char);
    position: absolute;
    top: 0;
    left: 0;
    animation: glitch 0.35s infinite;
}

.blog-page .blog-hero__title .blog-hero__accent .blog-hero__word:hover .blog-hero__letter::before,
.blog-page .blog-hero__title .blog-hero__accent .blog-hero__word:focus-within .blog-hero__letter::before {
    color: var(--neon-cyan);
    z-index: -1;
    animation-direction: reverse;
}

.blog-page .blog-hero__title .blog-hero__accent .blog-hero__word:hover .blog-hero__letter::after,
.blog-page .blog-hero__title .blog-hero__accent .blog-hero__word:focus-within .blog-hero__letter::after {
    color: var(--neon-magenta);
    z-index: -2;
}

.blog-page .blog-hero.is-reduced-motion .blog-hero__title .blog-hero__accent .blog-hero__word:hover .blog-hero__letter::before,
.blog-page .blog-hero.is-reduced-motion .blog-hero__title .blog-hero__accent .blog-hero__word:hover .blog-hero__letter::after,
.blog-page .blog-hero.is-reduced-motion .blog-hero__title .blog-hero__accent .blog-hero__word:focus-within .blog-hero__letter::before,
.blog-page .blog-hero.is-reduced-motion .blog-hero__title .blog-hero__accent .blog-hero__word:focus-within .blog-hero__letter::after {
    animation: none;
    content: none;
}

/* --- Phrase-level hover: link both words together --- */
/* If any part of the accented phrase is hovered/focused, light up all letters
   within the phrase so both words (“neon edge”) respond together. */

.blog-page .blog-hero__title .blog-hero__accent {
    background: linear-gradient(90deg, var(--neon-magenta), var(--neon-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* Removed drop-shadow filter - causes rendering issues with gradient text on descenders */
    /* Using text-shadow on parent .blog-hero__title instead for glow effect */
    padding-bottom: 0.15em; /* Extra space for descenders like 'g' */
    transition: filter 160ms ease;
}

.blog-page .blog-hero__title .blog-hero__accent:hover,
.blog-page .blog-hero__title .blog-hero__accent:focus-within {
    filter: brightness(1.08) saturate(1.12);
}

.blog-page .blog-hero__title .blog-hero__accent:hover .blog-hero__letter::before,
.blog-page .blog-hero__title .blog-hero__accent:hover .blog-hero__letter::after,
.blog-page .blog-hero__title .blog-hero__accent:focus-within .blog-hero__letter::before,
.blog-page .blog-hero__title .blog-hero__accent:focus-within .blog-hero__letter::after {
    content: attr(data-char);
    position: absolute;
    top: 0;
    left: 0;
    animation: glitch 0.35s infinite;
}

.blog-page .blog-hero__title .blog-hero__accent:hover .blog-hero__letter::before,
.blog-page .blog-hero__title .blog-hero__accent:focus-within .blog-hero__letter::before {
    color: var(--neon-cyan);
    z-index: -1;
    animation-direction: reverse;
}

.blog-page .blog-hero__title .blog-hero__accent:hover .blog-hero__letter::after,
.blog-page .blog-hero__title .blog-hero__accent:focus-within .blog-hero__letter::after {
    color: var(--neon-magenta);
    z-index: -2;
}

.blog-page .blog-hero.is-reduced-motion .blog-hero__title .blog-hero__accent:hover .blog-hero__letter::before,
.blog-page .blog-hero.is-reduced-motion .blog-hero__title .blog-hero__accent:hover .blog-hero__letter::after,
.blog-page .blog-hero.is-reduced-motion .blog-hero__title .blog-hero__accent:focus-within .blog-hero__letter::before,
.blog-page .blog-hero.is-reduced-motion .blog-hero__title .blog-hero__accent:focus-within .blog-hero__letter::after {
    animation: none;
    content: none;
}

/* ==========================================================================
   BIOLUMINESCENT VARIANT
   Deep ocean aesthetic - FAITHFUL MOCKUP RECREATION
   ========================================================================== */

/* Typing effect color variables - BOOSTED SATURATION for neon pop */

:root {
    --typing-neon-cyan: #0ff;      /* Pure cyan - maximum saturation */
    --typing-neon-magenta: #ff00e6;   /* Hot magenta - cranked up */
    --typing-neon-orange: #ff6a00;    /* Vivid orange - more punch */
}

.blog-hero--bio {
    background: linear-gradient(180deg, #010810 0%, #041018 50%, #020810 100%);
    border-bottom-color: rgba(0, 229, 255, 0.15);
}

/* Disable grid pattern for cleaner ocean feel */

.blog-hero--bio::before {
    opacity: 0;
}

/* Caustics - floating blob gradients */

.blog-hero__bio-caustics {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background:
        radial-gradient(ellipse 120px 100px at 20% 30%, rgba(0, 229, 255, 0.4) 0%, transparent 70%),
        radial-gradient(ellipse 100px 80px at 70% 55%, rgba(110, 42, 251, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 140px 110px at 45% 80%, rgba(0, 229, 255, 0.3) 0%, transparent 70%);
    animation: bio-caustics 14s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes bio-caustics {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(25px, -20px) scale(1.05); }
    50% { transform: translate(-15px, 25px) scale(0.95); }
    75% { transform: translate(10px, 10px) scale(1.02); }
}

/* Bio particles container */

.blog-hero__bio-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Individual bio particle */

.blog-hero__bio-particle {
    position: absolute;
    width: var(--particle-size, 4px);
    height: var(--particle-size, 4px);
    background: radial-gradient(circle, var(--particle-color, var(--neon-cyan)) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: bio-float var(--particle-duration, 6s) ease-in-out infinite;
    animation-delay: var(--particle-delay, 0s);
}

@keyframes bio-float {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.6);
    }
    15% { opacity: 0.85; }
    50% { transform: translateY(-40px) scale(1.3); }
    85% { opacity: 0.6; }

    100% {
        opacity: 0;
        transform: translateY(-80px) scale(0.4);
    }
}

/* Show typing immediately for bio variant to reduce layout shift */

.blog-page .blog-hero--bio .blog-hero__typing {
    display: block;
    position: absolute;
    inset: 0;
    opacity: 0.75;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Enhanced typing lines for bio variant */

.blog-page .blog-hero--bio .blog-hero__typing.is-ready {
    opacity: 0.75;  /* Brighter for bio glow effect - beats compact's 0.48 */
    z-index: 1;     /* Above background, below content */
}

/* Remove dark gradient overlay for bio variant - text should glow, not be dimmed */

.blog-hero--bio .blog-hero__typing.is-ready::after {
    display: none;
}

.blog-hero--bio .blog-hero__typing-line {
    text-shadow:
        0 0 8px rgba(0, 229, 255, 0.7),
        0 0 20px rgba(0, 229, 255, 0.4),
        0 0 40px rgba(0, 229, 255, 0.2);
    animation: bio-glow 4s ease-in-out infinite;
}

@keyframes bio-glow {
    0%, 100% {
        text-shadow:
            0 0 8px rgba(0, 229, 255, 0.7),
            0 0 20px rgba(0, 229, 255, 0.4),
            0 0 40px rgba(0, 229, 255, 0.2);
    }

    50% {
        text-shadow:
            0 0 12px rgba(0, 229, 255, 0.9),
            0 0 28px rgba(0, 229, 255, 0.6),
            0 0 55px rgba(0, 229, 255, 0.35);
    }
}

.blog-hero--bio .blog-hero__typing-line.is-visible {
    opacity: 0.75;  /* Was 0.55 - boosted for bio glow effect */
}

/* IMPROVEMENT 1: Dim regular characters for contrast */

.blog-hero--bio .blog-hero__typing-char {
    color: rgba(140, 160, 190, 0.5) !important;
    text-shadow: none;
    transition: color 0.1s ease, text-shadow 0.15s ease;
}

/* IMPROVEMENTS 2-5: KILLER lead character effect */

.blog-hero--bio .blog-hero__typing-char--lead {
    /* Full color from line - no dimming */
    color: var(--line-color, var(--typing-neon-cyan)) !important;

    /* Multi-layer glow: hot white core → colored mid → soft outer */
    text-shadow:
        0 0 2px #fff,
        0 0 8px #fff,
        0 0 20px currentColor,
        0 0 40px currentColor,
        0 0 60px currentColor,
        0 0 80px currentColor,
        0 0 100px rgba(255, 255, 255, 0.4);

    /* Stacked drop-shadows for bloom effect */
    filter:
        drop-shadow(0 0 4px currentColor)
        drop-shadow(0 0 12px currentColor)
        drop-shadow(0 0 24px currentColor);

    /* Slight scale for emphasis */
    transform: scale(1.05);
    display: inline-block;

    /* Tubelight flicker */
    animation: bio-lead-glow 1.8s linear infinite;
}

@keyframes bio-lead-glow {
    0% {
        opacity: 0.85;
        text-shadow:
            0 0 2px #fff,
            0 0 8px #fff,
            0 0 20px currentColor,
            0 0 40px currentColor,
            0 0 70px currentColor;
        filter:
            drop-shadow(0 0 6px currentColor)
            drop-shadow(0 0 18px currentColor);
        transform: scale(1.04);
    }

    3% {
        opacity: 0.55;
        text-shadow:
            0 0 2px #fff,
            0 0 6px currentColor,
            0 0 14px currentColor;
        filter: drop-shadow(0 0 8px currentColor);
    }

    6% {
        opacity: 0.95;
        text-shadow:
            0 0 3px #fff,
            0 0 10px #fff,
            0 0 28px currentColor,
            0 0 60px currentColor,
            0 0 90px currentColor;
        filter:
            drop-shadow(0 0 8px currentColor)
            drop-shadow(0 0 24px currentColor);
        transform: scale(1.07);
    }

    10% { opacity: 0.7; }
    12% { opacity: 1; }
    18% { opacity: 0.8; }
    20% { opacity: 1; }

    38% {
        opacity: 0.6;
        text-shadow:
            0 0 2px #fff,
            0 0 10px currentColor,
            0 0 22px currentColor;
    }

    42% {
        opacity: 1;
        text-shadow:
            0 0 4px #fff,
            0 0 14px #fff,
            0 0 35px currentColor,
            0 0 70px currentColor,
            0 0 110px currentColor;
        filter:
            drop-shadow(0 0 10px currentColor)
            drop-shadow(0 0 30px currentColor)
            drop-shadow(0 0 50px currentColor);
        transform: scale(1.12);
    }

    60% { opacity: 0.85; transform: scale(1.06); }
    62% { opacity: 1; transform: scale(1.1); }

    100% {
        opacity: 0.9;
        text-shadow:
            0 0 2px #fff,
            0 0 8px #fff,
            0 0 20px currentColor,
            0 0 40px currentColor,
            0 0 70px currentColor;
        filter:
            drop-shadow(0 0 6px currentColor)
            drop-shadow(0 0 18px currentColor);
        transform: scale(1.05);
    }
}

/* ==========================================
   BIO LAYOUT - Two column (text left, search right)
   Hero fills viewport height
   ========================================== */
/* stylelint-disable declaration-block-no-duplicate-properties */

.blog-page .blog-hero--bio {
    /* Fit hero within viewport below header on desktop */
    min-height: calc(100vh - var(--mcd-header-offset, 0px)) !important;
    min-height: calc(100dvh - var(--mcd-header-offset, 0px)) !important;
    max-height: none;
    /* Bio inner already handles spacing; avoid double-padding */
    padding-top: 0;
    padding-bottom: 0;
}

.blog-page .blog-hero--bio .blog-hero__inner {
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    min-height: calc(100vh - var(--mcd-header-offset, 80px));
    min-height: calc(100dvh - var(--mcd-header-offset, 80px));
    text-align: left;
    place-items: flex-start start;  /* Was: center - lift text up */
    gap: 60px;
    padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 60px) clamp(40px, 6vw, 80px);
}
/* stylelint-enable declaration-block-no-duplicate-properties */

.blog-page .blog-hero--bio .blog-hero__headline {
    align-items: flex-start;
    text-align: left;
    margin-bottom: 0;
}

/* ==========================================
   BIO TYPOGRAPHY - Instrument Serif
   ========================================== */

/* Kicker - "The Journal" */

.blog-hero--bio .blog-kicker {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 20px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    margin-bottom: 16px;
}

.blog-hero--bio .blog-kicker::before {
    display: none;
}

/* Title - Large Instrument Serif */

.blog-hero--bio .blog-hero__title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    padding-bottom: 0.06em;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    text-shadow: none;
    min-height: 1.1em; /* Reserve space to prevent layout shift when JS wraps letters */
}

/* Auto-animate "neon edge" accent on load */
/* Note: Removed drop-shadow from keyframes - causes rendering artifacts on gradient text descenders like 'g' */
/* Glow effect is handled via text-shadow on parent .blog-hero__title instead */
@keyframes accent-focus {
    0% {
        filter: blur(1px);
        opacity: 0;
        transform: scale(0.98);
    }

    40% {
        filter: blur(0);
        opacity: 1;
        transform: scale(1);
    }

    100% {
        filter: blur(0);
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes accent-pulse {
    /* Pulsing glow handled by parent text-shadow; keeping keyframes for potential future use */
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

    @keyframes accent-flicker {
        0%, 100% {
            opacity: 1;
            text-shadow:
                0 0 4px rgba(0, 229, 255, 0.9),
                0 0 14px rgba(0, 229, 255, 0.55),
                0 0 34px rgba(0, 229, 255, 0.28);
        }
        6% {
            opacity: 0.88;
            text-shadow:
                0 0 2px rgba(0, 229, 255, 0.7),
                0 0 8px rgba(0, 229, 255, 0.35),
                0 0 18px rgba(0, 229, 255, 0.18);
        }
        7% { opacity: 1; }
        22% {
            opacity: 0.93;
            text-shadow:
                0 0 3px rgba(0, 229, 255, 0.8),
                0 0 11px rgba(0, 229, 255, 0.45),
                0 0 26px rgba(0, 229, 255, 0.22);
        }
        24% { opacity: 1; }
        48% {
            opacity: 0.9;
            text-shadow:
                0 0 2px rgba(0, 229, 255, 0.75),
                0 0 9px rgba(0, 229, 255, 0.4),
                0 0 22px rgba(0, 229, 255, 0.2);
        }
        50% { opacity: 1; }
        63% {
            opacity: 0.82;
            text-shadow:
                0 0 1px rgba(0, 229, 255, 0.6),
                0 0 6px rgba(0, 229, 255, 0.28),
                0 0 14px rgba(0, 229, 255, 0.12);
        }
        65% { opacity: 1; }
        86% {
            opacity: 0.95;
            text-shadow:
                0 0 3px rgba(0, 229, 255, 0.85),
                0 0 12px rgba(0, 229, 255, 0.5),
                0 0 30px rgba(0, 229, 255, 0.25);
        }
        88% { opacity: 1; }
    }

/* Accent - "neon edge" italic with glow */

.blog-hero--bio .blog-hero__accent {
    font-style: italic;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, rgba(150, 230, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* Removed drop-shadow filter - causes rendering artifacts on gradient text descenders like 'g' */
    /* Using text-shadow on parent title instead for glow effect */
    animation: accent-focus 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, accent-pulse 4s ease-in-out infinite 1.2s;
    padding-bottom: 0.15em; /* Extra space for descenders */
}

/* Bio variant wins over general archive accent styling. */
.blog-page .blog-hero--bio .blog-hero__title .blog-hero__accent {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, rgba(150, 230, 255, 0.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: accent-focus 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, accent-flicker 4.5s steps(1, end) infinite 1.2s;
    display: inline-block;
        padding-right: 0.06em; /* breathing room for right-side swashes */
        margin-right: 0;
    text-shadow:
        0 0 4px rgba(0, 229, 255, 0.9),
        0 0 14px rgba(0, 229, 255, 0.55),
        0 0 34px rgba(0, 229, 255, 0.28);
    -webkit-text-stroke: 0.2px rgba(180, 245, 255, 0.45);
}

/* Fix: Letter spans inside accent need gradient too (JS wraps each letter) */

.blog-hero--bio .blog-hero__accent .blog-hero__letter {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, rgba(150, 230, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description text */

.blog-hero--bio .blog-hero__subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary, #C5D8F2);
    line-height: 1.8;
    max-width: 520px;
    margin: 0;
}

/* ==========================================
   BIO SEARCH - Simple Pill Shape (right column)
   ========================================== */

.blog-page .blog-hero--bio .blog-hero__search {
    max-width: 100%;
    width: 100%;
    margin: 0;
}

/* Remove card styling - make it a simple container */

.blog-hero--bio .blog-search {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
}

/* Hide the header (eyebrow + hint) */

.blog-hero--bio .blog-search__header {
    display: none !important;
}

/* Pill-shaped search shell */

.blog-hero--bio .blog-search__shell {
    display: flex;
    gap: 0;
    background: rgba(5, 16, 32, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 100px;
    padding: 6px;
    box-shadow:
        0 0 0 1px rgba(0, 229, 255, 0.08) inset,
        0 20px 50px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.blog-hero--bio .blog-search__shell:focus-within {
    border-color: var(--neon-cyan);
    box-shadow:
        0 0 0 3px rgba(0, 229, 255, 0.12),
        0 0 40px rgba(0, 229, 255, 0.15),
        0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Hide search icon inside shell */

.blog-hero--bio .blog-search__icon {
    display: none;
}

/* Input styling */

.blog-hero--bio .blog-search__input {
    flex: 1;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-radius: 100px;
    color: var(--text-primary, #EAF2FF);
    font-size: 14px;
}

.blog-hero--bio .blog-search__input::placeholder {
    color: var(--text-tertiary, #7a8ba8);
}

/* Submit button - "Explore" style */

.blog-hero--bio .blog-search__submit {
    width: auto;
    height: auto;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.25) 0%, rgba(110, 42, 251, 0.25) 100%);
    border: 1px solid rgba(0, 229, 255, 0.45);
    border-radius: 100px;
    color: var(--neon-cyan);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.blog-hero--bio .blog-search__submit:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.35) 0%, rgba(110, 42, 251, 0.35) 100%);
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.4);
}

/* Hide icon in submit, show label */

.blog-hero--bio .blog-search__submit-icon {
    display: none;
}

.blog-hero--bio .blog-search__submit-label {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: nowrap;
}

/* ==========================================
   BIO TOPICS - Simple centered pills
   ========================================== */

/* Hide the "Trending topics" label */

.blog-hero--bio .blog-search__footer-label {
    display: none !important;
}

.blog-hero--bio .blog-search__footer {
    margin-top: 24px;
    padding-top: 0;
    border-top: none;
}

.blog-hero--bio .blog-search__suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.blog-hero--bio .blog-search__suggestion {
    padding: 7px 14px;
    background: transparent;
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-secondary, #C5D8F2);
    transition: all 0.25s ease;
}

.blog-hero--bio .blog-search__suggestion:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

/* Bio suggestion pills */

.blog-hero--bio .blog-search__suggestion {
    background: transparent;
    border: 1px solid rgba(0, 229, 255, 0.25);
}

.blog-hero--bio .blog-search__suggestion:hover {
    background: rgba(0, 229, 255, 0.08);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

/* Hide bio elements by default, show only on bio variant */

.blog-hero__bio-caustics,
.blog-hero__bio-particles {
    display: none;
}

.blog-hero--bio .blog-hero__bio-caustics,
.blog-hero--bio .blog-hero__bio-particles {
    display: block;
}

/* Mobile responsive - stack columns on small screens */
@media (max-width: 900px) {
    .blog-page .blog-hero--bio .blog-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 40px;
        padding: clamp(32px, 5vw, 60px) clamp(20px, 4vw, 40px);
    }

    .blog-page .blog-hero--bio .blog-hero__headline {
        align-items: center;
        text-align: center;
    }

    .blog-hero--bio .blog-hero__title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .blog-page .blog-hero--bio .blog-hero__search {
        max-width: 100%;
        width: 100%;
    }
}

/* Narrow mobile: aggressive font reduction to prevent hero title overflow */
@media (max-width: 480px) {
    .blog-hero--bio .blog-hero__title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
        line-height: 1.1;
    }
}

/* Reduced motion support for bio variant */
@media (prefers-reduced-motion: reduce) {
    .blog-hero__bio-caustics {
        animation: none;
    }

    .blog-hero__bio-particle {
        animation: none;
        opacity: 0.4;
    }

    .blog-hero--bio .blog-hero__typing-line {
        animation: none;
    }
}

/* ==========================================================================
   END BIOLUMINESCENT VARIANT
   ========================================================================== */

.blog-hero__description,
.blog-hero__description p,
.blog-hero__intro {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.1vw, 1.25rem);
    line-height: 1.7;
    margin: 0;
    max-width: 640px;
}

.blog-hero__description,
.blog-hero__intro {
    margin-left: auto;
    margin-right: auto;
}

.wp-block-search.blog-search {
    max-width: 520px;
    margin: clamp(36px, 6vw, 64px) auto 0;
}

.wp-block-search.blog-search .wp-block-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.wp-block-search.blog-search .wp-block-search__inside-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 0;
    background: transparent;
}

.wp-block-search.blog-search .wp-block-search__input {
    flex: 1;
    padding: 15px 22px;
    background: var(--surface-dark);
    border: 2px solid var(--surface-border);
    border-radius: 999px;
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-search.blog-search .wp-block-search__input:focus {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.wp-block-search.blog-search .wp-block-search__button {
    padding: 15px 30px;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    background: linear-gradient(120deg, var(--neon-cyan), var(--neon-magenta));
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-search.blog-search .wp-block-search__button:hover,
.wp-block-search.blog-search .wp-block-search__button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.35);
    color: var(--text-primary);
}

.latest-post {
    padding: clamp(48px, 8vw, 72px) 5% 0;
}

.latest-card {
    position: relative;
    background: var(--surface-dark);
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.latest-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 15px 45px rgba(0, 229, 255, 0.25);
    transform: translateY(-6px);
}

.latest-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: stretch;
}

.latest-media {
    position: relative;
    min-height: clamp(260px, 28vw, 320px);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(255, 0, 224, 0.25));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.latest-media__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.latest-media__placeholder {
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: rgba(230, 241, 255, 0.35);
}

.latest-content {
    padding: clamp(40px, 6vw, 56px);
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 20px);
    justify-content: center;
}

.latest-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.1rem);
    line-height: 1.1;
    margin: 0;
}

.latest-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-title a:hover {
    color: var(--neon-cyan);
}

.latest-excerpt {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

.latest-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.latest-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--neon-cyan), var(--neon-magenta));
    color: var(--background-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(0, 229, 255, 0.35);
}

.blog-archive__loop.container {
    padding: clamp(48px, 8vw, 80px) 5% clamp(64px, 9vw, 96px);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(32px, 4vw, 48px);
    margin: 0;
    margin-bottom: clamp(56px, 8vw, 80px);
}

.post-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    margin: clamp(24px, 6vw, 48px) auto;
    max-width: 520px;
}

.post-card {
    position: relative;
    background: linear-gradient(160deg, rgba(10, 18, 38, 0.96), rgba(6, 12, 28, 0.92));
    border: 1px solid rgba(79, 240, 255, 0.16);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 22px 60px rgba(3, 8, 22, 0.42);
}

.post-card-image {
      position: relative;
      width: 100%;
      /* Featured images are 16:9; lock the frame for a crisp list rhythm */
      min-height: clamp(180px, 22vw, 240px);
      aspect-ratio: 16 / 9;
      background: rgba(6, 12, 30, 0.88);
      border-radius: 18px;
      border: 1px solid rgba(79, 240, 255, 0.1);
  box-shadow: 0 16px 38px rgba(3, 8, 22, 0.32);
        display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.post-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(79, 240, 255, 0.12), rgba(255, 116, 228, 0.12));
  opacity: 0.28;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.post-card-image:hover::after,
.post-card-image:focus-visible::after {
  opacity: 0.55;
}

.post-card-image__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative;
    z-index: 0;
}

.post-card-image__placeholder {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: rgba(230, 241, 255, 0.35);
}

.post-card-content {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2vw, 24px);
    padding: clamp(32px, 5vw, 40px);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.post-meta .post-category {
    display: inline-flex;
}

.post-meta .post-category a {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 20px;
    color: var(--neon-cyan);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-meta .post-category a:hover,
.post-meta .post-category a:focus-visible {
    background: rgba(0, 229, 255, 0.18);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.post-meta .post-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.post-card__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.2;
    margin: 0;
}

.post-card__title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card__title a:hover {
    color: var(--neon-cyan);
}

.post-card .post-excerpt {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.65;
    flex-grow: 1;
}

.post-card-actions {
    margin-top: auto;
}

.post-card .cta-button.read-more {
    align-self: flex-start;
    margin-top: clamp(12px, 2vw, 18px);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: clamp(32px, 6vw, 48px) 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    min-width: 44px;
    border: 2px solid var(--surface-border);
    border-radius: 8px;
    background: var(--surface-dark);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a:focus-visible {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.pagination .current {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    color: var(--background-dark);
}

@media (max-width: 900px) {
    .latest-inner {
        grid-template-columns: 1fr;
    }

    .latest-media {
        min-height: clamp(220px, 40vw, 280px);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding-inline: clamp(18px, 6vw, 28px);
        padding-block: calc(var(--mcd-header-offset, var(--header-height, 0px)) + clamp(4px, 3.6vw, 24px)) clamp(22px, 8.6vw, 60px);
    }

    .blog-hero__inner {
        gap: clamp(10px, 2.8vw, 14px);
    }

    .blog-page .blog-hero__inner {
        gap: clamp(10px, 2.8vw, 14px);
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .blog-page .blog-hero__headline {
        align-items: center;
    }

    .blog-page .blog-hero__subtitle {
        margin: clamp(12px, 4vw, 20px) auto 0;
        text-align: center;
    }

    .blog-page .blog-hero__search {
        width: 100%;
        margin: clamp(6px, 4vw, 14px) 0 0;
        justify-self: stretch;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .category-tray {
        margin: clamp(18px, 6vw, 26px) auto 0;
    }

    .category-tray__scroll {
        gap: clamp(8px, 3.4vw, 14px);
        padding: clamp(10px, 4vw, 16px) clamp(14px, 5vw, 20px);
    }

    .category-tray__scroll::before,
    .category-tray__scroll::after {
        width: clamp(20px, 10vw, 32px);
    }

    .category-chip__link,
    .category-pill {
        font-size: clamp(0.78rem, 3.2vw, 0.9rem);
        letter-spacing: 0.06em;
        text-transform: none;
        padding: clamp(9px, 3.4vw, 12px) clamp(14px, 6vw, 18px);
    }

    .category-chip__count {
        min-width: 1.5em;
        height: 1.5em;
        font-size: 0.68em;
    }
}

@media (max-width: 520px) {
    .wp-block-search.blog-search .wp-block-search__inside-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .wp-block-search.blog-search .wp-block-search__button {
        width: 100%;
    }
}


/* --- Comments --- */

.comments-area {
    border-top: 1px solid var(--text-secondary);
    margin-top: 40px;
}

.comments-area .comments-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-primary);
}

.comments-area .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comments-area .comment-body {
    padding: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--text-secondary);
}

.comments-area .comment-author .fn {
    font-weight: bold;
    color: var(--text-primary);
    font-style: normal;
}

.comments-area .comment-meta {
    margin-bottom: 10px;
}

.comments-area .comment-meta a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
}

.comments-area .reply a {
    font-weight: bold;
    color: var(--neon-cyan);
    text-decoration: none;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    background: rgba(12, 16, 36, 0.92);
    border: 1px solid rgba(0, 229, 255, 0.22);
    color: var(--text-primary);
    border-radius: 14px;
    margin-bottom: 15px;
    box-shadow: 0 18px 48px rgba(0, 8, 24, 0.35);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: rgba(0, 229, 255, 0.55);
    background: rgba(18, 22, 44, 0.95);
    box-shadow:
        0 0 0 1px rgba(0, 229, 255, 0.34),
        0 20px 60px rgba(0, 229, 255, 0.28);
    outline: none;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: rgba(255, 196, 0, 0.68);
}

.comment-form .submit {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-contrast, #05060f);
    text-decoration: none;
    background: var(--gradient-cta);
    border: 0;
    border-radius: 50px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    box-shadow:
        0 18px 44px rgba(0, 229, 255, 0.28),
        0 0 36px rgba(255, 0, 224, 0.24);
}

.comment-form .submit:hover {
    transform: translateY(-1px);
    box-shadow:
        0 24px 52px rgba(0, 229, 255, 0.32),
        0 0 42px rgba(255, 0, 224, 0.3);
}

.comment-form .submit:focus-visible {
    outline: 2px solid rgba(0, 229, 255, 0.65);
    outline-offset: 3px;
}

/* --- Search Form --- */

.search-form {
    display: flex;
    gap: 10px;
}

.search-form .search-field {
    flex-grow: 1;
    padding: 10px;
    background: var(--surface-dark);
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    border-radius: 8px;
}

.search-form .search-submit {
    display: inline-block;
    padding: 10px 25px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
    border: 2px solid var(--neon-cyan);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form .search-submit:hover {
    background: var(--neon-cyan);
    color: var(--background-dark);
}

/* Search & 404 Pages -------------------------------------------------- */

.search-page,
.error-page {
    position: relative;
    isolation: isolate;
    margin: clamp(48px, 8vw, 80px) auto;
    padding: clamp(56px, 9vw, 96px) clamp(24px, 5vw, 64px);
    border-radius: clamp(28px, 6vw, 48px);
    background: linear-gradient(180deg, rgba(8, 14, 34, 0.94), rgba(4, 8, 22, 0.97));
    border: 1px solid rgba(79, 240, 255, 0.18);
    box-shadow: 0 36px 120px rgba(3, 8, 26, 0.55);
    display: flex;
    flex-direction: column;
    gap: clamp(36px, 6vw, 72px);
}

.search-page::before,
.error-page::before {
    content: '';
    position: absolute;
    inset: -32% -24% -40%;
    background:
        radial-gradient(110% 90% at 20% 0%, rgba(0, 229, 255, 0.18), transparent 70%),
        radial-gradient(110% 90% at 80% 10%, rgba(255, 0, 224, 0.16), transparent 72%);
    opacity: 0.45;
    filter: blur(48px);
    pointer-events: none;
    z-index: -1;
}

.search-page__hero,
.search-page__results,
.error-page__form,
.error-page__actions {
    width: min(100%, 720px);
    margin-inline: auto;
}

.search-page__eyebrow,
.error-page__eyebrow {
    margin: 0 0 clamp(8px, 1.2vw, 14px);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    color: rgba(255, 107, 0, 0.75);
}

.search-page__title,
.error-page__title {
    margin: 0 0 clamp(12px, 2vw, 20px);
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    letter-spacing: -0.01em;
}

.search-page__intro,
.error-page__intro {
    color: var(--text-secondary);
    margin: 0 0 clamp(20px, 3vw, 32px);
    max-width: 60ch;
}

.search-page__form,
.error-page__form {
    position: relative;
}

.search-page__form .wp-block-search,
.error-page__form .wp-block-search {
    margin: 0;
}

.search-page__form .wp-block-search__inside-wrapper,
.error-page__form .wp-block-search__inside-wrapper {
    border-radius: 999px;
    background: rgba(6, 14, 34, 0.9);
    border: 1px solid rgba(79, 240, 255, 0.22);
    padding: clamp(4px, 1vw, 6px);
    gap: clamp(8px, 1.2vw, 12px);
}

.search-page__form .wp-block-search__input,
.error-page__form .wp-block-search__input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    min-height: 52px;
    padding-inline: clamp(18px, 3vw, 24px);
    font-size: 1rem;
}

.search-page__form .wp-block-search__button,
.error-page__form .wp-block-search__button {
    border-radius: 999px;
    padding: clamp(10px, 1.8vw, 12px) clamp(18px, 3.2vw, 26px);
    font-weight: 700;
    background: var(--neon-cyan);
    color: var(--background-dark);
    border: none;
    box-shadow: 0 12px 28px rgba(0, 229, 255, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-page__form .wp-block-search__button:hover,
.search-page__form .wp-block-search__button:focus-visible,
.error-page__form .wp-block-search__button:hover,
.error-page__form .wp-block-search__button:focus-visible {
    transform: translateY(-1px);
    box-shadow:
        0 18px 36px rgba(0, 229, 255, 0.28),
        0 0 24px rgba(0, 229, 255, 0.28);
    color: var(--background-dark);
}

.search-page__form .wp-block-search__button:focus-visible,
.error-page__form .wp-block-search__button:focus-visible {
    outline: 2px solid rgba(255, 0, 224, 0.45);
    outline-offset: 3px;
}

.search-page__actions,
.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 18px);
    align-items: center;
}

.search-page__actions .wp-block-button,
.error-page__actions .wp-block-button {
    margin: 0;
}

.search-page__results {
    width: 100%;
    border-top: 1px solid rgba(79, 240, 255, 0.16);
    padding-top: clamp(32px, 4vw, 48px);
}

@media (max-width: 720px) {
    .search-page,
    .error-page {
        margin-inline: clamp(16px, 4vw, 24px);
        padding-inline: clamp(20px, 6vw, 32px);
    }

    .search-page__actions,
    .error-page__actions {
        justify-content: center;
    }
}



@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* Journal layout                                                             */
/* -------------------------------------------------------------------------- */

.blog-page {
  /* Allow global body background to show through below the hero */
  background: transparent;
  color: var(--text-primary);
  margin-top: 0;
  padding-top: 0;
}

.blog-page .blog-container {
  width: min(92%, 1200px);
  margin-inline: auto;
}

.blog-page .blog-hero {
  position: relative;
  isolation: isolate;
  margin-top: 0;
  padding-inline: clamp(16px, 5vw, 48px);
  padding-top: calc(var(--mcd-header-offset, var(--header-height)) + clamp(16px, 3vw, 32px));
  padding-bottom: clamp(40px, 5vw, 72px);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 3vw, 28px);
  /* Keep the entire hero visible below the header on desktop */
  min-height: clamp(560px, calc(100vh - var(--mcd-header-offset, 0px)), 820px);

    .blog-search__suggestion {
        padding: 4px 11px;
        font-size: 0.82rem;
    }
}

/* Bio variant: inner handles spacing; avoid double-padding from generic hero rule */
.blog-page .blog-hero.blog-hero--bio {
  padding-top: 0;
  padding-bottom: 0;
}

.blog-page .blog-hero::before {
  content: "";
  position: absolute;
  inset: clamp(-140px, -20vw, -80px) -6% auto;
  height: clamp(280px, 48vh, 560px);
  background:
    radial-gradient(38% 52% at 52% 0%, rgba(88, 242, 255, 0.26) 0%, transparent 62%),
    radial-gradient(32% 48% at 18% 12%, rgba(255, 92, 214, 0.12) 0%, transparent 60%),
    radial-gradient(28% 42% at 80% 16%, rgba(40, 148, 255, 0.1) 0%, transparent 58%);
  filter: blur(42px);
  opacity: 0.55;
  animation: flare-move 18s ease-in-out infinite alternate;
  z-index: -2;
}

.blog-page .blog-hero::after {
  content: "";
  position: absolute;
  inset: clamp(-80px, -12vw, -32px) clamp(8%, 12vw, 120px) auto;
  height: clamp(220px, 32vh, 360px);
  background: radial-gradient(60% 60% at 50% 0%, rgba(22, 38, 72, 0.66) 0%, transparent 72%);
  filter: blur(24px);
  opacity: 0.7;
  z-index: -3;
}

.blog-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-weight: 800;
  color: var(--neon-cyan);
  font-size: 0.95rem;
}

.blog-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 6.6vw, 6.4rem);
  line-height: 1.06;
  color: var(--text-primary);
  text-shadow: 0 4px 18px rgba(0, 229, 255, 0.22), 0 0 18px rgba(255, 0, 224, 0.16);
}

.blog-page .blog-hero__subtitle {
  max-width: min(48ch, 100%);
  margin: clamp(12px, 1.8vw, 20px) 0 0;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  text-align: left;
}

.blog-page .blog-hero__subtitle--after {
  margin-top: clamp(22px, 3vw, 34px);
}

.blog-page .blog-hero--no-kicker {
  --blog-hero-top-gap: clamp(24px, 6vw, 60px);
}

.blog-page .blog-hero--no-kicker .blog-hero__inner {
  gap: clamp(14px, 2vw, 24px);
}

.blog-page .blog-hero--no-kicker .blog-hero__subtitle {
  margin-top: clamp(10px, 1.6vw, 18px);
}

.blog-page .blog-hero--compact {
  --blog-hero-top-gap: clamp(18px, 4vw, 48px);
  --blog-hero-bottom-gap: clamp(32px, 6vw, 72px);
}

.blog-page .blog-hero--compact .blog-hero__inner {
  gap: clamp(18px, 3vw, 28px);
}

.blog-page .blog-hero__search {
  width: 100%;
  margin: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-search__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(8px, 1.2vw, 14px);
  margin-top: clamp(4px, 1.2vw, 12px);
  width: 100%;
}

.blog-search__footer-label {
  font-size: clamp(0.78rem, 1.2vw, 0.88rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(204, 228, 255, 0.64);
}

.blog-page .blog-hero__search:hover {
  transform: translateY(-1px);
}

.blog-page .blog-search {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vw, 18px);
  align-items: stretch;
  width: 100%;
  text-align: left;
}

.blog-search__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(4px, 1vw, 8px);
  width: 100%;
}

.blog-search__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 0.9vw, 10px);
  font-size: clamp(0.72rem, 1vw, 0.78rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(201, 229, 255, 0.68);
}

.blog-search__eyebrow::after {
  content: '';
  display: inline-block;
  height: 1px;
  width: clamp(28px, 6vw, 64px);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.82), rgba(255, 0, 224, 0.6));
  opacity: 0.75;
}

.blog-search__hint {
  margin: 0;
  color: rgba(203, 220, 248, 0.78);
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.6;
  max-width: min(46ch, 100%);
}

/* Desktop layout for blog hero - kept for layout structure */
@media (min-width: 1024px) {
  .blog-page .blog-hero {
    padding-inline: clamp(40px, 6vw, 116px);
    padding-block: calc(var(--mcd-header-offset, var(--header-height, 0px)) + clamp(26px, 4vw, 68px)) clamp(40px, 6vw, 88px);
  }

  .blog-page .blog-hero__inner {
    grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
    gap: clamp(28px, 4vw, 48px);
  }

  .blog-page .blog-hero__search {
    place-self: center stretch;
  }

  .blog-search__footer {
    justify-content: flex-start;
  }
}

@keyframes blog-hero-typing-lead-glow {
  0%,
  100% {
    text-shadow: 0 0 26px currentcolor, 0 0 68px rgba(255, 255, 255, 0.7);
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.4));
  }

  48% {
    text-shadow: 0 0 42px currentcolor, 0 0 92px rgba(255, 255, 255, 0.86);
    filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.6));
  }
}

.blog-hero__typing-char {
  display: inline-block;
  color: rgba(215, 228, 255, 0.76);
  opacity: 0;
  will-change: opacity;
  transition:
    opacity 140ms ease,
    color 0.2s ease,
    text-shadow 0.3s ease;
}

.blog-hero__typing-char.is-on {
  opacity: 1;
}

.blog-hero__typing-char.is-fading-out {
  opacity: 0;
  text-shadow: none;
}

@keyframes blog-hero-fifo-fade {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.blog-page .blog-hero__typing-line.is-erasing .blog-hero__typing-char {
  animation-name: blog-hero-fifo-fade;
  animation-duration: var(--fifo-fade-duration, 360ms);
  animation-delay: calc(var(--char-index, 0) * var(--fifo-step, 44ms));
  animation-fill-mode: forwards;
  animation-timing-function: ease;
}

.blog-page .blog-hero__typing-line.is-erasing.is-erase-stepped .blog-hero__typing-char {
  animation-timing-function: steps(3, end);
}

.blog-hero__typing-char--lead {
  color: var(--line-color, #f8fbff);
  text-shadow: 0 0 26px currentcolor, 0 0 68px rgba(255, 255, 255, 0.7);
  animation: blog-hero-typing-lead-glow 1.8s ease-in-out infinite;
  transition: color 0.2s ease, text-shadow 0.3s ease;
}

.blog-hero__typing-line.is-erasing .blog-hero__typing-char--lead {
  animation-duration: 1.6s;
}

.blog-hero__typing-line[data-motion='static'] .blog-hero__typing-char--lead,
.blog-hero__typing-line.is-fading .blog-hero__typing-char--lead {
  animation: none;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.32);
}

/* Mobile layout - bio variant handles its own search styling */
@media (max-width: 768px) {
  .blog-page .blog-hero__search {
    margin: clamp(6px, 4vw, 14px) 0 0;
  }
}

.category-tray {
  --category-tray-header-offset: 0px; /* legacy var left for styles */
  --category-tray-sticky-top: 0px;   /* drives sticky anchoring */
  position: sticky;
  /* Push exactly by visible overlays: admin bar + live header overlap */
  top: calc(
    var(--mcd-admin-bar-offset, 0px)
    + var(--mcd-header-live-offset, var(--mcd-header-offset-active, 0px))
  );
  z-index: 24;
  margin: clamp(22px, 5vw, 38px) auto 0;
  padding: 0;
  display: flex;
  justify-content: center;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* Full-bleed (viewport-wide) layout for blog index */

body.blog .category-tray,
.blog-page .category-tray {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* On the blog index, snap flush to hero without extra margin gap */
  margin-top: 0;
}

/* Seamless snap: sit flush under the hero on blog index */

body.blog .blog-hero,
.blog-page .blog-hero { --blog-hero-bottom-gap: 0px; }

body.mcd-header-hidden.blog-page .category-tray,
.category-tray:not(.is-stuck) {
  --category-tray-header-offset: 0px;
}

/* no transform-based shifting; variable sticky top replaces it */

.category-tray__inner {
  width: min(96%, 1120px);
  position: relative;
}

/* When full-bleed, let the inner stretch to the tray width */

body.blog .category-tray__inner,
.blog-page .category-tray__inner {
  width: 100%;
}

.category-tray__scroll {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  padding: clamp(12px, 1.6vw, 18px) clamp(18px, 3.4vw, 28px);
  border-radius: clamp(26px, 4.6vw, 34px);
  border: 1px solid rgba(118, 196, 255, 0.24);
  background: rgba(6, 18, 36, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 26px 54px rgba(4, 12, 32, 0.38);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Remove corner rounding when bar spans the viewport */

body.blog .category-tray__scroll,
.blog-page .category-tray__scroll {
  border-radius: 0;
  justify-content: center; /* center content horizontally */
}

/* Center the chips row inside the scroll container */

body.blog .category-tray__list,
.blog-page .category-tray__list {
  justify-content: center;
}

/* Glassmorphism for featured hero on blog page */

.blog-page .blog-featured .featured-card {
  background: rgba(6, 18, 36, 0.36);
  border: 1px solid rgba(118, 196, 255, 0.20);
  backdrop-filter: blur(14px) saturate(140%);
  /* stylelint-disable-next-line property-no-vendor-prefix -- Safari requires prefixed backdrop-filter */
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 22px 48px rgba(4, 12, 32, 0.30);
}

/* Ensure inner content of featured card stays readable on glass */

.blog-page .featured-title a,
.blog-page .featured-content .meta,
.blog-page .featured-content .excerpt,
.blog-page .featured-content .cta {
  color: var(--text-primary);
}

.category-tray__scroll::-webkit-scrollbar {
  display: none;
}

.category-tray__scroll::before,
.category-tray__scroll::after {
  content: '';
  position: absolute;
  top: clamp(6px, 0.9vw, 10px);
  bottom: clamp(6px, 0.9vw, 10px);
  width: clamp(28px, 5vw, 48px);
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

.category-tray__scroll::before {
  left: clamp(4px, 1vw, 12px);
  background: linear-gradient(90deg, rgba(6, 18, 36, 0.82), rgba(6, 18, 36, 0));
}

.category-tray__scroll::after {
  right: clamp(4px, 1vw, 12px);
  background: linear-gradient(270deg, rgba(6, 18, 36, 0.82), rgba(6, 18, 36, 0));
}

.category-tray.is-stuck .category-tray__scroll {
  border-color: rgba(118, 196, 255, 0.34);
  background: rgba(6, 18, 36, 0.78);
  box-shadow: 0 30px 60px rgba(4, 12, 32, 0.45);
}

.category-tray.is-stuck .category-tray__scroll::before,
.category-tray.is-stuck .category-tray__scroll::after {
  opacity: 1;
}

.category-tray__list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  padding: 0;
  margin: 0;
  list-style: none;
  scroll-snap-type: x proximity;
}

.category-chip {
  flex: 0 0 auto;
}

.category-chip__label {
  position: relative;
  z-index: 1;
}

.category-chip__link,
.category-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 1vw, 10px);
  padding: clamp(10px, 1.2vw, 12px) clamp(16px, 2.4vw, 22px);
  border-radius: 999px;
  border: 1px solid rgba(120, 190, 255, 0.24);
  background: rgba(8, 18, 34, 0.55);
  color: rgba(210, 227, 255, 0.86);
  font-size: clamp(0.82rem, 1.08vw, 0.94rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  scroll-snap-align: center;
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.category-chip__link:hover,
.category-chip__link:focus-visible,
.category-pill:hover,
.category-pill:focus-visible {
  color: var(--text-primary);
  border-color: rgba(0, 229, 255, 0.5);
  background: rgba(10, 26, 52, 0.75);
  box-shadow: 0 14px 30px rgba(0, 229, 255, 0.18), 0 18px 38px rgba(4, 12, 32, 0.38);
  transform: translateY(-1.5px);
}

.category-chip__link.is-active,
.category-pill.is-active {
  /* Outline-only: transparent fill. Fallback: solid neon border. */
  color: var(--text-primary);
  background: transparent !important;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 16px 34px rgba(4, 12, 32, 0.42);
  transform: translateY(-2.5px);
}

/* Keep outline-only style on hover/focus for active pills (override generic hover fill) */

.category-chip__link.is-active:hover,
.category-chip__link.is-active:focus-visible,
.category-pill.is-active:hover,
.category-pill.is-active:focus-visible {
  background: transparent !important;
  border-color: var(--neon-cyan);
  box-shadow: 0 18px 40px rgba(4, 12, 32, 0.46);
  transform: translateY(-2.5px);
}

/* Preferred gradient ring using pseudo-element + mask (rounded and transparent center) */
@supports ((-webkit-mask: linear-gradient(#000 0 0)) or (mask: linear-gradient(#000 0 0))) {
  .category-pill.is-active,
  .category-chip__link.is-active {
    position: relative;
    border-color: transparent; /* ring will provide the visible border */
  }

  .category-pill.is-active::before,
  .category-chip__link.is-active::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px; /* ring thickness */
    background: linear-gradient(132deg, var(--neon-cyan), var(--neon-magenta), var(--neon-amber));
  /* stylelint-disable-next-line property-no-vendor-prefix -- Safari requires prefixed mask gradient */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    /* stylelint-disable-next-line property-no-vendor-prefix -- Safari requires prefixed mask composite */
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
  }
}

.category-chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75em;
  height: 1.75em;
  padding: 0 0.6em;
  border-radius: 999px;
  background: rgba(12, 26, 46, 0.72);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(190, 214, 255, 0.75);
  transition: color 0.25s ease, background 0.25s ease;
}

.category-chip__link:hover .category-chip__count,
.category-chip__link:focus-visible .category-chip__count,
.category-pill:hover .category-chip__count,
.category-pill:focus-visible .category-chip__count {
  color: rgba(0, 229, 255, 0.86);
}

.category-chip__link.is-active .category-chip__count,
.category-pill.is-active .category-chip__count {
  background: transparent;
  color: var(--neon-cyan);
}

.category-chip__link:focus-visible,
.category-pill:focus-visible {
  outline: 2px solid rgba(182, 125, 255, 0.6);
  outline-offset: 3px;
}

.category-chip__link.is-active:focus-visible,
.category-pill.is-active:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

.blog-featured {
  padding: clamp(52px, 8vw, 80px) 0 clamp(36px, 6vw, 64px);
}

.featured-card {
  /* Use a variable so we can compute media offset and keep a consistent
     visible gap that matches grid cards. */
  --featured-pad: clamp(28px, 5vw, 40px);
  /* Desired image-to-card edge gap to match grid cards */
  --card-image-gap: 30px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  background: linear-gradient(135deg, rgba(20, 22, 28, 0.96), rgba(12, 14, 24, 0.9));
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: var(--featured-pad);
  box-shadow: 0 30px 80px rgba(4, 8, 20, 0.55);
  backdrop-filter: blur(18px);
}

/* On the blog index, anchor featured children to the top so media spacing
   matches grid cards (no extra vertical centering gap). */
.blog-featured .featured-card { align-items: flex-start; }

.featured-card > * {
  position: relative;
  z-index: 1;
}

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 22% 18%, rgba(0, 229, 255, 0.18), transparent 60%),
    radial-gradient(circle at 78% 82%, rgba(255, 0, 224, 0.14), transparent 55%);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.featured-card:hover .featured-media__image {
  transform: rotateX(0.7deg) rotateY(-0.7deg) translateY(-2px);
}

.featured-media {
  flex: 1 1 520px;
  min-width: 280px;
  perspective: 1000px;
}

.featured-media__link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: inset 0 0 0 1px rgba(149, 158, 190, 0.12);
}

/* Fix: prevent distortion on featured image (e.g., Catnap Sprints)
   Ensure the media box maintains a 16:9 frame and the image covers without stretching. */

.blog-featured .featured-card .featured-media__link {
  aspect-ratio: 16 / 9;
  /* Pull the media box outward just enough so the visible gap equals
     --card-image-gap on all sides (do not remove all side padding). */
  margin-inline: calc(-1 * (var(--featured-pad) - var(--card-image-gap)));
  margin-top: calc(-1 * (var(--featured-pad) - var(--card-image-gap)));
}

.blog-featured .featured-card .featured-media__image {
  height: 100%;
  object-fit: cover;
}

.featured-media__image {
  width: 100%;
  display: block;
  border-radius: 18px;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.featured-media__placeholder {
  display: grid;
  place-items: center;
  min-height: clamp(260px, 32vw, 380px);
  border-radius: 18px;
  background: rgba(20, 24, 32, 0.8);
  border: 1px dashed var(--surface-border);
  color: var(--text-secondary);
  font-weight: 600;
}

.featured-content {
  flex: 1 1 420px;
  min-width: 260px;
  display: grid;
  gap: clamp(12px, 1.5vw, 18px);
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--neon-magenta);
  color: #000;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(255, 0, 224, 0.3);
  width: fit-content;
}

.featured-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: 0.01em;
}

.featured-title a {
  color: inherit;
  text-decoration: none;
}

.featured-title a:hover,
.featured-title a:focus-visible {
  color: var(--neon-cyan);
}

.blog-featured .meta,
.blog-grid .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-secondary);
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
}

.blog-featured .meta {
  font-size: 0.9rem;
}

.blog-grid .meta {
  font-size: 0.82rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(6, 14, 34, 0.78);
  border: 1px solid rgba(79, 240, 255, 0.14);
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.meta-chip__value,
.meta-chip__link {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.meta-chip__link:hover,
.meta-chip__link:focus-visible {
  color: var(--neon-cyan);
}

.meta-chip--category {
  background: rgba(4, 12, 28, 0.9);
  border-color: rgba(0, 229, 255, 0.24);
}

.meta-chip--category .meta-chip__link {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.excerpt {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--neon-cyan);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.cta .arrow {
  transition: transform 0.2s ease;
}

.cta:hover .arrow,
.cta:focus-visible .arrow {
  transform: translateX(4px);
}

.blog-grid {
  padding: clamp(32px, 6vw, 64px) 0 clamp(72px, 9vw, 110px);
}

.cards {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Blog index: list view (one post per row) */

body.blog .cards,
.blog-page .cards {
  grid-template-columns: 1fr;
}

    @media (min-width: 760px) {
      body.blog .cards .card,
      .blog-page .cards .card {
        display: grid;
        grid-template-columns: minmax(220px, 28vw) 1fr;
        gap: clamp(16px, 2.6vw, 28px);
        align-items: stretch;
      }

      /* Wide desktop: give post cards a stronger media/content ratio */
      body.blog .cards .post-card,
      .blog-page .cards .post-card {
        grid-template-columns: clamp(300px, 32vw, 520px) 1fr;
      }

  body.blog .cards .card .card__media,
  .blog-page .cards .card .card__media {
    align-self: stretch;
    height: 100%;
  }

  /* Post cards: allow media box to shrink to image height */
  body.blog .cards .post-card .post-card-image,
  .blog-page .cards .post-card .post-card-image {
    /* Center vertically within the left column when copy is taller */
    align-self: center;
    height: auto;
  }

  body.blog .cards .card .card__image,
  .blog-page .cards .card .card__image {
    height: 100%;
    object-fit: cover;
  }

      /* Blog post cards should show full featured image (no crop) */       
      body.blog .cards .post-card .post-card-image__media,
      .blog-page .cards .post-card .post-card-image__media {
        object-fit: cover;
        object-position: center;
        height: 100%;
      }
    }

    /* Split-hero post cards (premium wide desktop) */
    @media (min-width: 900px) {
      body.blog .cards .post-card,
      .blog-page .cards .post-card {
        padding: 0;
        gap: 0;
        grid-template-columns: clamp(340px, 40vw, 680px) minmax(0, 1fr);
        align-items: stretch;
      }

      body.blog .cards .post-card .post-card-image,
      .blog-page .cards .post-card .post-card-image {
        align-self: stretch;
        height: 100%;
        min-height: 100%;
        border-radius: 16px 0 0 16px;
        border: 0;
        box-shadow: none;
        aspect-ratio: auto;
      }

      body.blog .cards .post-card .post-card-content,
      .blog-page .cards .post-card .post-card-content {
        position: relative;
        padding: clamp(28px, 3vw, 40px);
      }

      body.blog .cards .post-card .post-card-content::before,
      .blog-page .cards .post-card .post-card-content::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient(
          180deg,
          transparent,
          rgba(0, 229, 255, 0.34),
          transparent
        );
        box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
        opacity: 0.9;
        pointer-events: none;
      }
    }

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(10, 18, 38, 0.70), rgba(6, 12, 28, 0.62)) padding-box,
    linear-gradient(135deg, rgba(79, 240, 255, 0.24), rgba(255, 0, 224, 0.18)) border-box;
  border: 1px solid rgba(79, 240, 255, 0.18);
  border-radius: 16px;
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 20px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 100%;
  box-shadow: 0 18px 48px rgba(3, 8, 22, 0.28);
  backdrop-filter: blur(8px) saturate(120%);
  /* stylelint-disable-next-line property-no-vendor-prefix -- Safari requires prefixed backdrop-filter */
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 20%, rgba(79, 240, 255, 0.16), transparent 62%),
    radial-gradient(circle at 82% 78%, rgba(255, 116, 228, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.card:hover::after,
.card:focus-within::after {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 64px rgba(3, 8, 22, 0.42);
}

.card__media {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: linear-gradient(135deg, rgba(79, 240, 255, 0.22), rgba(255, 116, 228, 0.22));
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 14px 42px rgba(3, 8, 22, 0.45);
}

/* Global background moved to .site-backdrop in style.css for reliable backdrop-filter sampling. */
/* Airy Hero Search Variant - adds lighter, roomier styling while staying polished. */

.blog-page .blog-hero--airy .blog-hero__title {
  transform: translateY(-25px);
}

.blog-page .blog-hero--airy .blog-search__header {
  gap: clamp(6px, 1.2vw, 10px);
}

.blog-page .blog-hero--airy .blog-search__hint {
  color: rgba(218, 235, 255, 0.84);
}

.blog-page .blog-hero--airy .blog-search__shell {
  --blog-search-shell-radius: clamp(26px, 5vw, 36px);
  --blog-search-shell-overlay-inset: clamp(10px, 1.6vw, 14px);
  padding: clamp(14px, 2.4vw, 22px) clamp(22px, 3.2vw, 30px);
  border: 1px solid rgba(150, 210, 255, 0.28);
  background: rgba(10, 22, 42, 0.62);
  box-shadow: 0 18px 60px rgba(4, 12, 32, 0.36);
  transform: translateY(0);
}

.blog-page .blog-hero--airy .blog-search__shell::before {
  background: linear-gradient(135deg,
      rgba(0, 229, 255, 0.55),
      rgba(164, 124, 255, 0.38),
      rgba(255, 197, 138, 0.28));
  opacity: 0.55;
  animation: blog-hero-airy-pan 22s linear infinite;
}

.blog-page .blog-hero--airy .blog-search__shell::after {
  background: linear-gradient(150deg, rgba(8, 18, 40, 0.9), rgba(10, 26, 54, 0.84));
  box-shadow: 0 24px 74px rgba(3, 10, 30, 0.5);
}

@keyframes blog-hero-airy-pan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.blog-page .blog-hero--airy .blog-search__icon {
  display: none; /* remove left icon to avoid duplication with submit icon */
}

.blog-page .blog-hero--airy .blog-search__input {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  padding: clamp(12px, 1.6vw, 16px) clamp(18px, 2.6vw, 26px);
  background-color: transparent; /* let shell provide the glass */
  border: 0;
  box-shadow: none;
  border-radius: 0;
  /* stylelint-disable-next-line property-no-vendor-prefix -- Safari needs prefixed appearance reset */
  -webkit-appearance: none;
  appearance: none;
  color: rgba(234, 245, 255, 0.98);
}

.blog-page .blog-hero--airy .blog-search__input::placeholder {
  color: rgba(214, 234, 255, 0.7);
}

.blog-page .blog-hero--airy .blog-search__input:focus {
  outline: none;
  border: 0;
  box-shadow: none;
  background-color: transparent;
}

/* Hide browser-native search decorations to prevent extra icons (Safari/WebKit) */

.blog-page .blog-hero--airy .blog-search__input::-webkit-search-decoration,
.blog-page .blog-hero--airy .blog-search__input::-webkit-search-cancel-button,
.blog-page .blog-hero--airy .blog-search__input::-webkit-search-results-button,
.blog-page .blog-hero--airy .blog-search__input::-webkit-search-results-decoration {
  display: none;
}

.blog-page .blog-hero--airy .blog-search__shell:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 80px rgba(4, 12, 32, 0.5);
}

.blog-page .blog-hero--airy .blog-search__shell:focus-within {
  transform: translateY(-3px) scale(1.01);
}

.blog-page .blog-hero--airy .blog-search__submit {
  width: clamp(46px, 2.8vw, 56px);
  height: clamp(46px, 2.8vw, 56px);
  border: 1px solid rgba(150, 210, 255, 0.38);
  background: linear-gradient(140deg, rgba(209, 243, 255, 0.95), rgba(208, 196, 255, 0.95));
  color: #05122a;
  box-shadow: 0 14px 34px rgba(150, 210, 255, 0.22);
}

.blog-page .blog-hero--airy .blog-search__submit:hover,
.blog-page .blog-hero--airy .blog-search__submit:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 46px rgba(150, 210, 255, 0.3);
  border-color: rgba(150, 210, 255, 0.56);
}

.blog-page .blog-hero--airy .blog-search__suggestions {
  gap: clamp(8px, 1vw, 12px);
  color: rgba(210, 230, 252, 0.72);
}

.blog-page .blog-hero--airy .blog-search__suggestion {
  background: rgba(12, 22, 40, 0.5);
  border-color: rgba(150, 210, 255, 0.35);
  color: rgba(230, 244, 255, 0.92);
}

@media (prefers-reduced-motion: reduce) {
  .blog-page .blog-hero--airy .blog-search__shell::before {
    animation: none;
  }
}
