:root {
    --bg-color: #ffffff;
    --text-color: #0b0b0b;
    --accent-color: #0000ff;
    --grid-gap: 2rem;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 18px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gap);
    padding: 4rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.hero-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 0; /* Creates stacking context so video (z-index -2) stays visible above body background */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

.hero-content {
    flex-grow: 1;
    display: grid;
    align-content: space-between;
}

/* Header */
header {
    grid-column: 1 / 13;
    /* margin-bottom removed to let align-content handle spacing if needed, 
       but keeping some margin is safe */
    margin-bottom: 2rem; 
}

.logo {
    font-weight: 900;
    font-size: 5rem;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.85;
}

/* Main Content */
main {
    grid-column: 1 / 13;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gap);
    width: 100%; /* Ensure it takes full width */
}

.statement {
    grid-column: 1 / 9;
    align-self: end;
    margin-bottom: 3rem;
}

.statement h1 {
    font-size: 2.5rem; /* Increased size for impact */
    font-weight: 500;
    text-transform: none; /* Changed from uppercase for readability of long text */
    margin-bottom: 2rem;
    color: var(--text-color); /* Changed to black for better contrast on video overlay if needed, or keeping theme */
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.owner-info {
    border-top: 4px solid var(--text-color);
    padding-top: 1rem;
    display: inline-block;
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 0.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Portfolio Background Fixed */
.portfolio-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-background.active {
    opacity: 1;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease-in-out;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.88);
}

/* Ensure footer sits nicely */
footer {
    grid-column: 1 / 13;
    align-self: end;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
    background-color: transparent;
}

/* Portfolio Scroll Layout */
.portfolio-scroll-container {
    grid-column: 1 / 13; /* Fixes the squashed width issue */
    position: relative;
    width: 100%;
    z-index: 2;
}

.portfolio-header-section {
    padding: 4rem 0; /* Adjust padding to match grid alignment */
    width: 100%;
    grid-column: 1 / 13;
}

.list-header {
    padding-left: 4rem; /* Align with grid padding */
}

.company-section {
    min-height: 100vh; /* Full screen height */
    display: grid; /* Use grid for Swiss alignment */
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gap);
    align-items: center;
    padding: 0 4rem; /* Match global grid padding */
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.company-content {
    grid-column: 2 / 12; /* Span most of the width but leave breathing room */
    text-align: left; /* Swiss design prefers left alignment */
    opacity: 0.3;
    transform: translateY(20px); /* Subtle rise effect */
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.company-section.active .company-content {
    opacity: 1;
    transform: translateY(0);
}

.company-name {
    font-size: 6vw; /* Large, bold typography */
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.9;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    mix-blend-mode: multiply;
    max-width: 100%;
    word-wrap: break-word; /* Prevent overflow */
}

.company-desc {
    font-size: 1.75rem; /* Readable, high-end size */
    font-weight: 400;
    color: var(--text-color);
    max-width: 800px; /* Optimal reading line length */
    line-height: 1.3;
    margin-left: 0; /* Align left */
}

/* Footer Fixes */
.footer-meta {
    grid-column: 1 / 13;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 700;
    border-top: 2px solid #eee;
    padding-top: 2rem;
    padding-bottom: 2rem;
    width: 100%;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-container {
        padding: 2rem;
    }
    
    .logo {
        font-size: 3.5rem;
    }

    li {
        font-size: 2.5rem;
    }

    .detail {
        font-size: 1.5rem;
    }
    
    .statement {
        grid-column: 1 / 13;
        margin-bottom: 3rem;
    }
    
    .holdings-list {
        grid-column: 1 / 13;
    }
}

@media (max-width: 480px) {
    .grid-container {
        display: block;
        padding: 1.5rem;
    }

    .logo {
        font-size: 2.5rem;
    }

    li {
        font-size: 2rem;
    }
    
    .detail {
        font-size: 1.25rem;
    }
}
