/* ============================================
   CHEESE TURBULENCE — Ghost Theme Stylesheet
   Where Tech Meets Tasteful Nonsense
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #000000;
    --color-bg-card: #0A0A0A;
    --color-bg-elevated: #111111;
    --color-text: #FFFFFF;
    --color-text-muted: #999999;
    --color-accent: #FBD41D;
    --color-border: #222222;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Jost', 'Futura', 'Century Gothic', -apple-system, sans-serif;
    --header-height: 80px;
    --container-width: 1280px;
    --container-padding: 24px;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .articles-hero-title,
.page-header h1, .tag-header h1, .author-info h1,
.post-page .post-title, .error-code, .related-posts-title,
.video-showcase-title {
    font-family: var(--font-heading);
}

::selection {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* --- Noise Overlay --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- Layout --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

#smooth-wrapper {
    overflow: clip;
}

#smooth-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

#smooth-content #main-content {
    flex: 1;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: -1;
}

.site-header.compact {
    height: 56px;
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.logo-text em {
    font-style: italic;
    font-weight: 900;
}

.site-nav {
    overflow: hidden;
    padding: 12px 6px;
    margin: -12px -6px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- Nav Links: Organic blob on hover --- */
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding: 8px 16px;
    overflow: visible;
    z-index: 1;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

/* Blob background — scales up on hover, morphs while visible */
.nav-link:not(.nav-highlight)::after {
    content: '';
    position: absolute;
    inset: -8px -2px;
    background: var(--color-accent);
    z-index: -1;
    scale: 0;
    transition: scale 0.25s ease-in;
    animation: blobMorph 5s ease-in-out infinite;
}

.nav-link:not(.nav-highlight):hover::after {
    scale: 1;
    transition: scale 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes blobMorph {
    0%, 100% {
        border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
        translate: 0px 0px;
        rotate: 0deg;
    }
    12% {
        border-radius: 60% 35% 50% 55% / 45% 65% 40% 55%;
        translate: -2px -3px;
        rotate: -2deg;
    }
    25% {
        border-radius: 45% 55% 65% 35% / 35% 55% 50% 60%;
        translate: 3px 1px;
        rotate: 1deg;
    }
    37% {
        border-radius: 55% 40% 35% 65% / 60% 45% 55% 35%;
        translate: -1px 3px;
        rotate: -1deg;
    }
    50% {
        border-radius: 35% 65% 45% 55% / 55% 35% 65% 45%;
        translate: 2px -2px;
        rotate: 2deg;
    }
    62% {
        border-radius: 65% 40% 55% 40% / 40% 60% 35% 65%;
        translate: -3px 0px;
        rotate: -2deg;
    }
    75% {
        border-radius: 45% 55% 40% 60% / 65% 40% 55% 40%;
        translate: 1px 2px;
        rotate: 1deg;
    }
    87% {
        border-radius: 55% 45% 60% 35% / 40% 55% 45% 60%;
        translate: -1px -1px;
        rotate: -1deg;
    }
}

.nav-slide {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.nav-label {
    display: inline-block;
    white-space: nowrap;
}

.site-header.compact .nav-label {
    display: none;
}

.nav-icon {
    display: none;
    align-items: center;
    justify-content: center;
}

.site-header.compact .nav-icon {
    display: inline-flex;
}

.site-logo img,
.site-logo .logo-text {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.compact .site-logo img,
.site-header.compact .site-logo .logo-text {
    transform: scale(0.8);
}

.nav-icon svg,
.nav-icon i {
    flex-shrink: 0;
}

.nav-icon i {
    font-size: 18px;
    line-height: 1;
}

/* Hover color: black text on yellow liquid */
.nav-link:not(.nav-highlight):hover {
    color: var(--color-bg);
}

/* Support button — yellow blob bg, heart flip on hover */
.nav-link.nav-highlight {
    background: transparent;
    color: var(--color-bg);
    border: none;
    perspective: 200px;
    overflow: visible;
}

.nav-link.nav-highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent);
    z-index: -1;
    border-radius: 24px;
    transition: inset 0.3s ease;
}

.nav-link.nav-highlight:hover::after {
    inset: -8px -2px;
    animation: blobMorph 5s ease-in-out infinite;
}

.nav-link.nav-highlight:hover {
    color: var(--color-bg);
}

.nav-highlight .nav-label,
.nav-highlight .nav-heart {
    backface-visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.nav-highlight .nav-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(180deg);
    display: flex;
    align-items: center;
    opacity: 0;
}

.nav-link.nav-highlight:hover .nav-label {
    transform: rotateX(-180deg);
    opacity: 0;
}

.nav-link.nav-highlight:hover .nav-heart {
    transform: translate(-50%, -50%) rotateX(0deg);
    opacity: 1;
}

.site-header.compact .nav-highlight .nav-heart {
    display: none;
}

.site-header.compact .nav-link.nav-highlight {
    color: var(--color-bg);
}

/* --- Menu Toggle (Mobile) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 1001;
}

.menu-line {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active .menu-line:first-child {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active .menu-line:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    display: block;
    overflow: hidden;
}

.mobile-nav-link .mobile-link-text {
    display: block;
    transition: color 0.3s ease;
}

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

.mobile-nav-highlight .mobile-link-text {
    color: var(--color-accent);
}

/* --- Hero Section --- */
.hero {
    height: clamp(600px, 100dvh, 1000px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px var(--container-padding) 140px;
    position: relative;
    overflow: hidden;
    background: var(--color-accent);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* No CSS blur — anti-aliasing is built into the metaball field computation */
}

.hero-text-wrapper {
    position: relative;
    width: 100%;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 10rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    position: relative;
    color: var(--color-accent);
    mix-blend-mode: difference;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line-inner {
    display: block;
    transform: translateY(110%);
}

.hero-title .accent {
    visibility: hidden;
    font-style: italic;
    padding: 0 0.12em;
    display: inline;
}

.hero-title .accent-word {
    display: inline;
}

/* Accent overlay — sits outside blend mode context, always white */
.accent-float {
    position: absolute;
    pointer-events: none;
    background: transparent;
    padding: 0;
    overflow: visible;
    opacity: 0;
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    perspective: 600px;
}

.accent-float-word {
    display: inline-block;
    color: #FFFFFF;
    transform: skewX(-8deg);
    white-space: nowrap;
}

.accent-float-word .flip-char {
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-accent);
    mix-blend-mode: difference;
    margin-top: 32px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    position: relative;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #000;
    border: 1px solid rgba(251, 212, 29, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
    color: var(--color-accent);
}

.hero-btn:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-bg);
}

.hero-btn svg {
    width: 18px;
    height: 18px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    -webkit-transform: translateX(-50%) translateZ(0);
    transform: translateX(-50%) translateZ(0);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    mix-blend-mode: difference;
}

.hero-scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(251, 212, 29, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    50% { top: 0; }
    100% { top: 100%; }
}

/* --- Section Styles --- */
.section {
    padding: 120px var(--container-padding);
}

.section-inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-header {
    margin-bottom: 64px;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* --- Latest Video Section — Cinematic Showcase --- */
.latest-video-section {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.latest-video-section,
.latest-video-section *,
.video-showcase,
.video-showcase * {
    cursor: pointer !important;
}

.video-showcase {
    position: relative;
    width: 100%;
    height: clamp(400px, 70vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-showcase-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease-out, filter 0.6s ease;
    cursor: pointer;
}

.video-showcase:hover .video-showcase-bg {
    transform: scale(1.04);
    filter: blur(8px);
}

.video-showcase-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    cursor: pointer;
}

/* Watch button — solid yellow pill, centered */
.video-watch-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-accent);
    color: var(--color-bg);
    border: 1px solid rgba(251, 212, 29, 0.2);
    border-radius: 50px;
    padding: 18px 40px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.video-showcase:hover .video-watch-btn {
    background: var(--color-bg);
    border-color: var(--color-bg);
    color: var(--color-text);
}

.video-showcase:hover .video-watch-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-bg);
}

