/* ========================================
   CSS RESET & BASE
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #0a0a14;
    color: #e8edf3;
    line-height: 1.6;
    font-size: 16px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4 {
    color: #ffffff;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    color: #b8c5d6;
    margin-bottom: 1rem;
}

a {
    color: #6ab0ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #8ec5ff;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Wider container for hero two-panel layout */
.hero .container {
    max-width: 1050px;
}

section {
    padding: 4rem 0;
}

.section-alt {
    background-color: #0d1a2d;
}

/* Section Background Variations - Break up uniform midsection */
.section-gradient-top {
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(74, 144, 217, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(106, 176, 255, 0.05) 0%, transparent 40%),
        #0d1a2d;
}

.section-gradient-bottom {
    background: 
        radial-gradient(ellipse at 80% 100%, rgba(74, 144, 217, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 20%, rgba(106, 176, 255, 0.04) 0%, transparent 35%),
        #0d1a2d;
}

.section-gradient-center {
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(74, 144, 217, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, #0d1a2d 0%, #0a1420 50%, #0d1a2d 100%);
}

/* Decorative section accents */
.section-accent-lines {
    position: relative;
}

.section-accent-lines::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        repeating-linear-gradient(
            120deg,
            transparent,
            transparent 100px,
            rgba(74, 144, 217, 0.02) 100px,
            rgba(74, 144, 217, 0.02) 101px
        );
    pointer-events: none;
}

.section-accent-glow {
    position: relative;
}

.section-accent-glow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(74, 144, 217, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.section-accent-glow > .container {
    position: relative;
    z-index: 1;
}

/* Section divider - subtle top border glow */
.section-divider-top {
    border-top: 1px solid rgba(74, 144, 217, 0.15);
    box-shadow: inset 0 1px 20px rgba(74, 144, 217, 0.05);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff, #e8edf3);
    color: #0a0a14;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffffff, #ffffff);
    color: #0a0a14;
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #e8edf3;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.btn-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 80% 80%, rgba(74, 144, 217, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 20%, rgba(106, 176, 255, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, #0a0a14 0%, #0d1a2d 50%, #0a0a14 100%);
}

.hero::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: 
        repeating-linear-gradient(
            -30deg,
            transparent,
            transparent 80px,
            rgba(74, 144, 217, 0.03) 80px,
            rgba(74, 144, 217, 0.03) 81px
        );
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 10%;
    left: -20%;
    width: 140%;
    height: 200px;
    background: 
        radial-gradient(ellipse at center, rgba(74, 144, 217, 0.1) 0%, transparent 70%);
    transform: rotate(-5deg);
    pointer-events: none;
}

/* WebGPU Canvas */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* When WebGPU is active, hide CSS pseudo-elements */
.hero.webgpu-active::before,
.hero.webgpu-active::after {
    display: none;
}

.hero.webgpu-active {
    background: #0a0a14;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2.5rem 2.5rem 3rem;
    background: rgba(10, 10, 20, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 640px;
    flex: 1;
}

/* Two-panel hero layout */
.hero-two-panel {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    width: 100%;
    max-width: 1000px;
}

/* Hero Navigation Panel */
.hero-nav {
    position: relative;
    z-index: 1;
    padding: 2rem;
    background: rgba(10, 10, 20, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    min-width: 220px;
    display: flex;
    flex-direction: column;
}

.hero-nav-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6a7a8a;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(74, 144, 217, 0.2);
}

.hero-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-nav-list li a {
    display: block;
    padding: 0.75rem 1rem;
    color: #b8c5d6;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.hero-nav-list li a:hover {
    background: rgba(74, 144, 217, 0.15);
    color: #ffffff;
    transform: translateX(4px);
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
    .hero-two-panel {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-nav {
        min-width: unset;
    }
    
    .hero-nav-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .hero-nav-list li a {
        padding: 0.6rem 0.75rem;
        font-size: 0.875rem;
        text-align: center;
    }
    
    .hero-nav-list li a:hover {
        transform: none;
    }
}

.hero h1 {
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #e8edf3 50%, #b8c5d6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.hero-subheadline {
    font-size: 1.2rem;
    color: #8ec5ff;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.01em;
}

.hero-intro {
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 2rem;
    color: #c8d5e6;
    line-height: 1.7;
}

/* ========================================
   BIO SECTION
   ======================================== */
.bio-intro {
    color: #b8c5d6;
    margin-bottom: 1.5rem;
}

.featured-intro {
    color: #c8d5e6;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.bio-list {
    list-style: none;
    margin-bottom: 2rem;
}

.bio-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #b8c5d6;
    border-bottom: 1px solid rgba(74, 144, 217, 0.1);
}

.bio-list li:last-child {
    border-bottom: none;
}

.bio-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #4a90d9, #6ab0ff);
    border-radius: 50%;
}

.bio-list li strong {
    color: #ffffff;
}

.bio-summary {
    padding: 1.5rem;
    background: rgba(74, 144, 217, 0.05);
    border-left: 3px solid #4a90d9;
    border-radius: 0 6px 6px 0;
}

.bio-summary p {
    margin-bottom: 0;
    font-style: italic;
}

/* ========================================
   AS SEEN ON SECTION
   ======================================== */
/* VHS Section */
.vhs-section {
    position: relative;
    overflow: hidden;
}

#vhs-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.vhs-section .container {
    position: relative;
    z-index: 1;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.logo-item {
    position: relative;
    overflow: hidden;
    background: rgba(20, 30, 50, 0.8);
    border: 2px solid rgba(74, 144, 217, 0.3);
    border-radius: 12px;
    aspect-ratio: 16 / 10;
    transition: all 0.3s ease;
}

.logo-item:hover {
    border-color: #6ab0ff;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(74, 144, 217, 0.25);
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    transform: scale(1.03);
}

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 217, 0.02);
    border: 1px dashed rgba(74, 144, 217, 0.15);
    border-radius: 12px;
    color: #2a3a4a;
    font-size: 0.75rem;
    text-align: center;
    aspect-ratio: 16 / 10;
    transition: all 0.2s ease;
}

