/*
 * Twerds Modern Theme - Base Styles
 * A minimal foundation for Phase 1
 */

/* ========================================
   CSS Reset & Base Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ========================================
       Neon Accent Colors (Y2K/Retro)
       ======================================== */
    --neon-magenta: #FF00E5;
    --neon-cyan: #00EEFF;
    --neon-yellow: #FCFC00;
    --neon-pink: #FF69B4;

    /* ========================================
       Neutral Foundation (Minimal/Professional)
       ======================================== */
    --color-bg-dark: #000000;
    --color-bg-space: #0A0A0F;
    --color-card-bg: rgba(0, 0, 0, 0.5);
    --color-card-border: rgba(255, 255, 255, 0.1);

    --color-text: #FFFFFF;
    --color-text-secondary: #B0B0B0;
    --color-text-muted: #808080;

    /* Legacy colors for compatibility */
    --color-primary: var(--neon-cyan);
    --color-secondary: var(--neon-magenta);
    --color-bg: var(--color-bg-dark);
    --color-bg-alt: var(--color-bg-space);
    --color-border: var(--color-card-border);
    --color-text-light: var(--color-text-secondary);

    /* ========================================
       Typography
       ======================================== */
    --font-display: 'Rubik One', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-code: 'Courier Prime', 'Courier New', monospace;
    --font-sans: 'Courier Prime', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Ghost Custom Fonts */
    --gh-font-heading: var(--font-display);
    --gh-font-body: var(--font-sans);

    /* Spacing */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-12: 6rem;
    --space-16: 8rem;

    /* Container */
    --container-max: 1440px;
    --container-narrow: 720px; /* Optimized for ~60 characters per line (WCAG accessibility) */
    --container-wide: 1400px;

    /* ========================================
       Typography Scale - Figma Aligned
       ======================================== */
    --text-hero-display: clamp(2.5rem, 8vw, 8rem); /* 96px / 8rem - Homepage hero */
    --text-hero-post: clamp(2rem, 5vw, 4.667rem); /* 56pt / 74.67px / 4.667rem - Post page hero */
    --text-section-heading: clamp(2rem, 5vw, 4rem); /* 48px / 4rem */
    --text-card-title: clamp(1.5rem, 3vw, 2rem); /* 32px / 2.667rem */
    --text-lead: clamp(1rem, 2vw, 1.25rem); /* 20px / 1.667rem */
    --text-body-post: 1rem; /* 16px - Post body text */

    /* ========================================
       Shadow Presets - Figma Specs
       ======================================== */
    --shadow-hero: 0 0 54px rgba(185, 180, 141, 0.75),
                   -4px -4px 0 rgba(255, 0, 200, 1.00),
                   4px 4px 0 rgba(0, 238, 255, 1.00);
    --shadow-lead: 0 0 44px rgba(0, 0, 0, 1.00);
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-dark);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 238, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 229, 0.05) 0%, transparent 50%),
        url('../../img-assets/starfield-bg.png');
    background-attachment: fixed, fixed, fixed;
    background-size: auto, auto, 400px 400px;
    background-position: 0 0;
    background-repeat: no-repeat, no-repeat, repeat;
}

/* ========================================
   Dividers & Separators
   ======================================== */

hr {
    border: none;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #00eeff 0%, #ff00e6 100%) 1;
    margin: var(--space-8) 0;
}

.divider {
    border: none;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #00eeff 0%, #ff00e6 100%) 1;
    margin: var(--space-8) 0;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-2);
    letter-spacing: 0.02em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Gradient Text Effects (Y2K Style) */
.gradient-text {
    background: linear-gradient(135deg, var(--neon-magenta), var(--neon-cyan), var(--neon-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(255, 0, 229, 0.3);
}

.gradient-text-magenta-cyan {
    background: linear-gradient(135deg, var(--neon-magenta) 0%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(255, 0, 229, 0.5))
            drop-shadow(0 4px 8px rgba(0, 238, 255, 0.3));
}

.gradient-text-cyan-yellow {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 238, 255, 0.5))
            drop-shadow(0 4px 8px rgba(252, 252, 0, 0.3));
}

/* 3D Shadow Effect for Headings */
.text-3d {
    text-shadow:
        2px 2px 0 rgba(255, 0, 229, 0.8),
        4px 4px 0 rgba(0, 238, 255, 0.6),
        6px 6px 0 rgba(252, 252, 0, 0.4),
        8px 8px 12px rgba(0, 0, 0, 0.5);
}