/* Yellow hover reveal overlay — expands from button center */
.video-hover-reveal {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 4;
    pointer-events: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.video-reveal-title {
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 0.72;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    width: calc(100% + 0.15em);
    height: calc(100% + 0.2em);
    text-align: left;
    overflow: hidden;
    display: block;
    padding: 0;
    margin: -0.08em 0 0 -0.04em;
}

.video-reveal-title .word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: 0.14em 0;
    margin: -0.14em 0;
}

.video-reveal-title .word-inner {
    display: inline-block;
    transform: translateY(140%);
}


/* --- Featured Posts Grid --- */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --- Post Card --- */
.post-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    background: var(--color-accent);
}

.post-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.post-card-read-now {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 50px;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    pointer-events: none;
}

.post-card:hover .post-card-read-now {
    opacity: 1;
    pointer-events: auto;
}

.post-card:hover .post-card-read-now:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background: var(--color-text);
    color: var(--color-bg);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.post-card:hover .post-card-image img {
    filter: blur(8px);
    transform: scale(1.1);
}

.post-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
    transition: color 0.4s ease;
}

.post-card:hover .post-card-tag {
    color: var(--color-bg);
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    transition: color 0.4s ease;
}

.post-card:hover .post-card-title {
    color: var(--color-bg);
}

.post-card-excerpt {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    transition: color 0.4s ease;
}

.post-card:hover .post-card-excerpt {
    color: var(--color-bg);
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.4s ease;
    margin-top: auto;
}

.post-card:hover .post-card-meta {
    color: var(--color-bg);
}

/* --- Newsletter Section --- */
.newsletter-section {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    position: relative;
    overflow: hidden;
    perspective: 800px;
    transition: border-color 0.5s ease;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 212, 29, 0.12), transparent 70%);
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.newsletter-section:hover::after {
    opacity: 1;
}

.newsletter-section:hover {
    border-color: rgba(251, 212, 29, 0.2);
}

.newsletter-inner {
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
}

.newsletter-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: 16px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 14px 20px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--color-accent);
}

.newsletter-input::placeholder {
    color: var(--color-text-muted);
}

/* Subscribe button — matches CTA button fill animation */
.newsletter-submit {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 28px;
    background: var(--color-accent);
    color: var(--color-bg);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.35s ease;
}

.newsletter-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: var(--color-text);
    transform: scale(0);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    z-index: -1;
}

.newsletter-submit:hover {
    color: var(--color-bg);
}

.newsletter-submit:hover::before {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0s, visibility 0s;
}

.newsletter-message {
    display: none;
    margin-top: 4px;
    font-size: 0.875rem;
    padding: 12px 20px;
    border-radius: 8px;
    flex: 0 0 100%;
    text-align: center;
}

.newsletter-success {
    color: var(--color-accent);
    background: rgba(251, 212, 29, 0.1);
    border: 1px solid var(--color-accent);
}

.newsletter-error {
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid #ff3b30;
}

/* Ghost Portal toggles `loading` / `success` / `error` classes on the form
   element after submission. Portal also writes the API error text directly
   into the [data-members-error] element via innerText. */
.newsletter-form.success .newsletter-success {
    display: block;
}

.newsletter-form.error .newsletter-error {
    display: block;
}

.newsletter-form.loading .newsletter-submit {
    opacity: 0.6;
    pointer-events: none;
}

/* --- CTA Section --- */
.cta-section {
    text-align: center;
}

.cta-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: var(--color-accent);
    transform: scale(0);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    z-index: -1;
}

