/* ===== SPLIT-SCREEN PAGE LAYOUTS ===== */
.split-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px);
    width: 100%;
}

@media (min-width: 768px) {
    .split-container {
        flex-direction: row;
        max-width: 800px;
        margin: 0 auto;
    }

    /* Override: full-width when only one column remains */
    .split-container:has(> .split-half:only-child) {
        max-width: 100%;
        margin: 0;
    }
}

.split-half {
    flex: 1;
    padding: 5rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
    min-height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.split-half::-webkit-scrollbar {
    width: 4px;
}

.split-half::-webkit-scrollbar-track {
    background: transparent;
}

.split-half::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

@media (max-width: 767px) {
    .split-half {
        min-height: 100vh;
        min-height: 100dvh;
        max-height: none;
        padding: 5rem 1.5rem 3rem;
        overflow-y: visible;
        scroll-snap-align: start;
    }

    .split-container {
        scroll-snap-type: y mandatory;
    }
}

.split-half.devcnx {
    background: var(--dark);
    color: var(--text);
    border-right: 1px solid var(--border);
    font-family: var(--font-mono);
    position: relative;
}

/* ===== MOBILE SCROLL INDICATORS ===== */
@media (max-width: 767px) {
    /* Side pagination dots */
    .split-container {
        position: relative;
    }
    
    .scroll-indicator-dots {
        position: fixed;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        z-index: 1000;
        pointer-events: auto;
    }
    
    /* Arrows removed - dots only */
    
    .scroll-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--border);
        border: 2px solid var(--teal);
        transition: all 0.3s ease;
        cursor: pointer;
        opacity: 0.4;
        padding: 0;
    }
    
    .scroll-dot.active {
        background: var(--teal);
        opacity: 1;
        transform: scale(1.5);
        border-width: 2px;
    }
    
    .scroll-dot:hover {
        opacity: 0.8;
    }

    .scroll-dot:focus-visible {
        outline: 2px solid var(--teal);
        outline-offset: 4px;
    }
    
    /* Studio peek - visible at bottom of viewport */
    .split-half.studio {
        margin-top: -80px;
        padding-top: 100px;
    }
    
    /* Mobile scroll hint - sits at end of DEVCNX content */
    .mobile-scroll-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem;
        margin-top: 1.5rem;
        color: var(--teal);
        font-family: var(--font-sans);
        font-size: 0.75rem;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        text-decoration: none;
        opacity: 0.8;
        animation: scrollHint 2s ease-in-out infinite;
    }
    
    .mobile-scroll-hint span {
        font-size: 1rem;
    }
    
    .mobile-scroll-hint:hover {
        opacity: 1;
    }
}

/* Hide scroll hint on desktop */
@media (min-width: 768px) {
    .mobile-scroll-hint {
        display: none;
    }
    
    .scroll-indicator-dots {
        display: none;
    }
}

@keyframes scrollHint {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.split-half.studio {
    background: var(--light-bg);
    color: var(--light-text);
    font-family: var(--font-sans);
    scroll-margin-top: 70px;
}

/* ===== SPLIT HEADER ===== */
.split-header {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

/* Home page: direct children in split-half without split-header wrapper */
.split-half > .status-label:first-child,
.split-half > .brand-name,
.split-half > .brand-tagline,
.split-half > .cta-row {
    max-width: 350px;
    width: 100%;
}

/* Vertically center home page split content - mobile only */
@media (max-width: 767px) {
    .split-half:not(:has(.split-header)) {
        justify-content: center;
        gap: 1rem;
    }

    .profile-name {
        font-size: 1.35rem;
    }
}

.split-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: 350px;
    gap: 1rem;
    padding-top: 0;
}

/* ===== SHARED SPLIT-SCREEN COMPONENTS ===== */
.split-half .status-label {
    font-size: 0.75rem;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 1.5rem;
}

.split-half.studio .status-label {
    color: var(--light-text);
}

.split-half.studio .status-dot {
    background: var(--teal);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: 0.1em;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.split-half.studio .brand-name {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: normal;
}

.brand-name .teal {
    color: var(--teal);
}

.split-half.studio .brand-name .studio-italic {
    font-style: italic;
    font-weight: 500;
}

.profile-name {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.05em;
    color: var(--text);
    margin: 0 0 1rem;
}

.split-container > .split-half:only-child .profile-name {
    max-width: 600px;
}

.brand-tagline {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 2rem;
    max-width: 350px;
    min-height: 4.6rem;
}

.split-half.studio .brand-tagline {
    font-size: 0.95rem;
    color: var(--light-sub);
}

/* ===== SINGLE COLUMN: when Studio side is removed ===== */

/* Mobile base: remove border, fill full width, center content */
.split-container > .split-half:only-child {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    border-right: none;
    align-items: center;
}

/* Mobile base: remove container width constraint */
.split-container:has(> .split-half:only-child) {
    max-width: 100%;
    margin: 0;
}

/* Desktop: widen inner content from 350px to 600px for better use of space */
@media (min-width: 768px) {
    .split-container > .split-half:only-child .split-header,
    .split-container > .split-half:only-child .split-content {
        max-width: 600px;
    }

    .split-container > .split-half:only-child > .status-label,
    .split-container > .split-half:only-child > .brand-name,
    .split-container > .split-half:only-child > .profile-name,
    .split-container > .split-half:only-child > .brand-tagline,
    .split-container > .split-half:only-child > .cta-row {
        max-width: 600px;
    }
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border: 1px solid;
    border-radius: 2px;
    margin-top: 0.5rem;
}

.status-badge--shipped {
    color: #00DADD;
    border-color: #00DADD;
    background: rgba(0, 218, 221, 0.08);
}

.status-badge--in-progress {
    color: #ffc850;
    border-color: #ffc850;
    background: rgba(255, 200, 80, 0.08);
}

.status-badge--coming-soon {
    color: #8b949e;
    border-color: #8b949e;
    background: rgba(139, 148, 158, 0.08);
}

/* ===== PORTFOLIO FOLLOW TEXT ===== */
.portfolio-follow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--sub-text);
    margin-top: 1rem;
    text-align: center;
}

.portfolio-follow a {
    color: var(--teal);
    text-decoration: none;
}

.portfolio-follow a:hover {
    text-decoration: underline;
}
