:root {
    /* Palette from Landing Page (V3 Adaptation) */
    --gold: #b8960c;
    --gold-light: #d4aa1a;
    --navy: #0c2340;
    --navy-light: #162d50;
    --bg-gradient: linear-gradient(180deg, #f0f4ff 0%, #e8f0fe 50%, #f0f4ff 100%);

    /* Mapping V2 variables to V3 Light Theme */
    --dark-bg: #f8faff;
    --dark-bg-deep: #f0f4ff;
    --dark-card: rgba(255, 255, 255, 0.45);
    --dark-border: rgba(12, 35, 64, 0.1);
    --dark-text: #0c2340;
    --dark-text-secondary: rgba(12, 35, 64, 0.8);
    --dark-text-tertiary: rgba(12, 35, 64, 0.5);
    --accent-blue: #3b82f6;
    --accent-teal: #14b8a6;
    --accent-gold: var(--gold);
    --danger: #ef4444;
    --gradient-hero: var(--bg-gradient);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
}

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

html,
body {
    background: var(--dark-bg-deep);
    color: var(--dark-text);
    font-family: 'Cormorant Garamond', serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    letter-spacing: -0.01em;
    height: 100vh;
    height: 100dvh;
}

/* Landing Page Noise Texture */
body::after {
    content: '';
    position: fixed;
    inset: -10%;
    width: 120%;
    height: 120%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.35;
    background-image: url('textures/noise.png');
    background-size: 100px 100px;
    background-repeat: repeat;
}

/* Presentation Container */
.deck {
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    background: var(--gradient-hero) fixed;
}

/* Slide Styling */
.slide {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    position: relative;
    border-bottom: 1px solid rgba(12, 35, 64, 0.05);
}

/* Fixed Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(240, 244, 255, 0.9) 0%, transparent 100%);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
}

.header-logo img {
    width: 32px;
    height: 32px;
}

.header-brand {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--navy);
}

/* Fixed Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    pointer-events: none;
    background: linear-gradient(to top, rgba(240, 244, 255, 0.9) 0%, transparent 100%);
}

.footer-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dark-text-tertiary);
    opacity: 0.8;
}

.footer-disclaimer {
    font-size: 11px;
    color: var(--dark-text-tertiary);
    opacity: 0.8;
    text-align: right;
    max-width: 500px;
}

/* Slide Content Architecture */
.slide-meta {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'DM Mono', monospace;
}

.slide-meta::after {
    content: "";
    height: 1px;
    width: 48px;
    background: var(--gold);
    opacity: 0.3;
}

h1 {
    font-size: 96px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    max-width: 1000px;
    text-transform: uppercase;
}

h2 {
    font-size: 64px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 48px;
    max-width: 1100px;
    text-transform: uppercase;
}

.lead-text {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--dark-text-secondary);
    line-height: 1.6;
    max-width: 850px;
    font-weight: 300;
    letter-spacing: -0.01em;
}

/* Institutional Card Design - Glassmorphism Adaptation */
.institutional-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 48px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 0 0 1px rgba(0, 0, 0, 0.02),
        0 8px 32px rgba(0, 0, 0, 0.06);
    animation: slideUp 0.8s ease backwards;
}

.footnote {
    position: absolute;
    bottom: 40px;
    left: 10%;
    font-size: 11px;
    color: var(--dark-text-tertiary);
    opacity: 0.6;
    max-width: 80%;
    line-height: 1.5;
}

.highlight-num {
    color: var(--navy);
    font-weight: 800;
}

.accent-blue {
    color: var(--gold);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.card-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--dark-text-tertiary);
    margin-bottom: 24px;
    display: block;
}

/* Detail/Manager Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 64px;
}

.detail-item {
    padding: 32px;
    border: 1px solid var(--dark-border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.3s ease;
}

.detail-item:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
}

.detail-top {
    font-size: 11px;
    color: var(--dark-text-tertiary);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.detail-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    display: block;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.detail-meta-label {
    font-size: 9px;
    color: var(--dark-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    display: block;
}

.detail-meta-val {
    font-size: 16px;
    font-weight: 600;
    font-family: 'DM Mono', monospace;
    color: var(--gold);
}

/* Statistics */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 64px;
}