.cta-button:hover {
    color: var(--color-bg);
    border-color: var(--color-accent);
}

.cta-button:hover::before {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0s, visibility 0s;
}

.cta-button.primary {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

.cta-button.primary::before {
    background: var(--color-text);
}

.cta-button.primary:hover {
    color: var(--color-bg);
}

/* --- Articles Page --- */
.page-articles .articles-page {
    padding-top: 0;
}

.page-articles.page-template {
    padding-top: 0;
}

/* Articles Hero */
.articles-hero {
    position: relative;
    height: clamp(400px, 60vh, 600px);
    overflow: hidden;
}

.articles-hero-link {
    display: block;
    position: relative;
    height: 100%;
}

.articles-hero-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.articles-hero-link:hover::before {
    filter: blur(8px);
}

.articles-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.25) 40%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 1;
}

.articles-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px var(--container-padding) 48px;
    max-width: var(--container-width);
    margin: 0 auto;
    z-index: 2;
}

.articles-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.articles-hero-date,
.articles-hero-reading-time {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.articles-hero-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-accent);
}

.articles-hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-text);
    max-width: 70%;
}

/* Articles Hero: Read Now button — constrained to container width */
.articles-hero-readnow {
    position: absolute;
    bottom: 48px;
    right: max(var(--container-padding), calc((100% - var(--container-width)) / 2 + var(--container-padding)));
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 50px;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    pointer-events: none;
}

.articles-hero-link:hover .articles-hero-readnow {
    opacity: 1;
    pointer-events: auto;
}

.articles-hero-readnow:hover {
    transform: scale(1.05);
    background: var(--color-text);
    color: var(--color-bg);
}

/* Articles Layout: Sidebar + List */
.articles-layout {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 60px var(--container-padding) 80px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
}

/* Sidebar — sticky card container */
.articles-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--header-height) - 48px);
    overflow-y: auto;
}

.articles-sidebar-inner {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
}

.articles-sidebar-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.articles-sidebar-label:not(:first-child) {
    margin-top: 20px;
}

/* Sidebar filter lists */
.articles-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid var(--color-border);
}

.articles-filter-item {
    padding: 0;
}

.articles-filter-item.sidebar-hidden {
    display: none;
}

.articles-filter-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0 6px 14px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
}

.articles-filter-label:hover {
    color: var(--color-text);
}

/* Custom checkbox */
.articles-filter-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.articles-filter-indicator {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border: 1.5px solid var(--color-border);
    border-radius: 3px;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.articles-filter-checkbox:checked + .articles-filter-indicator {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.articles-filter-checkbox:checked + .articles-filter-indicator::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    height: 7px;
    border: solid var(--color-bg);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.articles-filter-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.articles-filter-count {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    opacity: 0.5;
    margin-left: auto;
    flex-shrink: 0;
}

/* Tag search autocomplete */
.articles-tag-search {
    position: relative;
    margin-top: 12px;
}

.articles-tag-input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    padding: 8px 12px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.3s ease;
}

.articles-tag-input:focus {
    border-color: var(--color-accent);
}

.articles-tag-input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.articles-tag-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    list-style: none;
    padding: 4px 0;
    margin: 0;
    display: none;
    z-index: 10;
    max-height: 180px;
    overflow-y: auto;
}

.articles-tag-suggestions.open {
    display: block;
}

.articles-tag-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.articles-tag-suggestion:hover {
    background: rgba(251, 212, 29, 0.1);
    color: var(--color-text);
}

.articles-tag-suggestion-count {
    font-size: 0.7rem;
    opacity: 0.5;
}

/* "New" badge on latest article */
.post-card-new {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: 8px;
    vertical-align: middle;
    transition: background 0.4s ease, color 0.4s ease;
}

.post-card:hover .post-card-new {
    background: var(--color-bg);
    color: var(--color-accent);
}

/* Article Grid */
.articles-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --- Pagination --- */
.pagination {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 80px var(--container-padding);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 24px;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.pagination .page-number {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* --- Single Post --- */
.post-page {
    padding-top: calc(var(--header-height) + 60px);
}

.post-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding) 48px;
    text-align: center;
}

.post-tag-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-bg);
    background: var(--color-accent);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.post-page .post-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.post-meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-text-muted);
}

.post-feature-image {
    max-width: 1000px;
    margin: 0 auto 48px;
    padding: 0 var(--container-padding);
}

.post-feature-image img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

/* --- Post Content --- */
.post-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 48px 0 16px;
    letter-spacing: -0.02em;
}

.post-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 40px 0 12px;
    letter-spacing: -0.01em;
}

.post-content p { margin-bottom: 24px; }

.post-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.3s ease;
}

.post-content a:hover { opacity: 0.8; }

.post-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--color-text-muted);
}

.post-content ul, .post-content ol { margin: 24px 0; padding-left: 24px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; }

.post-content pre {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
    overflow-x: auto;
    margin: 32px 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.post-content code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.875em; }
.post-content p code { background: var(--color-bg-elevated); padding: 2px 8px; border-radius: 4px; border: 1px solid var(--color-border); }
.post-content img { border-radius: 8px; margin: 32px 0; }
.post-content figure { margin: 32px 0; }
.post-content figcaption { text-align: center; font-size: 0.8125rem; color: var(--color-text-muted); margin-top: 12px; }
.post-content hr { border: none; border-top: 1px solid var(--color-border); margin: 48px 0; }