.logo-placeholder:hover {
    border-color: rgba(74, 144, 217, 0.3);
    background: rgba(74, 144, 217, 0.04);
}

/* ========================================
   TALKS SECTION
   ======================================== */
.talks-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.talk-card {
    padding: 1.5rem;
    background: rgba(74, 144, 217, 0.05);
    border: 1px solid rgba(74, 144, 217, 0.15);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.talk-card:hover {
    border-color: #4a90d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 144, 217, 0.1);
}

.talk-card h3 {
    color: #6ab0ff;
}

.talk-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.talks-tagline {
    margin-top: 2rem;
    text-align: center;
    font-style: italic;
    color: #6a7a8a;
}

/* ========================================
   FEATURED TALK SECTION
   ======================================== */
.featured-talk {
    background: 
        radial-gradient(ellipse at 50% 100%, rgba(74, 144, 217, 0.1) 0%, transparent 60%),
        #0d1a2d;
}

.featured-header {
    margin-bottom: 2rem;
}

.featured-header h2 {
    color: #6ab0ff;
}

.featured-subheading {
    font-size: 1.1rem;
    color: #8ec5ff;
    margin-top: 0.5rem;
}

.featured-promises {
    list-style: none;
    margin-bottom: 2rem;
}

.featured-promises li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    color: #b8c5d6;
    border-bottom: 1px solid rgba(74, 144, 217, 0.1);
}

.featured-promises li:last-child {
    border-bottom: none;
}

.featured-promises li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #6ab0ff;
    font-weight: bold;
}

.featured-note {
    font-size: 0.875rem;
    color: #6a7a8a;
    margin-top: 1rem;
    font-style: italic;
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========================================
   RESEARCH SECTION - Lab/Experiment Aesthetic
   ======================================== */
#research {
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(106, 176, 255, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 100% 100%, rgba(80, 200, 120, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 170, 100, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #050810 0%, #0a1018 50%, #050810 100%);
    border-top: 1px solid rgba(106, 176, 255, 0.2);
    border-bottom: 1px solid rgba(106, 176, 255, 0.2);
    position: relative;
    overflow: hidden;
}

#research::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(106, 176, 255, 0.015) 50px,
            rgba(106, 176, 255, 0.015) 51px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(106, 176, 255, 0.015) 50px,
            rgba(106, 176, 255, 0.015) 51px
        );
    pointer-events: none;
}

#research::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        conic-gradient(
            from 0deg at 50% 50%,
            transparent 0deg,
            rgba(106, 176, 255, 0.03) 60deg,
            transparent 120deg,
            rgba(80, 200, 120, 0.02) 180deg,
            transparent 240deg,
            rgba(255, 170, 100, 0.02) 300deg,
            transparent 360deg
        );
    animation: research-rotate 60s linear infinite;
    pointer-events: none;
}