.stat-item {
    border-left: 1px solid rgba(12, 35, 64, 0.1);
    padding-left: 32px;
}

.stat-val {
    font-size: 80px;
    font-weight: 700;
    font-family: 'DM Mono', monospace;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 12px;
    color: var(--dark-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
}

/* Solution Slide (Slide 6) */
.solution-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
    margin-top: 48px;
}

.solution-pillars {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pillar-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--dark-border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.pillar-item:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
}

.pillar-num {
    font-family: 'DM Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    margin-top: 2px;
}

.pillar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pillar-desc {
    font-size: 14px;
    color: var(--dark-text-secondary);
    line-height: 1.6;
}

.solution-visual {
    padding: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--dark-border);
}

/* Comparison (Slide 6) */
.comp-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.comp-col h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--dark-text-tertiary);
    margin-bottom: 32px;
    border-bottom: 1px solid var(--dark-border);
    padding-bottom: 12px;
    font-weight: 700;
}

.comp-item {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--dark-text-secondary);
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.comp-item::before {
    content: "—";
    color: var(--accent-blue);
    font-weight: 800;
}

/* Team Cards */
.team-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.team-card {
    padding: 56px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.team-name {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    color: var(--navy);
}

.team-role {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: 0.2em;
    font-family: 'DM Mono', monospace;
}

.team-bio {
    font-size: 18px;
    color: var(--dark-text-secondary);
    line-height: 1.7;
}

/* Navigation Dots */
.nav-dots {
    position: fixed;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}

.dot {
    width: 6px;
    height: 6px;
    border: 1px solid rgba(12, 35, 64, 0.2);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
}

/* Larger touch target for mobile accessibility */
.dot::before {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: 50%;
}

.dot.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(2);
}

/* Distribution Lists */
.dist-list {
    list-style: none;
    margin-top: 32px;
}

.dist-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--dark-text-secondary);
}

.dist-icon {
    color: var(--accent-blue);
    font-weight: 800;
}