/* Ghost card overrides */
.post-content .kg-card { margin: 32px 0; }
.post-content .kg-image-card img, .post-content .kg-gallery-image img { border-radius: 8px; }
.post-content .kg-width-wide { max-width: 1000px; margin-left: calc(50% - 500px); margin-right: calc(50% - 500px); }
.post-content .kg-width-full { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.post-content .kg-bookmark-card { border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; }
.post-content .kg-bookmark-container { display: flex; text-decoration: none; color: inherit; }
.post-content .kg-bookmark-content { flex: 1; padding: 20px; }
.post-content .kg-bookmark-title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.post-content .kg-bookmark-description { font-size: 0.875rem; color: var(--color-text-muted); max-height: 3em; overflow: hidden; }
.post-content .kg-bookmark-thumbnail { width: 200px; flex-shrink: 0; }
.post-content .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; margin: 0; }

/* --- Post Body & Table of Contents --- */
.post-body {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.post-body .post-content {
    max-width: none;
    margin: 0;
    padding: 0;
}

.post-toc {
    position: absolute;
    right: calc(100% + 32px);
    top: 0;
    bottom: 0;
    width: 200px;
    display: none;
}

.post-toc.visible {
    display: block;
}

.post-toc-inner {
    position: sticky;
    top: 100px;
}

.post-toc-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.post-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid var(--color-border);
}

.post-toc-link {
    display: block;
    padding: 6px 0 6px 16px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    transition: color 0.3s ease, border-color 0.3s ease;
    border-left: 2px solid transparent;
    margin-left: -1px;
    line-height: 1.4;
}

.post-toc-link:hover {
    color: var(--color-text);
}

.post-toc-link.active {
    color: var(--color-accent);
    border-left-color: var(--color-accent);
}

.post-toc-link.toc-h3 {
    padding-left: 28px;
    font-size: 0.75rem;
}

/* --- Reading Progress Bar --- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-accent);
    z-index: 1001;
    pointer-events: none;
}

/* --- Related Posts --- */
.related-posts {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 80px var(--container-padding);
    border-top: 1px solid var(--color-border);
}

.related-posts-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -0.02em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --- Page Template --- */
#main-content > .page-template {
    padding-top: calc(var(--header-height) + 60px);
}

.page-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding) 48px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--container-padding) 80px;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.page-content h2 { font-size: 1.75rem; font-weight: 700; margin: 48px 0 16px; letter-spacing: -0.02em; }
.page-content h3 { font-size: 1.375rem; font-weight: 700; margin: 40px 0 12px; }
.page-content p { margin-bottom: 24px; }
.page-content a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.page-content blockquote { border-left: 3px solid var(--color-accent); padding-left: 24px; margin: 32px 0; font-style: italic; color: var(--color-text-muted); }
.page-content ul, .page-content ol { margin: 24px 0; padding-left: 24px; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 8px; }
.page-content img { border-radius: 8px; margin: 32px 0; }
.page-content hr { border: none; border-top: 1px solid var(--color-border); margin: 48px 0; }

/* --- Contact Page: Split Layout --- */
.contact-page {
    padding-top: calc(var(--header-height) + 60px);
    position: relative;
    overflow: hidden;
}

/* Background character image — shared base styles */
.contact-bg-base,
.contact-bg-reveal {
    position: absolute;
    top: 2.5%;
    left: calc(-5% - 25px);
    width: 75%;
    height: 110%;
    background: url('https://cheeseturbulence.ghost.io/content/images/2026/04/mrcheese-contact.png') center 15% / contain no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* Base — always faintly visible */
.contact-bg-base {
    opacity: 0.08;
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 70%);
    mask-image: linear-gradient(to bottom, black 40%, transparent 70%);
}

/* Spotlight reveal on mouse */
.contact-bg-reveal {
    opacity: 0;
    -webkit-mask-image: radial-gradient(circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 60%), linear-gradient(to bottom, black 40%, transparent 70%);
    mask-image: radial-gradient(circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 60%), linear-gradient(to bottom, black 40%, transparent 70%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    transition: opacity 0.5s ease;
}

.contact-page:hover .contact-bg-reveal {
    opacity: 0.3;
}

.contact-layout {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding) 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info {
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

.contact-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 24px;
}

.contact-intro {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.contact-intro p {
    margin-bottom: 0;
}

.contact-form-wrap {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px;
}

/* --- Contact Form --- */
.contact-form { max-width: none; margin: 0; display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-text-muted); }
.form-group input, .form-group textarea, .form-group select { font-family: var(--font-body); font-size: 1rem; padding: 16px; background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-text); transition: border-color 0.3s ease; outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--color-accent); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; cursor: pointer; }
.form-group select option { background: var(--color-bg-elevated); color: var(--color-text); }
.form-group textarea { min-height: 160px; resize: vertical; }
.form-submit { display: inline-flex; align-items: center; justify-content: center; padding: 16px 40px; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--color-accent); color: var(--color-bg); border: none; border-radius: 50px; cursor: pointer; transition: color 0.35s ease; align-self: flex-start; position: relative; overflow: hidden; z-index: 1; }
.form-submit::before { content: ''; position: absolute; inset: 0; border-radius: 50px; background: var(--color-text); transform: scale(0); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s; z-index: -1; }
.form-submit:hover { color: var(--color-bg); }
.form-submit:hover::before { transform: scale(1); opacity: 1; visibility: visible; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0s, visibility 0s; }
.form-message { padding: 16px; border-radius: 8px; font-size: 0.875rem; display: none; }
.form-message.success { display: block; background: rgba(251, 212, 29, 0.1); border: 1px solid var(--color-accent); color: var(--color-accent); }
.form-message.error { display: block; background: rgba(255, 59, 48, 0.1); border: 1px solid #ff3b30; color: #ff3b30; }

/* --- About Page --- */
.about-page {
    padding-top: calc(var(--header-height) + 60px);
    position: relative;
    overflow: hidden;
}

/* Background character — shared base styles */
.about-bg-base,
.about-bg-reveal {
    position: absolute;
    top: 2.5%;
    right: calc(-5% - 25px);
    width: 75%;
    height: 110%;
    background: url('https://cheeseturbulence.ghost.io/content/images/2026/04/mrcheese-about-1.png') center 15% / contain no-repeat;
    pointer-events: none;
    z-index: 0;
}

.about-bg-base {
    opacity: 0.08;
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 70%);
    mask-image: linear-gradient(to bottom, black 40%, transparent 70%);
}