/* Code/Meta Text Style */
.text-code {
    font-family: var(--font-code);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
}

p {
    margin-bottom: var(--space-3);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* ========================================
   Layout
   ======================================== */

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

.container-narrow,
.content-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

/* ========================================
   Header & Navigation (Minimal + Y2K Accent)
   ======================================== */

.site-header {
    padding: var(--space-4) 0;
    backdrop-filter: blur(2px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 238, 255, 0.3));
}

.site-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-nav-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
}

.site-nav-right ul.nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav-right ul.nav li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.site-nav-right a {
    color: #00eeff;
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 1rem;
    line-height: 16px;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    text-decoration: underline;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
}

.site-nav-right a:hover {
    color: var(--neon-cyan);
    opacity: 1;
    text-shadow: 0 0 12px rgba(0, 238, 255, 0.6);
}

.site-nav-right a.nav-current {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 238, 255, 0.6);
}

.site-nav-right a.nav-current::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 238, 255, 0.6);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    color: var(--neon-cyan);
    transition: transform 0.2s ease, filter 0.2s ease;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    filter: drop-shadow(0 0 8px rgba(0, 238, 255, 0.6));
    transform: scale(1.1);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle .menu-icon {
    display: block;
    font-size: 1.5rem;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

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

/* ========================================
   Visitor Counter (Y2K Style)
   ======================================== */

.visitor-counter {
    padding: var(--space-12) 0 var(--space-12);
    margin-bottom: 0;
}

.visitor-counter-wrapper {
    position: relative;
    max-width: 458px;
    margin: 0 auto;
}

.visitor-counter-content {
    background: #000000;
    border: 1px solid #ffffff;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    width: 458px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.visitor-counter-label {
    font-family: var(--font-code);
    font-weight: 400;
    font-size: 1rem;
    color: #ffffff;
    line-height: 32px;
    margin: 0;
}

.visitor-counter-digits {
    display: flex;
    justify-content: center;
    gap: 8px;
    line-height: 32px;
    margin: 0;
}

.visitor-counter-digits .digit {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 1rem;
    color: #ff00e5;
    line-height: 32px;
    transition: opacity 0.3s ease;
}

.visitor-counter-since {
    font-family: var(--font-code);
    font-weight: 400;
    font-size: 1rem;
    color: #ffffff;
    line-height: 32px;
    margin: 0;
}

.visitor-counter-image {
    position: absolute;
    right: -100px;
    bottom: -96px;
    z-index: 10;
}

.visitor-counter-image img {
    width: 220px;
    height: 211px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    :root {
        --shadow-hero: 0 0 54px rgba(185, 180, 141, 0.75),
                       -2px -2px 0 rgba(255, 0, 200, 1.00),
                       2px 2px 0 rgba(0, 238, 255, 1.00);
    }

    .visitor-counter-wrapper {
        max-width: 100%;
        padding: 0 var(--space-4);
    }

    .visitor-counter-content {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .visitor-counter-image {
        right: -20px;
        bottom: -64px;
    }

    .visitor-counter-image img {
        width: 150px;
        height: auto;
    }
}

/* ========================================
   Footer (Y2K Style) - Figma Design
   ======================================== */

.site-footer {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 68.86%);
    padding: 32px 0;
    margin-top: 0;
    border-top: 4px solid;
    border-image: linear-gradient(90deg, #00eeff 0%, #ff00e6 100%) 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: left;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #ff00e5;
    margin: 0;
    line-height: 32px;
    width: 100%;
    text-align: left;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    width: 100%;
    padding-bottom: 32px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-connect-title {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fcfc00;
    margin: 0;
    line-height: 32px;
}

.footer-description {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    margin: 0;
    line-height: 32px;
}

.footer-actions {
    margin: 0;
}

.footer-resume-link {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: #00eeff;
    line-height: 32px;
    text-align: left;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-resume-link:hover {
    color: #ff00e6;
    text-shadow: 0 0 8px rgba(0, 238, 255, 0.6);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 1rem;
    line-height: 32px;
}

.footer-social a {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: #00eeff;
    line-height: 32px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    color: #ff00e6;
    text-shadow: 0 0 8px rgba(0, 238, 255, 0.6);
}

.footer-bottom {
    width: 100%;
    padding-top: 24px;
    border-top: 1px solid rgba(185, 180, 141, 0.75);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright,
.footer-ghost {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    line-height: 32px;
    margin: 0;
}

.footer-copyright a {
    color: #ffffff;
    text-decoration: underline;
}

.footer-copyright a:hover {
    color: #00eeff;
}

/* ========================================
   Buttons (Y2K Style)
   ======================================== */

.button {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    border-radius: 8px;
    font-family: var(--font-code);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                background-color 0.2s ease,
                border-color 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.button-primary {
    background-color: var(--neon-cyan);
    color: var(--color-bg-dark);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.4);
}

.button-primary:hover {
    box-shadow: 0 0 35px rgba(0, 238, 255, 0.8),
                0 0 60px rgba(0, 238, 255, 0.4),
                0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px) scale(1.05);
    opacity: 1;
    background-color: #00ffff;
}

.button-secondary {
    background-color: transparent;
    color: var(--neon-magenta);
    border-color: var(--neon-magenta);
    box-shadow: 0 0 10px rgba(255, 0, 229, 0.2);
}

.button-secondary:hover {
    background-color: rgba(255, 0, 229, 0.15);
    box-shadow: 0 0 30px rgba(255, 0, 229, 0.6),
                0 0 50px rgba(255, 0, 229, 0.3);
    transform: translateY(-3px) scale(1.05);
    border-color: #ff00ff;
}

.button-outline {
    background-color: transparent;
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.button-outline:hover {
    background-color: rgba(0, 238, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 238, 255, 0.5),
                0 0 45px rgba(0, 238, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
}

.button-text {
    background-color: transparent;
    color: var(--neon-cyan);
    padding: var(--space-1) 0;
    border: none;
}

.button-large {
    padding: var(--space-3) var(--space-6);
    font-size: 1rem;
}

/* ========================================
   Sections (Y2K Style)
   ======================================== */

.section {
    padding: var(--space-16) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #000000;
    text-shadow: var(--shadow-hero);
    line-height: 1.375;
}

.section-subtitle {
    font-family: var(--font-code);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fcfc00;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-cta {
    text-align: center;
    margin-top: var(--space-8);
}

/* Special Section Styles */
.section-alt {
    background: linear-gradient(180deg,
        rgba(0, 238, 255, 0.03) 0%,
        transparent 50%,
        rgba(255, 0, 229, 0.03) 100%);
    border-top: 1px solid var(--color-card-border);
    border-bottom: 1px solid var(--color-card-border);
}

/* ========================================
   Hero (Y2K Style)
   ======================================== */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-8) 0;
}

.hero-cat {
    position: absolute;
    bottom: 0;
    width: auto;
    height: 300px;
    max-width: 25vw;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

.hero-cat-left {
    left: 0;
}

.hero-cat-right {
    right: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 7.25rem;
    margin-bottom: 60px;
    color: #000000;
    text-shadow: var(--shadow-hero);
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 110px;
}

.hero-subtitle {
    font-family: var(--font-code);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-description {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--color-text);
    margin-bottom: var(--space-6);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-lead {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: var(--text-lead);
    line-height: 1.33;
    text-align: center;
    text-shadow: var(--shadow-lead);
    color: var(--color-text);
    margin-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Construction Banner (Y2K Style)
   ======================================== */

.construction-banner {
    background-color: #fbfb00;
    width: 100%;
    padding: 0.75rem 0;
    overflow: hidden;
    position: relative;
}

.construction-banner-inner {
    display: flex;
    align-items: center;
    width: fit-content;
    animation: marquee 30s linear infinite;
}

.construction-text {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000000;
    white-space: nowrap;
    display: inline-block;
    padding-right: 50px;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   Brand Logo Marquee (Y2K Style)
   ======================================== */

.brand-marquee {
    background: linear-gradient(90deg, #00eeff 0%, #ff00e6 100%);
    width: 100%;
    overflow: hidden;
    position: relative;
}

.brand-marquee-label {
    padding: 1rem 0 0.5rem;
    text-align: center;
}

.marquee-label-text {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-marquee-container {
    padding: 0.75rem 0 1.5rem;
    overflow: hidden;
    position: relative;
}

.brand-marquee-track {
    display: flex;
    width: 100%;
}

.brand-marquee-inner {
    display: flex;
    align-items: center;
    width: fit-content;
    animation: marquee 30s linear infinite;
    will-change: transform;
    animation-delay: 0s;
}

.brand-marquee-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-right: 3rem;
}

/* Style images from Ghost post content */
.brand-marquee-content img {
    height: 56px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.brand-marquee-content img:hover {
    filter: brightness(0) invert(1);
    opacity: 1;
    transform: scale(1.05);
}

/* Remove default Ghost figure styling in marquee */
.brand-marquee-content figure {
    margin: 0;
    padding: 0;
}

.brand-marquee-content figcaption {
    display: none;
}

/* Handle Ghost gallery cards in marquee - flatten structure */
.brand-marquee-content .kg-gallery-card,
.brand-marquee-content .kg-width-wide {
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
}

.brand-marquee-content .kg-gallery-container {
    display: contents !important;
}

.brand-marquee-content .kg-gallery-row {
    display: contents !important;
}

.brand-marquee-content .kg-gallery-image {
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
    width: auto !important;
    display: inline-flex !important;
}

/* Handle Ghost's paragraph wrapping */
.brand-marquee-content p {
    display: inline-flex;
    align-items: center;
    margin: 0;
    gap: 3rem;
}

/* Placeholder state when no logos exist */
.brand-marquee-placeholder .brand-marquee-inner {
    animation: none;
    justify-content: center;
    width: 100%;
}

.brand-marquee-placeholder .placeholder-text {
    font-family: var(--font-code);
    font-size: 0.875rem;
    color: #ffffff;
    opacity: 0.8;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-marquee-content {
        gap: 2rem;
        padding-right: 2rem;
    }

    .brand-marquee-content img {
        height: 44px;
    }

    .marquee-label-text {
        font-size: 0.75rem;
    }
}

/* ========================================
   Project Cards (Y2K Style)
   ======================================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
}

.project-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 32px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                background 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    padding: 32px 16px 32px 16px;
    width: 458px;
    max-width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    padding: 2px;
    background: linear-gradient(135deg, #00eeff 0%, #ff00e6 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 0 40px rgba(0, 238, 255, 0.6),
                0 0 80px rgba(255, 0, 230, 0.3),
                0 25px 50px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.7);
}

.project-card:hover::before {
    opacity: 1;
}

.project-image {
    position: relative;
    padding: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background: radial-gradient(circle at center, rgba(0, 238, 255, 0.1) 0%, transparent 70%);
}

.project-image img {
    width: 80%;
    height: auto;
    display: block;
    border-radius: 50%;
    border: 3px solid var(--color-card-border);
    transition: border-color 0.3s ease;
    position: relative;
    z-index: 2;
}

.project-card:hover .project-image img {
    border-color: var(--neon-cyan);
}

.project-content {
    padding: var(--space-4);
    position: relative;
    z-index: 2;
}

.project-tags {
    margin-bottom: var(--space-2);
}

.tag {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    background-color: rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 20px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: var(--space-1);
    margin-bottom: var(--space-1);
    color: var(--neon-cyan);
}

.project-title {
    font-family: var(--font-display);
    font-size: var(--text-card-title);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.project-title a {
    color: var(--neon-magenta);
    transition: color 0.2s ease;
}

.project-title a:hover {
    color: var(--neon-cyan);
}

.project-excerpt {
    color: var(--color-text-secondary);
    margin: var(--space-2) 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.project-link {
    font-family: var(--font-code);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    color: var(--neon-cyan);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.project-link:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 238, 255, 0.5);
}

/* Featured Work Specific Styles */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
    justify-items: center;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Make project cards flexible in featured grid */
.featured-grid .project-card {
    width: 100%;
    max-width: 458px;
}

.featured-card {
    /* Inherits all styles from .project-card */
    /* Add featured-specific overrides here if needed */
}

/* ========================================
   Portfolio Page
   ======================================== */

.page-header {
    padding-bottom: var(--space-4);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
    justify-items: center;
    align-items: stretch;
}

.portfolio-card-wrapper {
    width: 100%;
    max-width: 458px;
    display: flex;
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 2 column variant for related sections */
    .portfolio-grid-2col {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Make portfolio cards flexible in portfolio grid */
    .portfolio-grid .portfolio-card-wrapper .project-card {
        width: 100%;
        max-width: 458px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Filter Buttons (Chip Style) */
.portfolio-filters {
    padding: var(--space-8) 0;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
}

.filter-button {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background-color: rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 20px;
    font-family: var(--font-code);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neon-cyan);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover {
    background-color: rgba(0, 238, 255, 0.2);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.3);
}

.filter-button.active {
    background-color: var(--neon-cyan);
    color: var(--color-bg-dark);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.5);
}

@media (max-width: 768px) {
    .filter-group {
        gap: var(--space-1);
    }

    .filter-button {
        font-size: 0.75rem;
        padding: var(--space-1) var(--space-2);
    }
}

/* ========================================
   Project Card Partial (Figma Design)
   ======================================== */

.project-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
    z-index: 1;
}

.project-card-image-wrapper {
    width: 221px;
    height: 221px;
    border-radius: 50%;
    position: relative;
    margin-bottom: var(--space-2);
    flex-shrink: 0;
}

.project-card-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00eeff 0%, #ff00e6 100%);
    z-index: -1;
}

.project-card-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, filter 0.3s ease;
}

.project-card:hover .project-card-image {
    transform: scale(1.05) rotate(2deg);
    filter: brightness(1.1);
}

.project-card-title {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
    color: #ff00e6;
    text-align: center;
    margin-bottom: var(--space-4);
    text-transform: none;
    transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-card-title {
    text-shadow: 0 0 20px rgba(255, 0, 230, 0.8);
    transform: scale(1.02);
}

.project-card-meta {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #fcfc00;
    text-align: center;
    margin-bottom: var(--space-4);
}

.project-card-description {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.5;
    color: #ffffff;
    text-align: center;
    margin-bottom: var(--space-4);
    max-width: 426px;
}

.pointing-finger {
    display: inline-block;
    transition: transform 0.3s ease;
}

.project-card:hover .pointing-finger {
    animation: pointLeftRight 0.6s ease-in-out infinite;
}

@keyframes pointLeftRight {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    75% {
        transform: translateX(4px);
    }
}

.project-card-button-wrapper {
    margin-top: auto;
}

.project-card-button {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: #00eeff;
    color: #000000;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    border: 1px solid #ff00e6;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.2s ease,
                box-shadow 0.3s ease;
}

.project-card-link:hover .project-card-button {
    background: #ff00e6;
    color: #000000;
    box-shadow: 0 0 30px rgba(255, 0, 230, 0.8),
                0 0 50px rgba(255, 0, 230, 0.4);
    transform: translateY(-2px) scale(1.05);
}

/* ========================================
   Other Stuff Section (Y2K Style)
   ======================================== */

.other-stuff-section {
    background: #000000;
    padding: var(--space-12) 0;
}

.other-stuff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.other-stuff-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.other-stuff-item:hover {
    transform: translateY(-8px);
}

.other-stuff-image-wrapper {
    width: 221px;
    height: 221px;
    border-radius: 50%;
    position: relative;
    margin-bottom: var(--space-4);
    flex-shrink: 0;
}

.other-stuff-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00eeff 0%, #ff00e6 100%);
    z-index: -1;
}

.other-stuff-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: rgba(0, 0, 0, 0.2);
}

.other-stuff-title {
    font-family: var(--font-display);
    font-size: 2.667rem;
    line-height: 32px;
    color: #000000;
    text-align: center;
    margin-bottom: var(--space-2);
    text-transform: none;
    -webkit-text-stroke: 6px #ff00e5;
    text-stroke: 6px #ff00e5;
    paint-order: stroke fill;
}

.other-stuff-description {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    color: #fcfc00;
    text-align: center;
    max-width: 240px;
}

@media (max-width: 1024px) {
    .other-stuff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    .other-stuff-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .other-stuff-image-wrapper {
        width: 180px;
        height: 180px;
    }

    .other-stuff-title {
        font-size: 2rem;
        line-height: 28px;
        -webkit-text-stroke: 4px #ff00e5;
        text-stroke: 4px #ff00e5;
    }

    .other-stuff-description {
        font-size: 0.875rem;
    }
}

/* ========================================
   Experiments Section (Y2K Style)
   ======================================== */

.experiment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    justify-items: center;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .experiment-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 2 column variant for related sections */
    .experiment-grid-2col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .experiment-grid {
        grid-template-columns: 1fr;
    }
}

.experiment-card {
    background: var(--color-card-bg);
    border: 2px solid var(--color-card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 400px;
}

.experiment-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-yellow);
    box-shadow: 0 0 20px rgba(252, 252, 0, 0.3);
}

.experiment-image {
    position: relative;
    padding: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: radial-gradient(circle at center, rgba(252, 252, 0, 0.1) 0%, transparent 70%);
}

.experiment-image img {
    width: 70%;
    height: auto;
    display: block;
    border-radius: 50%;
    border: 2px solid var(--color-card-border);
    transition: border-color 0.3s ease;
}

.experiment-card:hover .experiment-image img {
    border-color: var(--neon-yellow);
}

.experiment-content {
    padding: var(--space-3);
}

.experiment-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: var(--space-2);
}

.experiment-title a {
    color: var(--neon-yellow);
    transition: color 0.2s ease;
}

.experiment-title a:hover {
    color: var(--neon-cyan);
}

.experiment-excerpt {
    color: var(--color-text-secondary);
    margin: var(--space-2) 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.experiment-link {
    font-family: var(--font-code);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    color: var(--neon-yellow);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.experiment-link:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(252, 252, 0, 0.5);
}

/* ========================================
   Responsive (Y2K Style)
   ======================================== */

@media (max-width: 768px) {
    :root {
        --space-12: 4rem;
        --space-8: 3rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .site-header {
        padding: var(--space-3) 0;
    }

    .site-nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(20px);
        border-left: 2px solid;
        border-image: linear-gradient(180deg, #00eeff 0%, #ff00e6 100%) 1;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-6);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1000;
        padding: var(--space-6);
    }

    .site-nav-right.menu-open {
        right: 0;
    }

    .site-nav-right ul.nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .site-nav-right ul.nav li {
        width: 100%;
    }

    .site-nav-right a {
        font-size: 1.5rem;
        padding: var(--space-3);
        display: block;
        width: 100%;
        transition: all 0.3s ease;
    }

    .site-nav-right a:hover {
        background: rgba(0, 238, 255, 0.1);
        transform: scale(1.05);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        min-height: 80vh;
        padding: var(--space-6) 0;
    }

    .hero-cat {
        height: 200px;
        max-width: 30vw;
    }

    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 40px;
        text-shadow: 0 0 30px rgba(185, 180, 141, 0.75),
                     -2px -2px 0 rgba(255, 0, 200, 1.00),
                     2px 2px 0 rgba(0, 238, 255, 1.00);
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .hero-lead {
        font-size: 0.875rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .construction-banner {
        padding: 0.5rem 0;
    }

    .construction-text {
        font-size: 0.75rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .button {
        width: 100%;
        max-width: 300px;
    }

    .section {
        padding: var(--space-8) 0;
    }

    .section-header {
        margin-bottom: var(--space-6);
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .project-card {
        border-radius: 8px;
        width: 100%;
        padding: var(--space-6) var(--space-3);
    }

    .project-image {
        min-height: 200px;
        padding: var(--space-3);
    }

    .project-image img {
        width: 70%;
    }

    .project-card-image-wrapper {
        width: 180px;
        height: 180px;
    }

    .project-card-title {
        font-size: 1.5rem;
    }

    .project-card-meta {
        font-size: 1rem;
    }

    .project-card-description {
        font-size: 0.875rem;
        max-width: 100%;
        padding: 0 var(--space-2);
    }

    .project-card-button {
        font-size: 0.875rem;
        padding: var(--space-2) var(--space-3);
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-left,
    .footer-right {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }

    .hero {
        min-height: 80vh;
    }

    .hero-cat {
        height: 150px;
        max-width: 35vw;
    }

    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .project-image img {
        width: 85%;
    }

    .project-card-image-wrapper {
        width: 150px;
        height: 150px;
    }

    .project-card-title {
        font-size: 1.25rem;
    }

    .project-card-meta {
        font-size: 0.875rem;
    }

    .project-card-description {
        font-size: 0.8125rem;
    }
}

/* ========================================
   Koenig Editor Content
   ======================================== */

/* Wide images - break out of narrow content column */
.kg-width-wide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Full-width images - full viewport width */
.kg-width-full {
    max-width: 100vw;
    margin-left: auto;
    margin-right: auto;
}

/* Koenig gallery card */
.kg-gallery-container {
    display: flex;
    flex-direction: column;
    margin: var(--space-6) auto;
    max-width: 1040px;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: var(--space-2);
}

.kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Koenig image card */
.kg-image-card {
    margin: var(--space-6) 0;
    text-align: center;
}

.kg-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Koenig embed card (YouTube, Vimeo, etc.) */
.kg-embed-card {
    margin: var(--space-8) 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.kg-embed-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
}

/* Koenig card captions */
.kg-image-card figcaption,
.kg-gallery-card figcaption {
    font-family: var(--font-code);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: var(--space-2);
    padding: 0 var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Koenig bookmark card */
.kg-bookmark-card {
    margin: var(--space-6) 0;
    width: 100%;
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    min-height: 148px;
    background: var(--color-card-bg);
    border: 2px solid var(--color-card-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.kg-bookmark-container:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.2);
}

.kg-bookmark-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: var(--space-3);
}

.kg-bookmark-title {
    font-weight: 600;
    color: var(--color-text);
}

.kg-bookmark-description {
    margin-top: var(--space-1);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    max-height: 48px;
    overflow-y: hidden;
}

.kg-bookmark-thumbnail {
    position: relative;
    min-width: 33%;
    max-height: 100%;
}

.kg-bookmark-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Koenig code card */
.kg-code-card {
    margin: var(--space-6) 0;
}

.kg-code-card pre {
    margin: 0;
    padding: var(--space-4);
    background: var(--color-card-bg);
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    border-radius: 8px;
    overflow-x: auto;
    font-family: var(--font-code);
    font-size: 0.9375rem;
    line-height: 1.6;
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.2),
                inset 0 0 20px rgba(0, 238, 255, 0.05);
}

.kg-code-card pre code {
    color: var(--neon-cyan);
}

/* Responsive Koenig */
@media (max-width: 768px) {
    .kg-width-wide,
    .kg-width-full {
        width: 100vw;
        margin-left: -5vw;
        margin-right: -5vw;
        transform: none;
    }

    .kg-bookmark-container {
        flex-direction: column;
    }

    .kg-bookmark-thumbnail {
        min-width: 100%;
        min-height: 160px;
    }
}
/* ========================================
   Post Templates (Case Study & Experiment)
   ======================================== */

/* Case Study Hero */
.case-study-hero {
    padding: var(--space-12) 0 var(--space-8);
    text-align: center;
}

.case-study-category {
    display: inline-block;
    font-family: var(--font-code);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    margin-bottom: var(--space-2);
}

.case-study-title {
    font-family: var(--font-display);
    font-size: var(--text-section-heading);
    margin-bottom: var(--space-3);
    color: #000000;
    text-shadow: var(--shadow-hero);
    line-height: 1.2;
}

.case-study-excerpt {
    font-family: var(--font-code);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neon-yellow);
    max-width: 800px;
    margin: 0 auto var(--space-4);
}

.case-study-meta {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.meta-label {
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.meta-value {
    font-family: var(--font-code);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Feature Image */
.case-study-feature-image,
.experiment-feature-image {
    margin: var(--space-8) 0;
}

.case-study-feature-image img,
.experiment-feature-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* Content */
.case-study-content,
.experiment-content,
.post-content {
    padding: var(--space-12) 0;
}

.case-study-content p,
.experiment-content p,
.post-content p {
    font-family: var(--font-code);
    font-weight: 500;
    font-size: var(--text-body-post);
    line-height: 1.333;
    color: #ffffff;
    margin-bottom: var(--space-4);
}

.case-study-content h1,
.experiment-content h1,
.post-content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--neon-pink);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.case-study-content h2,
.experiment-content h2,
.post-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--neon-pink);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.case-study-content h3,
.experiment-content h3,
.post-content h3 {
    font-family: var(--font-code);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neon-yellow);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.case-study-content ul,
.case-study-content ol,
.experiment-content ul,
.experiment-content ol,
.post-content ul,
.post-content ol {
    margin-bottom: var(--space-4);
}

/* TL;DR Section */
.tldr-section {
    padding: var(--space-12) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 238, 255, 0.05) 50%, transparent 100%);
    border-top: 2px solid rgba(0, 238, 255, 0.3);
    border-bottom: 2px solid rgba(0, 238, 255, 0.3);
}

.tldr-wrapper {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--neon-cyan);
    border-radius: 16px;
    padding: var(--space-6);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 238, 255, 0.3);
}

.tldr-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--neon-magenta);
    text-align: center;
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    font-weight: 700;
}

.tldr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.tldr-item {
    padding: var(--space-4);
    border-left: 3px solid var(--neon-magenta);
}

.tldr-label {
    font-family: var(--font-code);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-yellow);
    margin-bottom: var(--space-2);
}

.tldr-text {
    font-family: var(--font-code);
    font-weight: 500;
    font-size: var(--text-body-post);
    line-height: 1.333;
    color: #ffffff;
    margin: 0;
}

/* TLDR Content Styling (for editor-added TLDR divs) */
.TLDR {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--neon-cyan);
    border-radius: 16px;
    padding: var(--space-6);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 238, 255, 0.3);
    margin: var(--space-8) 0;
}

.TLDR h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--neon-magenta);
    text-align: center;
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    font-weight: 700;
}

