:root {
    /* Grand & Calm Palette */
    --bg-right: #F8F6F0; /* Soft cashmere/alabaster */
    --bg-left: #1C2321; /* Deep muted forest/slate */
    --text-dark: #1A1C1A; /* Text on right pane */
    --text-light: #F4F4F0; /* Text on left pane */
    --text-muted: #808280;
    --border-color: #E2DFD8;
    --border-light: rgba(255, 255, 255, 0.1);
    --accent: #C5A880; /* Calm muted brass/gold */
    --hover-bg: #EFECE4;
    
    --font-primary: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-left); /* Starts dark for the intro */
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    animation: bgFade 1s ease-in forwards;
    animation-delay: 2.2s;
    overflow-x: hidden; /* Prevent horizontal scroll, moved to body so sticky works */
}

@keyframes bgFade {
    to { background-color: var(--bg-right); }
}

/* Layout */
.split-layout {
    display: flex;
    min-height: 100vh;
}

/* Left Pane (Dark & Grand) */
.left-pane {
    width: 40%;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-left);
    color: var(--text-light);
    
    /* Intro Animation Initial State */
    transform: translateX(30vw); /* Shift 30vw to perfectly center the 40vw pane in 100vw window */
    border-inline-end: 1px solid transparent; /* Hide border initially */
    animation: flyLeft 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-delay: 1.5s; /* Pause in center for 1.5s */
}

@keyframes flyLeft {
    to {
        transform: translateX(0);
        border-inline-end: 1px solid var(--border-color);
    }
}

.branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
    animation-delay: 2s;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--accent);
}

.hero-content {
    margin-block: auto;
    
    /* Intro Animation Initial State */
    transform: scale(1.3); /* Start slightly larger */
    transform-origin: center center;
    text-align: center; /* Start centered */
    animation: normalizeContent 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-delay: 1.5s;
}

@keyframes normalizeContent {
    to {
        transform: scale(1);
        text-align: left;
    }
}

.massive-name {
    font-size: clamp(3rem, 5vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    text-transform: uppercase;
    color: var(--text-light);
}

.role-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.summary-text {
    font-size: 1.1rem;
    color: rgba(244, 244, 240, 0.8);
    max-width: 90%;
    line-height: 1.8;
}

.pane-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
    animation-delay: 2.2s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.pane-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(244, 244, 240, 0.2);
    border-radius: 40px;
    background: rgba(244, 244, 240, 0.03);
    transition: all 0.3s ease;
}
.pane-nav a:hover {
    background: var(--accent);
    color: var(--bg-left);
    border-color: var(--accent);
}

/* Right Pane (Light & Calm) */
.right-pane {
    width: 60%;
    background: transparent; /* Starts transparent so we see body background */
    opacity: 0;
    transform: translateY(80px);
    animation: slideUpRight 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-delay: 1.8s;
}

@keyframes slideUpRight {
    to {
        opacity: 1;
        transform: translateY(0);
        background: var(--bg-right);
    }
}

.content-section {
    padding: 8rem 5rem;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 3rem;
    color: var(--text-dark);
}
.section-title.sub-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Experience */
.experience-list {
    display: flex;
    flex-direction: column;
}
.job-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding-block: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}
.job-row:first-child { border-top: 1px solid var(--border-color); }

.job-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.job-role {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.job-company {
    font-size: 1.1rem;
    color: var(--bg-left);
    font-weight: 500;
}

/* Abilities */
.abilities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.ability-tag {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    background: transparent;
    color: var(--text-dark);
    transition: all 0.3s ease;
}
.ability-tag:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-right);
}

/* Coverages Playlist */
.section-header { margin-bottom: 3rem; }
.instruction-text {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.playlist {
    display: flex;
    flex-direction: column;
}
.playlist-item {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid transparent;
    cursor: pointer;
    transition: background 0.3s ease;
}
.playlist-item:last-child {
    border-bottom: 1px solid var(--border-color);
}
.playlist-item:hover {
    background: var(--hover-bg);
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 1.5rem;
}
.playlist-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.playlist-platform {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 2px;
}
.playlist-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}
.preview-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-left);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    transition: all 0.3s ease;
}
.playlist-item:hover .preview-indicator {
    background: var(--bg-left);
    color: var(--text-light);
    border-color: var(--bg-left);
}

/* Inline Video Player */
.inline-player {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-left);
    color: var(--text-light);
}
.playlist-item.active .inline-player {
    max-height: 800px;
}
.player-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: var(--accent);
    transition: width 0.1s linear;
}
.player-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.controls-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.play-pause-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: color 0.2s;
}
.play-pause-btn:hover {
    color: var(--accent);
}
.time-indicator {
    font-family: monospace;
    font-size: 1rem;
    color: rgba(244, 244, 240, 0.6);
}
.view-original-btn {
    background: var(--accent);
    color: var(--bg-left);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 40px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.view-original-btn:hover {
    background: var(--text-light);
}

/* Contact */
.contact-links {
    display: flex;
    flex-direction: column;
}
.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.3s ease;
}
.contact-row:hover {
    background: var(--hover-bg);
}
.contact-row:first-child { border-top: 1px solid var(--border-color); }
.contact-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 100px;
    letter-spacing: 1px;
}
.contact-value {
    flex-grow: 1;
    font-size: 1.5rem;
    font-weight: 700;
}

.copyright {
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .split-layout { flex-direction: column; }
    .left-pane, .right-pane { width: 100%; }
    
    .left-pane {
        position: relative;
        height: auto; /* Allows expansion if screen is very short */
        min-height: 100vh;
        padding: 4rem 1.5rem; /* Safe padding around edges */
        border-bottom: none;
        justify-content: center; /* Stop pushing elements to the very top and bottom */
        gap: 3rem; /* Clean, dynamic spacing between logo, text, and buttons */
        
        /* Force Mobile Override */
        transform: translateY(40px) !important;
        opacity: 0;
        animation: mobileFlyUp 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards !important;
        animation-delay: 1.5s !important;
    }
    
    @keyframes mobileFlyUp {
        to {
            transform: translateY(0);
            opacity: 1;
            border-inline-end: none;
        }
    }

    .branding { justify-content: center; margin-bottom: 0; }

    .hero-content {
        margin-block: 0; /* Stop it from pushing other elements away */
        transform: scale(1.05) !important;
        text-align: center !important;
        animation: mobileNormalize 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards !important;
        animation-delay: 1.5s !important;
        width: 100%;
    }
    
    @keyframes mobileNormalize {
        to {
            transform: scale(1);
            text-align: center !important;
        }
    }

    /* Dynamic Sizing based on Phone screen width */
    .massive-name { 
        font-size: clamp(2.5rem, 10vw, 3.5rem); 
        text-align: center; 
        margin-bottom: 1rem;
    }
    .role-title { 
        font-size: clamp(1rem, 4vw, 1.25rem);
        text-align: center; 
        margin-bottom: 1.5rem;
    }
    .summary-text { 
        font-size: 1rem;
        text-align: center; 
        margin: 0 auto; 
        width: 100%;
    }
    
    .pane-nav {
        justify-content: center;
        gap: 1.5rem;
    }

    .content-section { padding: 4rem 1.5rem; } /* Reduced padding for right pane on phones */
    
    .job-row { grid-template-columns: 1fr; gap: 0.5rem; }
    
    .playlist-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .player-content { padding: 1.5rem; }
    .player-actions { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .view-original-btn { width: 100%; text-align: center; }
    
    .contact-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .contact-value { font-size: 1.1rem; word-break: break-all; } /* Prevent long emails from breaking layout */
}