.about-bg-reveal {
    opacity: 0;
    -webkit-mask-image: radial-gradient(circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 60%), linear-gradient(to bottom, black 40%, transparent 70%);
    mask-image: radial-gradient(circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 60%), linear-gradient(to bottom, black 40%, transparent 70%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    transition: opacity 0.5s ease;
}

.about-page:hover .about-bg-reveal {
    opacity: 0.3;
}

.about-layout {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 120px var(--container-padding) 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.about-info {
    margin-bottom: 40px;
}

.about-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 24px;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 16px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-cta-wrap {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
}

.about-cta-callout {
    font-size: 1.0625rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 32px;
}

.about-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 50px;
    color: var(--color-bg);
    transition: all 0.3s ease;
    justify-content: center;
}

.about-cta:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

/* --- Support Page --- */
.support-page {
    padding-top: calc(var(--header-height) + 60px);
}

.support-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding) 80px;
}

.support-intro {
    margin-bottom: 64px;
}

.support-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 24px;
}

.support-text {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    column-count: 2;
    column-gap: 48px;
}

.support-text p { margin-bottom: 16px; }
.support-text p:last-child { margin-bottom: 0; }

.support-section {
    margin-bottom: 56px;
}

.support-section:last-child {
    margin-bottom: 0;
}

.support-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.support-section-desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.support-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.support-card:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
    transform: translateY(-2px);
}

.support-card:hover .support-card-icon { color: var(--color-bg); }
.support-card:hover .support-card-icon svg { fill: var(--color-bg); stroke: var(--color-bg); }
.support-card:hover h3 { color: var(--color-bg); }
.support-card:hover p { color: rgba(0, 0, 0, 0.6); }
.support-card:hover .support-card-code { background: rgba(0, 0, 0, 0.15); color: var(--color-bg); }
.support-card:hover .support-card-action { color: var(--color-bg); }

.support-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 212, 29, 0.1);
    border-radius: 10px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.support-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.support-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.support-card-code {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    background: rgba(251, 212, 29, 0.08);
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.support-card-action {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-top: auto;
    transition: opacity 0.3s ease;
}

.support-card:hover .support-card-action {
    opacity: 0.8;
}

.support-disclaimer {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 24px;
    opacity: 0.6;
    line-height: 1.6;
}

/* --- Tag Page --- */
.tag-page { padding-top: calc(var(--header-height) + 60px); min-height: 100vh; }
.tag-header { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-padding) 60px; }
.tag-header h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; letter-spacing: -0.04em; text-transform: uppercase; }
.tag-header p { font-size: 1.125rem; color: var(--color-text-muted); margin-top: 12px; max-width: 600px; }

/* --- Author Page --- */
.author-page { padding-top: calc(var(--header-height) + 60px); min-height: 100vh; }
.author-header { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-padding) 60px; display: flex; align-items: center; gap: 32px; }
.author-avatar { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--color-border); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.03em; }
.author-info p { font-size: 1rem; color: var(--color-text-muted); margin-top: 8px; max-width: 500px; }

/* --- Error Page --- */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--container-padding); }
.error-code { font-size: clamp(6rem, 20vw, 16rem); font-weight: 900; line-height: 1; letter-spacing: -0.05em; color: var(--color-accent); }
.error-message { font-size: 1.25rem; color: var(--color-text-muted); margin: 16px 0 40px; }
.error-link { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--color-accent); border-radius: 50px; color: var(--color-accent); transition: all 0.3s ease; }
.error-link:hover { background: var(--color-accent); color: var(--color-bg); }

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 48px 0 32px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-copy {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--color-text);
}

.footer-copy em {
    font-style: italic;
    font-weight: 900;
}

/* Drop-up navigation */
.footer-nav-dropup {
    position: relative;
}

.footer-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-nav-trigger:hover {
    border-color: var(--color-accent);
    color: var(--color-text);
}

.footer-trigger-icon {
    transition: transform 0.3s ease;
}

.footer-nav-dropup:hover .footer-trigger-icon,
.footer-nav-dropup.open .footer-trigger-icon {
    transform: rotate(45deg);
}

.footer-dropup-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.95);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.footer-nav-dropup:hover .footer-dropup-menu,
.footer-nav-dropup.open .footer-dropup-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.footer-dropup-link {
    display: block;
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.footer-dropup-link:hover {
    color: var(--color-accent);
}

.footer-dropup-divider {
    height: 1px;
    background: var(--color-border);
    margin: 4px 0;
}

.mrcheese-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mrcheese-bubble {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--color-accent);
    color: var(--color-bg);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-style: italic;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.mrcheese-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--color-accent);
}

.mrcheese-wrap:hover .mrcheese-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mrcheese-runner {
    height: 36px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.mrcheese-wrap:hover .mrcheese-runner {
    opacity: 1;
}

/* --- Instagram Showcase --- */
.instagram-showcase {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    height: clamp(400px, 70vh, 700px);
    transition: filter 0.5s ease;
}

.instagram-item {
    overflow: hidden;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.instagram-showcase:hover .instagram-grid {
    filter: blur(8px);
}

.instagram-showcase:hover .instagram-overlay {
    opacity: 1;
    pointer-events: auto;
}

.instagram-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--color-accent);
    color: var(--color-bg);
    border-radius: 50px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.instagram-cta-btn:hover {
    transform: scale(1.05);
    background: var(--color-text);
    color: var(--color-bg);
}

/* --- Contact Section (Homepage) --- */
.contact-section {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    position: relative;
    overflow: hidden;
    perspective: 800px;
    transition: border-color 0.5s ease;
}

.contact-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 212, 29, 0.12), transparent 70%);
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.contact-section:hover::after {
    opacity: 1;
}