.TLDR p,
.TLDR ul,
.TLDR ol {
    font-family: var(--font-code);
    font-weight: 500;
    font-size: var(--text-body-post);
    line-height: 1.333;
    color: #ffffff;
}

/* Experiment Header */
.experiment-header {
    padding: var(--space-12) 0 var(--space-8);
    text-align: center;
}

.back-link {
    display: inline-block;
    font-family: var(--font-code);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: var(--space-4);
    transition: all 0.2s ease;
}

.back-link:hover {
    text-shadow: 0 0 10px rgba(0, 238, 255, 0.6);
}

.experiment-category {
    display: inline-block;
    font-family: var(--font-code);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-yellow);
    margin-bottom: var(--space-2);
}

.experiment-title {
    font-family: var(--font-display);
    font-size: var(--text-section-heading);
    margin-bottom: var(--space-3);
    color: #000000;
    text-shadow: var(--shadow-hero);
    line-height: 1.2;
}

.experiment-excerpt {
    font-family: var(--font-code);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neon-yellow);
    max-width: 800px;
    margin: 0 auto var(--space-4);
}

.experiment-info {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-code);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Post Hero Section (Centered Layout) */
.post-hero {
    padding: var(--space-16) 0 var(--space-12);
    text-align: center;
}

.hero-content-centered {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: var(--space-4);
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #00eeff 0%, #ff00e6 100%) 1;
}

