/* ── HORIZONTAL LAYOUT ── */

html.lenis {
    height: auto;
}
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.h-layout {
    overflow: hidden;
}

@media (min-width: 900px) {
    .h-layout {
        overflow-x: auto;
        overflow-y: hidden;
        height: 100dvh;
    }
}

/* Header becomes a floating pill at top */
.h-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.4rem 0;
}
.h-header .logo {
    width: clamp(100px, 8vw, 130px);
}

/* The flex track that holds all panels */
.h-track {
    display: block;
}

@media (min-width: 900px) {
    .h-track {
        display: flex;
        flex-direction: row;
        width: max-content;
        height: 100dvh;
    }
}

/* Each panel fills the viewport */
.h-panel {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4.5rem, 10vh, 7rem) 2rem clamp(3rem, 7vh, 5rem);
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 900px) {
    .h-panel {
        flex: 0 0 100vw;
        width: 100vw;
        height: 100dvh;
        min-height: 100dvh;
        padding: clamp(4.5rem, 12vh, 6.5rem) clamp(2rem, 5vw, 5rem) clamp(3rem, 8vh, 5rem);
        border-bottom: none;
        border-right: 1px solid var(--border-color);
    }
}

.panel-inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    max-height: 100%;
    overflow: hidden;
}

/* Panel-specific backgrounds and accents */
.panel-hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    text-align: center;
}
.panel-hero .panel-inner {
    max-width: 820px;
}
.panel-hero .coordinates {
    margin-bottom: 1.5rem;
}
.panel-hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.panel-hero .subhead {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}
.panel-hero .hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.panel-manifesto {
    background: var(--bg-white);
}
.panel-manifesto .panel-inner {
    max-width: 780px;
}
.panel-manifesto h3 {
    font-size: clamp(1.75rem, 3.6vw, 3rem);
    margin: 0.5rem 0 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.panel-manifesto p {
    font-size: clamp(0.9rem, 1.05vw, 1rem);
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    line-height: 1.65;
}
.panel-manifesto .manifesto-closing {
    color: var(--signal-orange);
    font-weight: 700;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    margin: 1.15rem 0 0.85rem;
}

.panel-praxis {
    background: var(--atlantic-blue);
    color: rgba(255, 255, 255, 0.9);
}
.panel-praxis .section-label {
    color: var(--signal-orange);
    margin-bottom: 0.5rem;
}
.panel-praxis h3 {
    font-size: clamp(1.75rem, 3.6vw, 3rem);
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.panel-praxis .pipeline-description {
    color: rgba(255, 255, 255, 0.65);
    max-width: 680px;
    margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
    font-size: clamp(0.9rem, 1.05vw, 1rem);
    line-height: 1.6;
}
.panel-praxis .pipeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(0.75rem, 1.2vw, 1.25rem);
}
.panel-praxis .pipeline-step {
    padding: clamp(0.85rem, 1.5vh, 1.25rem) clamp(1rem, 1.5vw, 1.5rem);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
.panel-praxis .pipeline-step-active {
    background: rgba(255, 79, 0, 0.12);
    border-color: rgba(255, 79, 0, 0.4);
}
.panel-praxis .step-number {
    color: var(--signal-orange);
    display: block;
    margin-bottom: 0.35rem;
}
.panel-praxis .step-content h4 {
    color: white;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    margin-bottom: 0.15rem;
}
.panel-praxis .step-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    line-height: 1.45;
}

/* Shared panel heading block */
.panel-heading {
    margin-bottom: clamp(1.25rem, 3.5vh, 2.25rem);
    max-width: 820px;
}
.panel-heading .mono {
    color: var(--signal-orange);
    margin-bottom: 0.5rem;
    display: block;
}
.panel-heading h3 {
    font-size: clamp(1.75rem, 3.6vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem;
}
.panel-heading .panel-lede {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.6;
    max-width: 640px;
}

.panel-philosophy {
    background: var(--bg-subtle);
}
.panel-philosophy .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    max-width: 1100px;
    margin: 0 auto;
}
.panel-philosophy .card {
    padding: clamp(1.25rem, 2.5vh, 2rem) clamp(1.5rem, 2vw, 2.25rem);
    background: white;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}
.panel-philosophy .card h3 {
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    margin: 0.5rem 0 0.65rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.panel-philosophy .card p {
    color: var(--text-muted);
    font-size: clamp(0.88rem, 1vw, 0.95rem);
    line-height: 1.6;
}

.panel-founders {
    background: var(--bg-white);
}
.panel-founders .founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1rem, 1.5vw, 1.5rem);
    max-width: 1200px;
    margin: 0 auto;
}
.panel-founders .founder-card {
    padding: clamp(1.25rem, 2.5vh, 1.85rem) clamp(1.5rem, 2vw, 2rem);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}
.panel-founders .founder-name {
    font-size: clamp(1.15rem, 1.55vw, 1.45rem);
    margin: 0.35rem 0 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.panel-founders .founder-link {
    color: var(--signal-orange);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.panel-founders .founder-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--atlantic-blue);
    margin-bottom: 0.65rem;
}
.panel-founders .bio {
    color: var(--text-muted);
    font-size: clamp(0.8rem, 0.9vw, 0.88rem);
    line-height: 1.55;
}

/* Fixed footer bar with progress */
.h-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--atlantic-blue);
    color: rgba(255, 255, 255, 0.8);
}
.h-progress {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
}
.h-progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--signal-orange);
    transition: width 0.12s linear;
}
.h-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 2rem;
    font-size: 0.7rem;
}
.h-panel-label {
    color: white;
    opacity: 0.9;
}
.h-hint {
    opacity: 0.5;
}
.h-copyright {
    opacity: 0.5;
}

@media (max-width: 899px) {
    .h-hint { display: none; }

    /* Keep the horizontal-layout nav compact; override style.css mobile stack */
    .h-header nav {
        flex-direction: row;
    }
    .h-header .nav-links {
        flex-direction: row;
        gap: 0.75rem;
        width: auto;
    }
    .h-header .nav-links li:not(:last-child) {
        display: none;
    }
    .h-header .logo {
        width: 90px;
    }
    .h-header .btn-primary {
        padding: 0.4rem 0.9rem;
        font-size: 0.7rem;
    }
}