.contact-section:hover {
    border-color: rgba(251, 212, 29, 0.2);
}

.contact-inner {
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
}

.contact-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: 16px;
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.contact-home-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.contact-home-row {
    display: flex;
    gap: 12px;
}

.contact-home-input,
.contact-home-textarea {
    flex: 1;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 14px 20px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-home-input:focus,
.contact-home-textarea:focus {
    border-color: var(--color-accent);
}

.contact-home-input::placeholder,
.contact-home-textarea::placeholder {
    color: var(--color-text-muted);
}

.contact-home-textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-home-form .newsletter-submit {
    align-self: center;
}

.contact-home-status {
    margin-top: 16px;
    font-size: 0.875rem;
    padding: 0;
    border-radius: 8px;
    text-align: center;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.contact-home-status.success {
    padding: 12px 20px;
    color: var(--color-accent);
    background: rgba(251, 212, 29, 0.1);
    border: 1px solid var(--color-accent);
}

.contact-home-status.error {
    padding: 12px 20px;
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid #ff3b30;
}

/* --- Articles Read More Button --- */
.articles-read-more {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--color-accent);
    color: var(--color-bg);
    border: none;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.35s ease, transform 0.3s ease;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: var(--color-text);
    transform: scale(0);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    z-index: -1;
}

.read-more-btn:hover {
    color: var(--color-bg);
    transform: scale(1.05);
}

.read-more-btn:hover::before {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0s, visibility 0s;
}

/* --- Articles Empty State --- */
.articles-empty {
    padding: 80px 0;
    text-align: center;
}

.articles-empty p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

/* --- Video Card --- */
.video-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    background: var(--color-accent);
}

.video-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.video-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.video-card:hover .video-card-image img {
    filter: blur(8px);
    transform: scale(1.1);
}

.video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.video-card:hover .video-card-play {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.video-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-accent);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 2;
    pointer-events: none;
    transition: background 0.4s ease, color 0.4s ease;
}

.video-card:hover .video-card-badge {
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-text);
}

.video-card-watch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 50px;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.video-card:hover .video-card-watch {
    opacity: 1;
    pointer-events: auto;
}

.video-card:hover .video-card-watch:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background: var(--color-text);
    color: var(--color-bg);
}

.video-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.video-card-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 10px;
    align-self: flex-start;
    transition: color 0.4s ease;
}

.video-card:hover .video-card-tag {
    color: var(--color-bg);
}

.video-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    transition: color 0.4s ease;
}

.video-card:hover .video-card-title {
    color: var(--color-bg);
}

.video-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.4s ease;
    margin-top: auto;
}

.video-card:hover .video-card-meta {
    color: var(--color-bg);
}

.video-card-episode {
    font-weight: 600;
}

.video-card-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* --- Video Grids --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* --- Videos Page: Swimlane Layout --- */
.videos-page { padding-top: 0; }
.page-videos .videos-page { padding-top: 0; }
.page-videos.page-template { padding-top: 0; }

/* Swimlane layout — centered vertically, footer visible below */
.swimlane-layout {
    --sl-scale: 1;
    --sl-card-base: 390px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100dvh - 120px);
    position: relative;
}

/* Top bar: season info */
.swimlane-top-bar {
    flex-shrink: 0;
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 8px;
}

.swimlane-top-bar-inner {
    padding: 0 calc(max(var(--container-padding), (100% - var(--container-width)) / 2 + var(--container-padding)));
    display: flex;
    align-items: center;
}

.swimlane-top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.swimlane-season-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
}

.swimlane-season-label span {
    color: var(--color-accent);
}

.swimlane-season-meta {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* Nav buttons */
.swimlane-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: transparent;
    border: 1px solid rgba(251, 212, 29, 0.2);
    border-radius: 50px;
    padding: 12px 28px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
}

.swimlane-nav-btn svg { flex-shrink: 0; }

.swimlane-nav-btn:hover:not(.disabled) {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

.swimlane-nav-btn.disabled {
    color: var(--color-text-muted);
    border-color: var(--color-border);
    opacity: 0.3;
    cursor: default;
}

/* Centered nav rows (Next/Previous Season) */
.swimlane-nav-centered {
    flex-shrink: 0;
    padding: 8px var(--container-padding);
    display: flex;
    justify-content: center;
}

/* Slide container: JS sets exact height to match card row; fallback for initial render */
.swimlane-slide-container {
    height: calc(100dvh - var(--header-height) - 260px);
    position: relative;
    overflow: hidden;
}

.swimlane-viewport {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

/* Track wrapper */
.swimlane-track-wrapper {
    flex: 1;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.swimlane-track-wrapper::-webkit-scrollbar {
    display: none;
}

.swimlane-track {
    display: flex;
    flex-wrap: nowrap;
    gap: calc(24px * var(--sl-scale, 1));
    padding: 8px calc(50% - var(--sl-card-base) * var(--sl-scale, 1) * 0.5);
    min-width: min-content;
    align-items: stretch;
}

/* Scroll buttons — fixed to viewport edges */
.swimlane-scroll-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    border: none;
    color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.swimlane-scroll-btn.visible { opacity: 1; pointer-events: auto; }
.swimlane-scroll-btn:hover { background: var(--color-text); color: var(--color-bg); transform: translateY(-50%) scale(1.15); }
.swimlane-scroll-btn-left { left: 16px; }
.swimlane-scroll-btn-right { right: 16px; }

/* --- Swimlane Card --- */
.swimlane-card {
    width: calc(var(--sl-card-base) * var(--sl-scale, 1));
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text);
    position: relative;
    z-index: 1;
    scroll-snap-align: center;
}

.swimlane-card:hover { z-index: 10; }

/* Partial card (not fully in viewport) — non-interactive */
.swimlane-card-partial { pointer-events: none; }

/* Inner card */
.swimlane-card-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    border-radius: calc(12px * var(--sl-scale, 1));
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: background 0.3s ease, transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

/* Yellow fill on hover, border stays — scale handled by GSAP */
.swimlane-card:hover .swimlane-card-inner {
    background: var(--color-accent);
}

/* Thumbnail — 16:9 so full image is visible */
.swimlane-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-bg-elevated);
}