.hero-icon {
    margin-bottom: var(--space-6);
}

.hero-icon img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.post-hero .hero-title {
    font-family: var(--font-display);
    font-size: var(--text-hero-post);
    font-weight: 400;
    line-height: 110px;
    margin-bottom: var(--space-4);
    color: #000000;
    text-shadow: var(--shadow-hero);
    text-transform: none;
    letter-spacing: 0;
}

.hero-reading-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-code);
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-yellow);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
}

.reading-icon {
    font-size: 1.25rem;
}

.hero-excerpt {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   About Page Hero (Image Left, Text Right)
   ======================================== */
.about-hero {
    text-align: left;
}

.about-hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: var(--space-4);
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #00eeff 0%, #ff00e6 100%) 1;
}

.about-hero-image {
    position: relative;
}

.about-hero-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(0, 238, 255, 0.2);
}

.about-hero-content {
    padding-left: var(--space-6);
}

.about-hero .hero-title {
    font-family: var(--font-display);
    font-size: var(--text-hero-post);
    font-weight: 400;
    line-height: 56px;
    text-align: left;
    margin-bottom: var(--space-6);
    color: #000000;
    text-shadow: var(--shadow-hero);
    text-transform: none;
    letter-spacing: 0;
}

.about-hero .hero-lead {
    font-family: 'Courier New', var(--font-code);
    font-weight: 700;
    font-size: 1.333rem;
    line-height: 24px;
    letter-spacing: 0;
    text-align: left;
    color: #ffffff;
    margin: 0;
}