@keyframes research-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#research > .container {
    position: relative;
    z-index: 1;
}

#research h2 {
    background: linear-gradient(135deg, #6ab0ff 0%, #50c878 50%, #ffaa64 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#research > .container > p {
    color: #8ec5ff;
}

.research-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}

.research-card {
    display: block;
    padding: 1.5rem;
    background: rgba(10, 15, 25, 0.8);
    border: 1px solid rgba(106, 176, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.research-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(106, 176, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.research-card:hover {
    border-color: #6ab0ff;
    background: rgba(15, 25, 40, 0.9);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 32px rgba(106, 176, 255, 0.15),
        0 0 0 1px rgba(106, 176, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.research-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.research-card h3 {
    color: #ffffff;
    margin-bottom: 0;
}

.research-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    white-space: nowrap;
}

.tag-progress {
    background: rgba(106, 176, 255, 0.15);
    color: #6ab0ff;
}

.tag-published {
    background: rgba(80, 200, 120, 0.15);
    color: #50c878;
}

.tag-concept {
    background: rgba(255, 170, 100, 0.15);
    color: #ffaa64;
}

.tag-paused {
    background: rgba(150, 150, 170, 0.15);
    color: #9696aa;
}

.research-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #8a9aaa;
}

/* ========================================
   LEADERSHIP OS SECTION
   ======================================== */
.leadership-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}

.leadership-disclaimer {
    font-size: 0.9rem;
    color: #8a9aaa;
    font-style: italic;
    margin-top: 0.5rem;
}

.leadership-card {
    display: block;
    padding: 1.5rem;
    background: rgba(74, 144, 217, 0.03);
    border: 1px solid rgba(74, 144, 217, 0.12);
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.leadership-card:hover {
    border-color: #4a90d9;
    background: rgba(74, 144, 217, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 144, 217, 0.1);
}

.leadership-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.leadership-card:hover h3 {
    color: #6ab0ff;
}

.leadership-card p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #8a9aaa;
}

.leadership-card .card-link {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6ab0ff;
    transition: all 0.2s ease;
}

.leadership-card:hover .card-link {
    color: #8ec5ff;
    transform: translateX(4px);
}

/* Leadership OS Article Pages */
.leadership-article {
    padding: 2rem 0 4rem;
}

.leadership-article .article-content h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.leadership-article .article-content section:first-child h2 {
    margin-top: 0;
}

.leadership-article .article-content p {
    color: #b8c5d6;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.leadership-article .article-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.leadership-article .article-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #b8c5d6;
}

.leadership-article .article-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #6ab0ff;
}

.leadership-article .article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.leadership-article .article-content ol li {
    margin-bottom: 0.5rem;
    color: #b8c5d6;
    padding-left: 0.5rem;
}

.leadership-article .article-content ol li::marker {
    color: #6ab0ff;
    font-weight: 600;
}

.leadership-article .article-content blockquote {
    border-left: 3px solid #6ab0ff;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #ffffff;
    font-size: 1.1rem;
}

.leadership-article .article-content strong {
    color: #ffffff;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-columns {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.cta-column {
    padding: 2rem;
    background: rgba(74, 144, 217, 0.05);
    border: 1px solid rgba(74, 144, 217, 0.15);
    border-radius: 8px;
}

.cta-column h3 {
    color: #6ab0ff;
    margin-bottom: 1rem;
}

.cta-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.cta-list li {
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: #b8c5d6;
    font-size: 0.95rem;
}

.cta-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4a90d9;
}

.cta-column .btn {
    width: 100%;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(74, 144, 217, 0.1);
}