/* Transitions */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide.active .fade-in {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

/* Responsive Alignment */
@media (max-width: 1200px) {
    h1 {
        font-size: 64px;
    }

    h2 {
        font-size: 48px;
    }

    .slide {
        padding: 0 5%;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    h1 {
        font-size: 56px;
        margin-bottom: 32px;
    }

    h2 {
        font-size: 42px;
        margin-bottom: 36px;
    }

    .lead-text {
        font-size: 20px;
    }

    .stat-val {
        font-size: 56px;
    }

    .stat-grid {
        gap: 32px;
    }

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

    .solution-grid {
        gap: 40px;
    }

    .team-card {
        padding: 40px;
    }

    .team-name {
        font-size: 28px;
    }

    .team-bio {
        font-size: 16px;
    }

    .nav-dots {
        right: 32px;
    }

    .institutional-card {
        padding: 36px;
    }

    .comp-wrap {
        gap: 48px;
    }
}

/* Tablet Portrait / Large Phones */
@media (max-width: 768px) {
    .header {
        height: 60px;
        padding: 0 4%;
    }

    .header-brand {
        font-size: 12px;
        letter-spacing: 0.15em;
    }

    .header-logo img {
        width: 28px;
        height: 28px;
    }

    .slide {
        padding: 0 24px;
        justify-content: flex-start;
        padding-top: 80px;
        padding-bottom: 60px;
        overflow-y: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }

    h1 {
        font-size: 40px;
        margin-bottom: 24px;
    }

    h2 {
        font-size: 32px;
        margin-bottom: 28px;
    }

    .lead-text {
        font-size: 18px;
        line-height: 1.6;
    }

    .slide-meta {
        font-size: 9px;
        margin-bottom: 20px;
        letter-spacing: 0.15em;
    }

    .card-label {
        letter-spacing: 0.15em;
    }

    .lead-text {
        line-height: 1.7;
    }

    .team-bio {
        line-height: 1.7;
    }

    /* Reduce stat values for better mobile fit */
    .stat-val {
        font-size: 42px;
    }

    .stat-label {
        font-size: 10px;
        letter-spacing: 0.1em;
    }

    .stat-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 40px;
    }

    .stat-val {
        font-size: 48px;
    }

    .stat-item {
        padding-left: 24px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
    }

    .detail-item {
        padding: 24px;
    }

    .detail-val {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .comp-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .comp-item {
        font-size: 16px;
    }

    .team-wrap {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .team-card {
        padding: 32px;
    }

    .team-name {
        font-size: 24px;
    }

    .team-role {
        font-size: 10px;
        margin-bottom: 24px;
    }

    .team-bio {
        font-size: 15px;
    }

    .solution-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pillar-item {
        padding: 20px;
        gap: 16px;
    }

    .pillar-title {
        font-size: 16px;
    }

    .pillar-desc {
        font-size: 13px;
    }

    .institutional-card {
        padding: 24px;
    }

    .nav-dots {
        right: 16px;
        gap: 14px;
        background: rgba(0, 0, 0, 0.3);
        padding: 12px 8px;
        border-radius: 20px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .dot::before {
        inset: -14px;
    }

    .footnote {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 32px;
        font-size: 10px;
    }

    /* Table scroll wrapper with indicator */
    .institutional-card {
        position: relative;
    }

    .institutional-card table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--dark-border) transparent;
    }

    .institutional-card table::-webkit-scrollbar {
        height: 6px;
    }

    .institutional-card table::-webkit-scrollbar-track {
        background: transparent;
    }

    .institutional-card table::-webkit-scrollbar-thumb {
        background: var(--dark-border);
        border-radius: 3px;
    }

    /* Scroll hint indicator */
    .institutional-card::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, rgba(10, 14, 20, 0.8));
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    /* Hide indicator when card doesn't have table or is scrolled */
    .institutional-card:not(:has(table))::after {
        display: none;
    }

    .institutional-card th,
    .institutional-card td {
        padding: 16px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Override inline grid styles per slide */

    /* Slide 2: Institutional Adoption cards */
    #slide-2>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    #slide-2>div[style*="grid-template-columns"]>div {
        padding: 24px !important;
    }

    /* Slide 5: 3-column problem grid to single column */
    #slide-5 div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    #slide-5 div[style*="padding: 28px"] {
        padding: 20px !important;
    }

    #slide-5 p[style*="font-size: 24px"] {
        font-size: 20px !important;
    }

    /* Slide 6: Before/After Foundation comparison */
    #slide-6>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    #slide-6 div[style*="padding: 40px"] {
        padding: 24px !important;
    }

    #slide-6 p[style*="font-size: 22px"] {
        font-size: 18px !important;
    }

    #slide-6 p[style*="font-size: 48px"] {
        font-size: 36px !important;
    }

    #slide-6 p[style*="font-size: 28px"] {
        font-size: 20px !important;
    }

    /* Slide 8: Architecture diagram grid */
    #slide-8>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    #slide-8 h2[style*="font-size: 56px"] {
        font-size: 32px !important;
    }

    #slide-8 span[style*="font-size: 22px"] {
        font-size: 16px !important;
    }

    #slide-8 p[style*="font-size: 26px"] {
        font-size: 18px !important;
    }

    #slide-8 p[style*="font-size: 17px"] {
        font-size: 14px !important;
    }

    #slide-8 svg {
        max-width: 100% !important;
        max-height: 40vh !important;
    }

    /* Slide 10: Competitive Edge comparison */
    #slide-10>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    #slide-10 div[style*="padding: 40px"] {
        padding: 24px !important;
    }

    /* Slide 11: Moat cards */
    #slide-11>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    #slide-11 div[style*="padding: 40px"] {
        padding: 24px !important;
    }

    #slide-11 p[style*="font-size: 24px"] {
        font-size: 20px !important;
    }

    /* Slide 12: Traction cards */
    #slide-12>div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    #slide-12 div[style*="padding: 40px"] {
        padding: 24px !important;
    }

    #slide-12 div[style*="padding: 32px"] {
        padding: 20px !important;
    }

    #slide-12 p[style*="font-size: 22px"] {
        font-size: 18px !important;
    }

    /* Slide 13: GTM phases */
    #slide-13 div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    #slide-13 div[style*="padding: 32px"] {
        padding: 20px !important;
    }

    #slide-13 p[style*="font-size: 28px"] {
        font-size: 20px !important;
    }

    /* Slide 14: Market Catalyst grid */
    #slide-14>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    #slide-14 h2[style*="font-size: 88px"] {
        font-size: 40px !important;
        margin-bottom: 40px !important;
    }

    /* Slide 16: Fundraise grid */
    #slide-16 .comp-wrap[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    #slide-16 .stat-val[style*="font-size: 32px"] {
        font-size: 24px !important;
    }

    /* Slide 3: Distribution gap card text */
    #slide-3 p[style*="font-size: 32px"] {
        font-size: 22px !important;
    }

    /* Slide 17: Future state text */
    #slide-17 p[style*="font-size: 40px"] {
        font-size: 28px !important;
    }

    /* Team card company logos flex wrap */
    .team-card>div[style*="display: flex"][style*="justify-content: space-between"] {
        flex-wrap: wrap !important;
        gap: 12px !important;
        justify-content: flex-start !important;
    }

    .team-card>div[style*="display: flex"]>div[style*="font-size: 13px"] {
        font-size: 11px !important;
    }

    /* Contact slide adjustments */
    #slide-18 div[style*="font-size: 22px"] {
        font-size: 18px !important;
    }

    #slide-18 div[style*="width: 140px"] {
        width: 100px !important;
        height: 100px !important;
    }

    /* CTA buttons - minimum 44px touch targets */
    #slide-18 a[style*="background: var(--accent-blue)"] {
        padding: 14px 28px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Links in contact slide - larger touch targets */
    #slide-18 p a {
        display: inline-block;
        padding: 8px 0;
        min-height: 44px;
        line-height: 28px;
    }

    /* Slide 2: Institutional cards - value sizes */
    #slide-2 div[style*="font-size: 28px"] {
        font-size: 22px !important;
    }

    #slide-2 div[style*="font-size: 24px"] {
        font-size: 18px !important;
    }

    /* Slide 9: Market Positioning table */
    #slide-9 .institutional-card {
        padding: 16px !important;
    }

    #slide-9 table th,
    #slide-9 table td {
        padding: 12px 8px !important;
        font-size: 11px !important;
    }

    /* Slide 15: Founders cards */
    #slide-15 .team-card div[style*="width: 140px"] {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 24px !important;
    }

    #slide-15 .team-card>div[style*="display: flex"] {
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
    }

    #slide-15 .team-card>div[style*="display: flex"]>div {
        font-size: 10px !important;
        letter-spacing: 0.15em !important;
    }

    /* Appendix C: Secondary Market Mechanics */
    #slide-appendix-c>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    #slide-appendix-c div[style*="padding: 24px"] {
        padding: 18px !important;
    }

    #slide-appendix-c div[style*="padding: 32px"] {
        padding: 20px !important;
    }

    #slide-appendix-c span[style*="font-size: 24px"] {
        font-size: 20px !important;
    }

    #slide-appendix-c p[style*="font-size: 18px"] {
        font-size: 16px !important;
    }

    /* Appendix E: Path to $100M */
    #slide-appendix-e>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    #slide-appendix-e table th,
    #slide-appendix-e table td {
        padding: 12px 8px !important;
        font-size: 12px !important;
    }

    #slide-appendix-e div[style*="padding: 24px"] {
        padding: 18px !important;
    }

    #slide-appendix-e p[style*="font-size: 24px"] {
        font-size: 20px !important;
    }

    #slide-appendix-e p[style*="font-size: 32px"] {
        font-size: 24px !important;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    .slide {
        padding: 0 16px;
        padding-top: 70px;
        padding-bottom: 50px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    h1 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .lead-text {
        font-size: 16px;
        line-height: 1.7;
    }

    .slide-meta {
        font-size: 8px;
        letter-spacing: 0.12em;
    }

    .stat-val {
        font-size: 32px;
    }

    .stat-label {
        font-size: 9px;
        letter-spacing: 0.08em;
    }

    .stat-item {
        padding-left: 16px;
    }

    .detail-item {
        padding: 18px;
    }

    .detail-val {
        font-size: 16px;
    }

    .detail-meta-val {
        font-size: 14px;
    }

    .team-card {
        padding: 24px;
    }

    .team-name {
        font-size: 22px;
    }

    .team-bio {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Team card company logos - stack on small screens */
    .team-card>div:last-child {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .institutional-card {
        padding: 20px;
    }

    .card-label {
        font-size: 9px;
        margin-bottom: 16px;
    }

    .nav-dots {
        right: 8px;
        gap: 12px;
        background: rgba(0, 0, 0, 0.4);
        padding: 10px 6px;
        border-radius: 16px;
    }

    .dot {
        width: 5px;
        height: 5px;
    }

    .dot::before {
        inset: -12px;
    }

    .header {
        height: 56px;
    }

    .header-brand {
        font-size: 10px;
    }

    .header-logo img {
        width: 24px;
        height: 24px;
    }

    .header-logo {
        gap: 10px;
    }

    /* Additional inline style overrides for small phones */
    #slide-14 h2[style*="font-size: 88px"] {
        font-size: 28px !important;
        line-height: 1.1 !important;
    }

    #slide-5 p[style*="font-size: 24px"] {
        font-size: 18px !important;
    }

    #slide-5 p[style*="font-size: 15px"] {
        font-size: 13px !important;
    }

    #slide-6 p[style*="font-size: 48px"] {
        font-size: 28px !important;
    }

    #slide-6 p[style*="font-size: 22px"] {
        font-size: 16px !important;
    }

    #slide-8 h2[style*="font-size: 56px"] {
        font-size: 26px !important;
    }

    #slide-17 p[style*="font-size: 40px"] {
        font-size: 22px !important;
    }

    #slide-3 p[style*="font-size: 32px"] {
        font-size: 18px !important;
    }

    /* SVG diagram smaller on very small screens */
    #slide-8 svg {
        max-height: 35vh !important;
    }

    /* Slide 2: Institutional cards smaller values */
    #slide-2 div[style*="font-size: 28px"] {
        font-size: 18px !important;
    }

    #slide-2 div[style*="font-size: 24px"] {
        font-size: 16px !important;
    }

    /* Slide 9: Table even smaller */
    #slide-9 .institutional-card {
        padding: 12px !important;
    }

    #slide-9 table th,
    #slide-9 table td {
        padding: 10px 6px !important;
        font-size: 10px !important;
    }

    /* Slide 15: Founders - smaller photos */
    #slide-15 .team-card div[style*="width: 140px"] {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 20px !important;
    }

    #slide-15 .team-card>div[style*="display: flex"]>div {
        font-size: 9px !important;
    }

    /* Appendix C: More aggressive sizing */
    #slide-appendix-c div[style*="padding: 24px"] {
        padding: 14px !important;
    }

    #slide-appendix-c span[style*="font-size: 24px"] {
        font-size: 18px !important;
    }

    #slide-appendix-c p[style*="font-size: 18px"] {
        font-size: 14px !important;
    }

    #slide-appendix-c p[style*="font-size: 16px"] {
        font-size: 13px !important;
    }

    /* Appendix E: Tighter spacing */
    #slide-appendix-e table th,
    #slide-appendix-e table td {
        padding: 10px 6px !important;
        font-size: 11px !important;
    }

    #slide-appendix-e p[style*="font-size: 24px"] {
        font-size: 18px !important;
    }

    #slide-appendix-e p[style*="font-size: 32px"] {
        font-size: 20px !important;
    }

    #slide-appendix-e p[style*="font-size: 20px"] {
        font-size: 16px !important;
    }

    /* Slide 11: Moat cards text */
    #slide-11 p[style*="font-size: 24px"] {
        font-size: 18px !important;
    }

    #slide-11 p[style*="font-size: 16px"] {
        font-size: 14px !important;
    }

    /* Slide 12: Traction cards */
    #slide-12 p[style*="font-size: 22px"] {
        font-size: 16px !important;
    }

    #slide-12 p[style*="font-size: 20px"] {
        font-size: 15px !important;
    }

    /* Slide 13: GTM phases */
    #slide-13 p[style*="font-size: 28px"] {
        font-size: 18px !important;
    }

    #slide-13 p[style*="font-size: 20px"] {
        font-size: 16px !important;
    }

    /* CTA buttons - ensure 44px touch target */
    #slide-18 a[style*="background: var(--accent-blue)"] {
        padding: 16px 24px !important;
        min-height: 48px !important;
        font-size: 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Contact links - full width for easier tapping */
    #slide-18 p a {
        display: inline-block;
        padding: 10px 0;
        min-height: 44px;
    }

    /* All clickable elements - minimum touch area */
    .detail-item,
    .pillar-item,
    .team-card {
        min-height: 44px;
    }
}