/* About Page Content */
.about-content {
    padding: var(--space-12) 0;
}

.about-projects {
    padding: var(--space-12) 0 var(--space-8);
}

.about-projects-title {
    font-size: 4rem;
    line-height: 48px;
    text-align: center;
    margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
    .about-hero-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .about-hero-content {
        padding-left: 0;
    }

    .about-hero .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
        text-align: center;
    }

    .about-hero .hero-lead {
        font-size: 1rem;
        line-height: 1.5;
        text-align: center;
    }

    .about-projects-title {
        font-size: 2rem;
        line-height: 1.2;
    }
}

/* ========================================
   Contact Page
   ======================================== */
.contact-form-section {
    padding: var(--space-12) 0;
}

.typeform-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(0, 238, 255, 0.2);
}

.typeform-wrapper iframe {
    display: block;
    border: none;
    width: 100%;
    min-height: 600px;
}

@media (max-width: 768px) {
    .typeform-wrapper iframe {
        min-height: 500px;
    }
}

/* Related Sections */
.related-case-studies,
.related-experiments {
    padding: var(--space-12) 0;
}

@media (max-width: 768px) {
    .case-study-title,
    .experiment-title {
        font-size: 2rem;
    }

    .case-study-excerpt,
    .experiment-excerpt {
        font-size: 1rem;
    }

    .case-study-meta,
    .experiment-info {
        flex-direction: column;
        gap: var(--space-3);
    }

    .tldr-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Scroll Animations
   ======================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out,
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}