.swimlane-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.swimlane-card:hover .swimlane-card-media img {
    filter: blur(8px);
    transform: scale(1.1);
}

/* "Watch on YouTube" pill — yellow on card hover, white+scale on pill hover */
.swimlane-card-watch-pill {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-size: calc(0.7rem * var(--sl-scale, 1));
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: calc(10px * var(--sl-scale, 1)) calc(20px * var(--sl-scale, 1));
    border-radius: 50px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.2s ease, color 0.2s ease;
    z-index: 3;
    pointer-events: none;
}

.swimlane-card:hover .swimlane-card-watch-pill {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.swimlane-card:hover .swimlane-card-watch-pill:hover {
    background: var(--color-text);
    color: var(--color-bg);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Darken thumbnail on hover */
.swimlane-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.swimlane-card:hover .swimlane-card-media::after {
    background: rgba(0, 0, 0, 0.4);
}

/* Badge */
.swimlane-card-badge {
    position: absolute;
    top: calc(10px * var(--sl-scale, 1));
    left: calc(10px * var(--sl-scale, 1));
    font-size: calc(0.65rem * var(--sl-scale, 1));
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: calc(4px * var(--sl-scale, 1)) calc(10px * var(--sl-scale, 1));
    border-radius: 50px;
    z-index: 2;
}

/* "New" label with circling yellow border */
@property --new-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes new-border-rotate {
    from { --new-angle: 0deg; }
    to { --new-angle: 360deg; }
}

.swimlane-card-new {
    position: absolute;
    top: calc(10px * var(--sl-scale, 1));
    right: calc(10px * var(--sl-scale, 1));
    font-size: calc(0.6rem * var(--sl-scale, 1));
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-bg);
    background: var(--color-text);
    padding: calc(3px * var(--sl-scale, 1)) calc(10px * var(--sl-scale, 1));
    border-radius: 50px;
    z-index: 2;
}

.swimlane-card-new::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50px;
    padding: 3px;
    background: conic-gradient(from var(--new-angle), var(--color-accent), transparent 25%, transparent 75%, var(--color-accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: new-border-rotate 2s linear infinite;
}

/* Card info */
.swimlane-card-info {
    padding: calc(14px * var(--sl-scale, 1)) calc(16px * var(--sl-scale, 1));
    display: flex;
    flex-direction: column;
    gap: calc(6px * var(--sl-scale, 1));
    flex: 1;
}

.swimlane-card-tag {
    font-size: calc(0.65rem * var(--sl-scale, 1));
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    transition: color 0.3s ease;
}

.swimlane-card:hover .swimlane-card-tag { color: var(--color-bg); }

.swimlane-card-title {
    font-family: var(--font-heading);
    font-size: calc(0.95rem * var(--sl-scale, 1));
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.swimlane-card:hover .swimlane-card-title { color: var(--color-bg); }

.swimlane-card-date {
    font-size: calc(0.7rem * var(--sl-scale, 1));
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: auto;
    transition: color 0.3s ease;
}

.swimlane-card:hover .swimlane-card-date { color: rgba(0, 0, 0, 0.5); }

/* Separator between date and description */
.swimlane-card-separator {
    width: 100%;
    height: 1px;
    background: var(--color-border);
    margin-top: calc(10px * var(--sl-scale, 1));
    transition: background 0.3s ease;
}

.swimlane-card:hover .swimlane-card-separator { background: rgba(0, 0, 0, 0.15); }

/* Inline description on card */
.swimlane-card-desc {
    font-size: calc(0.72rem * var(--sl-scale, 1));
    line-height: 1.5;
    color: var(--color-text-muted);
    margin-top: calc(8px * var(--sl-scale, 1));
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.swimlane-card:hover .swimlane-card-desc { color: rgba(0, 0, 0, 0.5); }

/* "Coming Soon" placeholder card — matches real card structure */
.swimlane-card-placeholder { pointer-events: none; }
.swimlane-card-placeholder .swimlane-card-inner {
    border: 2px dashed var(--color-border);
    background: transparent;
}

.swimlane-card-placeholder:hover .swimlane-card-inner {
    background: transparent;
    transform: none;
}

/* Placeholder media area — same aspect ratio, holds centered pill */
.swimlane-card-placeholder .swimlane-card-media {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swimlane-placeholder-pill {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: calc(10px * var(--sl-scale, 1)) calc(24px * var(--sl-scale, 1));
    font-family: var(--font-body);
    font-size: calc(0.7rem * var(--sl-scale, 1));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.5;
}

/* Placeholder badge — same position as real card badge */
.swimlane-placeholder-badge {
    position: absolute;
    top: calc(10px * var(--sl-scale, 1));
    left: calc(10px * var(--sl-scale, 1));
    font-size: calc(0.65rem * var(--sl-scale, 1));
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid var(--color-border);
    padding: calc(3px * var(--sl-scale, 1)) calc(10px * var(--sl-scale, 1));
    border-radius: 50px;
    opacity: 0.35;
}


/* --- Video Detail Page --- */
.video-post-page {
    padding-top: var(--header-height);
}

.video-player-wrap.video-player-top {
    max-width: none;
    margin: 0;
    padding: 0;
}

.video-player-wrap.video-player-top .video-player-container {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--color-border);
}

.video-detail-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px var(--container-padding) 32px;
    text-align: left;
}

.video-detail-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.video-detail-meta {
    justify-content: flex-start;
}

.video-episode-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 3px 10px;
    border-radius: 50px;
}

.video-player-wrap {
    max-width: 1000px;
    margin: 0 auto 32px;
    padding: 0 var(--container-padding);
}

.video-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--color-bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    cursor: pointer;
}

.video-player-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-player-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.video-player-play:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-player-container.playing .video-player-thumb,
.video-player-container.playing .video-player-play {
    display: none;
}

/* Video Detail Body — inline text */
.video-detail-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--container-padding) 40px;
}