/* ============================================
   EMAIL GATE OVERLAY
   ============================================ */
.email-gate {
    position: fixed;
    inset: 0;
    background: var(--bg-gradient);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.email-gate.hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.gate-content {
    text-align: center;
    max-width: 420px;
    padding: 48px;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gate-content img {
    width: 64px;
    height: 64px;
    margin-bottom: 32px;
}

.gate-content h2 {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: var(--navy);
    text-transform: uppercase;
}

.gate-content p {
    font-size: 16px;
    color: var(--dark-text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.gate-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gate-form input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(12, 35, 64, 0.1);
    border-radius: 8px;
    color: var(--navy);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gate-form input[type="email"]::placeholder {
    color: var(--dark-text-tertiary);
}

.gate-form input[type="email"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 150, 12, 0.1);
}

.gate-form button {
    width: 100%;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gate-form button:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 35, 64, 0.15);
}

.gate-form button:active {
    transform: translateY(0);
}

.gate-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.gate-error {
    color: var(--danger);
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

.gate-error.show {
    display: block;
}

/* Hide main content when gate is active */
body.gated .header,
body.gated .footer,
body.gated .nav-dots,
body.gated .deck,
body.gated .sidebar,
body.gated .sidebar-backdrop {
    display: none !important;
}

/* Ensure main content is visible when gate is passed */
body:not(.gated) .deck {
    display: block !important;
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 35, 64, 0.3);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(12, 35, 64, 0.1);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(12, 35, 64, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo img {
    width: 28px;
    height: 28px;
}

.sidebar-logo span {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--navy);
}

.sidebar-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(12, 35, 64, 0.1);
    border-radius: 4px;
    color: var(--dark-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: rgba(12, 35, 64, 0.05);
    color: var(--gold);
    border-color: var(--gold);
}

.sidebar-content {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 8px;
}

.sidebar-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sidebar-section-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
}

.sidebar-section-arrow {
    width: 16px;
    height: 16px;
    color: var(--dark-text-tertiary);
    transition: transform 0.3s ease;
}

.sidebar-section.collapsed .sidebar-section-arrow {
    transform: rotate(-90deg);
}

.sidebar-section-items {
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.3s ease;
}

.sidebar-section.collapsed .sidebar-section-items {
    max-height: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px 10px 36px;
    font-size: 14px;
    color: var(--dark-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.sidebar-item:hover {
    background: rgba(12, 35, 64, 0.03);
    color: var(--navy);
}

.sidebar-item.active {
    background: rgba(184, 150, 12, 0.1);
    color: var(--gold);
    border-left-color: var(--gold);
}

.sidebar-item-num {
    font-size: 11px;
    font-weight: 600;
    color: var(--dark-text-tertiary);
    min-width: 24px;
}

.sidebar-item.active .sidebar-item-num {
    color: var(--gold);
}

/* Hamburger Menu Button */
.menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(12, 35, 64, 0.1);
    border-radius: 4px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--dark-text-tertiary);
}

.menu-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--dark-text-secondary);
}

@media (max-width: 768px) {
    .sidebar {
        width: 280px;
    }

    .gate-content {
        padding: 32px 24px;
    }

    .gate-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }

    .footer {
        padding: 0 16px;
        justify-content: center;
    }

    .footer-label {
        display: none;
    }

    .footer-disclaimer {
        text-align: center;
        font-size: 9px;
    }
}