.footer-copyright {
    color: #6a7a8a;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #4a6a8a;
    font-size: 0.8rem;
    font-style: italic;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet and up */
@media (min-width: 640px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .btn-group {
        flex-direction: row;
        justify-content: center;
    }

    .btn {
        width: auto;
    }

    .logo-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .talks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-column .btn {
        width: auto;
    }
}

/* ========================================
   RESEARCH ARTICLE PAGES
   ======================================== */
.page-header {
    padding: 1rem 0;
    background: #0a0a14;
    border-bottom: 1px solid rgba(74, 144, 217, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo {
    font-weight: 600;
    font-size: 1.125rem;
    color: #ffffff;
}

.nav-logo:hover {
    color: #6ab0ff;
}

.nav-back {
    font-size: 0.875rem;
    color: #6ab0ff;
}

.nav-back:hover {
    color: #8ec5ff;
}

.research-article {
    padding: 3rem 0 4rem;
    min-height: calc(100vh - 200px);
}

.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(74, 144, 217, 0.15);
}

.article-header .research-tag,
.article-header .talk-event-tag {
    margin-bottom: 1rem;
}

.talk-event-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    background: rgba(142, 197, 255, 0.15);
    color: #8ec5ff;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #6ab0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-subtitle {
    font-size: 1.25rem;
    color: #8ec5ff;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.article-meta {
    font-size: 0.875rem;
    color: #6a7a8a;
}

.article-content {
    max-width: 720px;
}

.article-content section {
    padding: 0;
    margin-bottom: 2.5rem;
}

.article-content h2 {
    font-size: 1.5rem;
    color: #6ab0ff;
    margin-bottom: 1rem;
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.125rem;
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-content li {
    color: #b8c5d6;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(74, 144, 217, 0.05);
    border-left: 3px solid #4a90d9;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #8ec5ff;
}

.article-content blockquote p {
    margin-bottom: 0;
    color: inherit;
}

.article-content code {
    background: rgba(74, 144, 217, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 0.9em;
    color: #6ab0ff;
}

.article-content pre {
    background: rgba(74, 144, 217, 0.08);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(74, 144, 217, 0.15);
}

.article-cta {
    padding: 2rem;
    background: rgba(74, 144, 217, 0.05);
    border: 1px solid rgba(74, 144, 217, 0.15);
    border-radius: 8px;
    text-align: center;
}

.article-cta h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.article-cta p {
    color: #8a9aaa;
    margin-bottom: 1.5rem;
}

.article-cta .btn-group {
    margin-top: 0;
}

/* Article Navigation (Prev/Next) */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(74, 144, 217, 0.15);
}

.article-nav-link {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
    background: rgba(74, 144, 217, 0.05);
    border: 1px solid rgba(74, 144, 217, 0.15);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    max-width: 48%;
}

.article-nav-link:hover {
    background: rgba(74, 144, 217, 0.1);
    border-color: rgba(74, 144, 217, 0.3);
    transform: translateY(-2px);
}

.article-nav-link.prev {
    align-items: flex-start;
}

.article-nav-link.next {
    align-items: flex-end;
    margin-left: auto;
}

.article-nav-label {
    font-size: 0.85rem;
    color: #6ab0ff;
    margin-bottom: 0.25rem;
}

.article-nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

@media (max-width: 600px) {
    .article-nav {
        flex-direction: column;
    }
    
    .article-nav-link {
        max-width: 100%;
    }
    
    .article-nav-link.next {
        align-items: flex-start;
    }
}

.site-footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(74, 144, 217, 0.1);
    background: #0a0a14;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Desktop */
@media (min-width: 900px) {
    .container {
        max-width: 900px;
    }

    .article-header h1 {
        font-size: 3rem;
    }

    section {
        padding: 5rem 0;
    }

    .hero h1 {
        font-size: 4.5rem;
    }

    .research-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .talks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   LIGHTBOX / IMAGE MODAL
   ======================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    padding: 0.5rem;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ========================================
   HEADSHOT & ABOUT LAYOUT
   ======================================== */
.about-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-content .bio-list {
    margin-bottom: 0;
}

.headshot {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(74, 144, 217, 0.4);
    box-shadow: 
        0 0 30px rgba(74, 144, 217, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.headshot:hover {
    border-color: #6ab0ff;
    box-shadow: 
        0 0 40px rgba(106, 176, 255, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

/* Mobile: stack vertically */
@media (max-width: 600px) {
    .about-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .about-content h2 {
        text-align: center;
    }
    
    .about-content .bio-list li {
        text-align: left;
    }
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-card {
    padding: 1.75rem;
    background: rgba(74, 144, 217, 0.04);
    border: 1px solid rgba(74, 144, 217, 0.12);
    border-left: 3px solid #4a90d9;
    border-radius: 0 8px 8px 0;
    margin: 0;
    transition: all 0.2s ease;
}

.testimonial-card:hover {
    background: rgba(74, 144, 217, 0.08);
    border-color: rgba(74, 144, 217, 0.2);
    border-left-color: #6ab0ff;
    transform: translateX(4px);
}

.testimonial-quote {
    font-size: 1.05rem;
    font-style: italic;
    color: #c8d5e6;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.testimonial-cite {
    display: block;
    font-size: 0.875rem;
    font-style: normal;
    color: #6a7a8a;
}

/* ========================================
   TEXT BUILDER EFFECT
   ======================================== */

/* Text Builder Container */
.text-builder-container {
    position: relative;
    width: 100%;
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
}

#text-builder-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 120px;
    z-index: 2;
    pointer-events: none;
}

.text-builder-container h1 {
    position: relative;
    z-index: 1;
    margin-bottom: 0; /* Override the hero h1 margin since container handles it */
}

/* Subtle scanline overlay on sections */
.section-alt::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 0;
}

.section-alt {
    position: relative;
}

.section-alt .container {
    position: relative;
    z-index: 1;
}

/* VHS chromatic aberration on talk card hover */
@keyframes chromatic-shift {
    0%, 100% {
        text-shadow: none;
    }
    50% {
        text-shadow: 
            -1px 0 rgba(255, 0, 110, 0.5),
            1px 0 rgba(0, 240, 255, 0.5);
    }
}

.talk-card:hover h3 {
    animation: chromatic-shift 0.3s ease-out;
}

/* Research card subtle glitch on hover */
.research-card:hover h3 {
    animation: chromatic-shift 0.2s ease-out;
}

/* Random glitch flash for featured section */
@keyframes flash-glitch {
    0%, 90%, 100% {
        opacity: 1;
        filter: none;
    }
    91% {
        opacity: 0.95;
        filter: hue-rotate(10deg);
    }
    92% {
        opacity: 1;
        filter: hue-rotate(-5deg);
    }
    93% {
        opacity: 0.98;
        filter: none;
    }
}

.featured-talk {
    animation: flash-glitch 12s ease-in-out infinite;
}

/* Jitter effect on CTA buttons occasionally */
@keyframes btn-jitter {
    0%, 97%, 100% {
        transform: translateY(0);
    }
    97.5% {
        transform: translate(-1px, 1px);
    }
    98% {
        transform: translate(1px, -1px);
    }
    98.5% {
        transform: translate(-1px, 0);
    }
    99% {
        transform: translate(1px, 1px);
    }
}

.btn-primary {
    animation: btn-jitter 10s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE - Testimonials & Headshot
   ======================================== */
@media (min-width: 640px) {
    .testimonials-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .headshot {
        width: 180px;
        height: 180px;
    }
}

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

/* ========================================
   PRINT STYLES
   Black & white, printer-friendly output
   ======================================== */
@media print {
    /* Reset all colors to black text on white background */
    *, *::before, *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
        -webkit-text-fill-color: #000 !important;
        filter: none !important;
        animation: none !important;
        transition: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
        line-height: 1.5;
    }

    /* Remove all decorative gradients and backgrounds */
    .hero,
    .hero::before,
    .hero::after,
    .section-alt,
    .section-alt::after,
    .section-gradient-top,
    .section-gradient-bottom,
    .section-gradient-center,
    .section-accent-lines::before,
    .section-accent-glow::after,
    #research,
    #research::before,
    #research::after,
    .featured-talk,
    .vhs-section {
        background: #fff !important;
    }

    /* Hide WebGPU/VHS canvas elements - they won't print anyway */
    #hero-canvas,
    #vhs-canvas,
    #text-builder-canvas,
    canvas {
        display: none !important;
    }

    /* Hide navigation buttons that don't make sense in print */
    .btn-group,
    .btn,
    .nav-back,
    .lightbox-modal {
        display: none !important;
    }

    /* Keep nav logo visible for branding */
    .nav-logo {
        display: block !important;
    }

    /* Remove sticky positioning */
    .page-header {
        position: static !important;
        border-bottom: 1px solid #000 !important;
    }

    /* Make containers full width */
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Headings */
    h1, h2, h3, h4 {
        color: #000 !important;
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    h1 {
        font-size: 24pt;
    }

    h2 {
        font-size: 18pt;
        margin-top: 24pt;
    }

    h3 {
        font-size: 14pt;
    }

    /* Links - show URL in print */
    a {
        color: #000 !important;
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }

    /* Don't show URL for internal/anchor links */
    a[href^="#"]::after,
    a[href^="/"]::after,
    .nav-logo::after {
        content: none !important;
    }

    /* Paragraphs and text */
    p, li {
        color: #000 !important;
        orphans: 3;
        widows: 3;
    }

    /* Lists */
    .bio-list li::before,
    .featured-promises li::before,
    .leadership-article .article-content ul li::before {
        color: #000 !important;
        background: #000 !important;
    }

    /* Blockquotes */
    blockquote,
    .article-content blockquote {
        border-left: 2px solid #000 !important;
        padding-left: 1rem;
        font-style: italic;
    }

    /* Cards - remove backgrounds, add borders */
    .talk-card,
    .research-card,
    .leadership-card,
    .testimonial-card,
    .cta-column,
    .article-cta,
    .bio-summary {
        background: #fff !important;
        border: 1px solid #000 !important;
        padding: 1rem;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }

    /* Research tags */
    .research-tag,
    .talk-event-tag {
        border: 1px solid #000 !important;
        background: #fff !important;
    }

    /* Hero section adjustments */
    .hero {
        min-height: auto !important;
        padding: 2rem 0;
    }

    .hero-content {
        background: #fff !important;
        border: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Sections - reduce padding for print */
    section {
        padding: 1.5rem 0;
    }

    /* Images */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    .headshot {
        border: 1px solid #000 !important;
        width: 100px !important;
        height: 100px !important;
    }

    /* Logo grid */
    .logo-grid {
        display: block;
    }

    .logo-item {
        border: 1px solid #000 !important;
        margin-bottom: 0.5rem;
    }

    /* Grids - single column for print */
    .talks-grid,
    .research-grid,
    .leadership-grid,
    .testimonials-grid,
    .cta-columns {
        display: block !important;
    }

    /* Code blocks */
    code, pre {
        background: #f5f5f5 !important;
        border: 1px solid #ccc !important;
        font-size: 10pt;
    }

    /* Footer */
    footer,
    .site-footer {
        border-top: 1px solid #000 !important;
        margin-top: 2rem;
        padding-top: 1rem;
    }

    /* Page breaks */
    .article-header,
    .article-content section {
        page-break-inside: avoid;
    }

    /* Hide decorative elements */
    .text-builder-container h1 {
        position: static !important;
    }

    /* About layout for print */
    .about-layout {
        display: block;
    }
}

/* ========================================
   AGENTIC RULES CARDS
   ======================================== */
.agentic-rules {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.rule-card {
    background: linear-gradient(135deg, rgba(106, 176, 255, 0.08) 0%, rgba(74, 144, 217, 0.04) 100%);
    border: 1px solid rgba(106, 176, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rule-card:hover {
    border-color: rgba(106, 176, 255, 0.35);
    box-shadow: 0 4px 20px rgba(106, 176, 255, 0.1);
}

.rule-card[open] {
    border-color: rgba(106, 176, 255, 0.4);
    background: linear-gradient(135deg, rgba(106, 176, 255, 0.12) 0%, rgba(74, 144, 217, 0.06) 100%);
}

.rule-card summary {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    list-style: none;
}

.rule-card summary::-webkit-details-marker {
    display: none;
}

.rule-card summary::marker {
    display: none;
}

.rule-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4a90d9 0%, #6ab0ff 100%);
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.rule-content {
    flex: 1;
}

.rule-content h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.rule-card:hover .rule-content h4 {
    color: #6ab0ff;
}

.rule-question {
    color: #b8c5d6;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.rule-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 6px;
    position: relative;
}

.rule-icon::before,
.rule-icon::after {
    content: '';
    position: absolute;
    background: #6ab0ff;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.rule-icon::before {
    width: 12px;
    height: 2px;
}

.rule-icon::after {
    width: 2px;
    height: 12px;
}

.rule-card[open] .rule-icon::after {
    transform: rotate(90deg);
}

.rule-rationale {
    padding: 0 1.25rem 1.25rem 4.5rem;
    animation: slideDown 0.3s ease;
}

.rule-rationale p {
    color: #8fa8c4;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(106, 176, 255, 0.1);
}

.rule-rationale p.rule-narrative {
    color: #d0dce8;
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: none;
    padding-top: 0;
    margin-bottom: 1rem;
}

.rule-rationale p.rule-narrative strong {
    color: #6ab0ff;
}

.rule-rationale p.rule-formal {
    color: #7a8fa6;
    font-size: 0.85rem;
    font-style: italic;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(106, 176, 255, 0.15);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .rule-card summary {
        padding: 1rem;
        gap: 0.75rem;
    }

    .rule-number {
        min-width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .rule-content h4 {
        font-size: 1rem;
    }

    .rule-question {
        font-size: 0.9rem;
    }

    .rule-rationale {
        padding: 0 1rem 1rem 3.5rem;
    }
}