.video-detail-body .post-content {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Video Products Box — "As Seen On YouTube" */
.video-products-box {
    max-width: 900px;
    margin: 0 auto 48px;
    padding: 0 var(--container-padding);
}

.video-products-inner {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px 40px;
}

.video-products-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.video-products-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-products-list li {
    margin: 0;
}

.video-products-list a {
    color: var(--color-text);
    font-size: 0.9375rem;
    line-height: 1.5;
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.video-products-list a::before {
    content: '→';
    color: var(--color-accent);
    font-weight: 600;
    flex-shrink: 0;
}

.video-products-list a:hover {
    color: var(--color-accent);
}

/* YouTube Links */
.video-yt-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 48px;
    padding: 0 var(--container-padding);
}

.video-yt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    color: var(--color-text-muted);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.video-yt-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.video-yt-btn svg {
    flex-shrink: 0;
}

/* Video Related Grid */
.video-related-grid .video-card {
    min-width: 0;
}

/* --- Utility: Animations --- */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .post-toc { display: none !important; }
    .articles-sidebar { display: none; }
    .articles-layout { grid-template-columns: 1fr; }
    .swimlane-layout { --sl-card-base: 340px; }
    .swimlane-nav-btn { padding: 10px 22px; }
}

@media (max-width: 1024px) {
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .contact-info { position: static; text-align: center; }
    .contact-form-wrap { max-width: 600px; margin: 0 auto; }
    .about-layout { grid-template-columns: 1fr; gap: 0; padding-top: 60px; }
    .about-spacer { display: none; }
    .about-info { text-align: center; }
    .about-cta-wrap { max-width: 600px; margin: 0 auto; }
    .featured-grid, .related-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .swimlane-layout { --sl-card-base: 300px; }
    .footer-message { margin-bottom: 24px; }
    .footer-bar { flex-direction: column; gap: 16px; }
    .footer-dropup-menu { right: auto; left: 50%; transform: translateX(-50%) translateY(8px) scale(0.95); }
    .footer-nav-dropup:hover .footer-dropup-menu,
    .footer-nav-dropup.open .footer-dropup-menu { transform: translateX(-50%) translateY(0) scale(1); }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --container-padding: 20px;
    }

    .site-nav { display: none; }
    .menu-toggle { display: flex; }
    .hero { padding: 100px var(--container-padding) 60px; }
    .section { padding: 80px var(--container-padding); }
    .featured-grid, .related-grid, .post-grid, .articles-grid, .video-grid { grid-template-columns: 1fr; }
    .video-yt-links { flex-direction: column; align-items: center; }
    .swimlane-layout { --sl-card-base: 260px; }
    .swimlane-scroll-btn { display: none !important; }
    .swimlane-top-bar { padding-top: calc(var(--header-height) + 8px); }
    .swimlane-track { gap: calc(16px * var(--sl-scale, 1)); }
    .swimlane-nav-btn { padding: 10px 20px; font-size: 0.75rem; }
    .tag-header h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .author-header { flex-direction: column; text-align: center; }
    .author-info p { margin-left: auto; margin-right: auto; }
    .footer-bar { text-align: center; }
    .cta-grid { flex-direction: column; align-items: center; }
    .post-content .kg-width-wide { max-width: calc(100% + 40px); margin-left: -20px; margin-right: -20px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-submit { width: 100%; }
    .video-showcase { height: clamp(300px, 50vh, 600px); }
    .video-watch-btn { padding: 14px 28px; font-size: 0.8rem; }
    .hero-buttons { gap: 12px; margin-top: 28px; }
    .hero-btn { padding: 10px 18px; font-size: 0.75rem; }
    .instagram-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
    .instagram-cta-btn { padding: 14px 28px; font-size: 0.8rem; }
    .contact-home-row { flex-direction: column; }
    .contact-layout { padding-left: 0; padding-right: 0; }
    .contact-info { padding: 0 var(--container-padding); }
    .contact-form-wrap { padding: 24px; max-width: none; margin: 0; border-radius: 0; border-left: none; border-right: none; }
    .about-layout { padding-top: 40px; }
    .about-cta-wrap { padding: 24px; }
    .contact-bg-base, .contact-bg-reveal { left: auto; right: auto; width: 100%; background-position: center 15%; }
    .about-bg-base, .about-bg-reveal { left: auto; right: auto; width: 100%; background-position: center 15%; }
    .about-cta { padding: 12px 20px; font-size: 0.8rem; }
    .support-text { column-count: 1; }

    /* Articles page mobile */
    .articles-hero { height: clamp(300px, 50vh, 500px); }
}

@media (max-width: 480px) {
    .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
    .post-card-content { padding: 16px; }
    .post-card-title { font-size: 1.1rem; }

    .articles-hero { height: clamp(250px, 45vh, 400px); }
    .articles-hero-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
}
