:root {
    --primary-bg-color: #1a1a1a;
    --primary-text-color: #ffffff;
    --secondary-text-color: #333333;
    --accent-color: #ffffff;
    --transition-speed: 0.3s;
    --contact-link-font: 'Playfair Display', cursive;
    --contact-link-color: #f4f4f4;
    --contact-link-hover-color: #ffffff;
    --sidebar-width: 80px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    max-width: 100vw;
}

body.scroll-locked {
    overflow: hidden !important;
}

/* Sidebar toggle button */
.sidebar-toggle {
    position: absolute;
    top: 30px;
    left: 22px;
    width: 36px;
    height: 30px;
    cursor: pointer;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.toggle-icon {
    width: 100%;
    height: 2px;
    background-color: var(--primary-text-color);
    transition: all var(--transition-speed) ease;
}

.sidebar-toggle.active .toggle-icon:nth-child(1) {
    transform: translateY(14px) rotate(45deg);
}
.sidebar-toggle.active .toggle-icon:nth-child(2) {
    opacity: 0;
}
.sidebar-toggle.active .toggle-icon:nth-child(3) {
    transform: translateY(-14px) rotate(-45deg);
}

/* Sidebar container */
.vertical-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--primary-bg-color);
    z-index: 1000;
    transition: width var(--transition-speed) ease;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    width: calc(70vw - var(--sidebar-width));
    height: 100vh;
    background-color: var(--primary-bg-color);
    color: var(--primary-text-color);
    z-index: 990;
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    padding: 33px 80px 40px 40px;
    display: flex;
    flex-direction: column;
}

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

/* Sidebar content */
.sidebar-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
    padding-right: 20px;
    justify-content: flex-start;
}

.sidebar-text-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-width: 700px;
    height: 100%;
}

.sidebar-description {
    font-family: 'Playfair Display', serif;
    font-style: normal;
    font-size: 2.4rem;
    line-height: 1.35;
    color: var(--primary-text-color);
    text-align: left;
    margin-top: auto;
    margin-bottom: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(-10%);
}

.intro-text {
    margin-bottom: 15px;
}

.mission-text {
    margin-bottom: 0;
}

/* Navigation Links */
.nav-links {
    font-size: 1.2rem;
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
    padding: 0;
}

.nav-links li {
    margin-right: 10px;
    margin-bottom: 15px;
}

.nav-links li.nav-dot {
    font-size: 1.2rem;
    opacity: 0.5;
}

.nav-links a {
    color: var(--primary-text-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 300;
    position: relative;
    display: inline-block;
    transition: opacity var(--transition-speed) ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-text-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Contact link section */
.sidebar-contact {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: auto;
    flex-shrink: 0;
}

.contact-link {
    text-decoration: none;
    color: var(--contact-link-color);
    font-family: var(--contact-link-font);
    font-size: 2.2rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.85;
}

.contact-link:hover {
    color: var(--contact-link-hover-color);
    opacity: 1;
}

.contact-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--contact-link-color);
    transition: width 0.3s ease;
}

.contact-link:hover::after {
    width: 100%;
}

/* Overlay behind sidebar */
.content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 980;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.content-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- SIMPLIFIED MAIN CONTENT --- */
.main-content {
    width: calc(100vw - var(--sidebar-width));
    min-height: 100vh;
    background: white;
    margin-left: var(--sidebar-width);
    padding: 60px 60px 60px 100px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Hide dividers */
.origin-divider {
    display: none;
}

/* Header styling */
.origin-header {
    text-align: center;
    margin-bottom: 80px;
}

.origin-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #2c2c2c;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.origin-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #666;
    text-align: center;
    line-height: 1.6;
}

/* Two-Column Content Sections */
.origin-section {
    margin-bottom: 100px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.origin-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Default layout: text left, image right - NO EXPLICIT GRID COLUMN ASSIGNMENTS */
/* Let flexbox handle the natural order */

/* Alternate layout - image left, text right */
.origin-content.reverse {
    direction: rtl; /* Right-to-left direction flips the order */
}

.origin-content.reverse .origin-text,
.origin-content.reverse .origin-image {
    direction: ltr; /* Reset direction for content inside */
}

/* Text content */
.origin-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #2c2c2c;
    text-align: center;
    padding: 0 10px;
}

.origin-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 20px;
    text-align: center;
}

.origin-text p {
    margin-bottom: 12px;
}

.origin-text p:last-child {
    margin-bottom: 0;
}

/* Image content */
.origin-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

.origin-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.origin-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 60px;
    }

    .main-content {
        margin-left: var(--sidebar-width);
        padding: 50px 40px 50px 80px;
    }

    .origin-title {
        font-size: 3rem;
    }

    .origin-section {
        gap: 40px;
        margin-bottom: 80px;
    }

    .sidebar {
        width: calc(90vw - 60px);
        padding: 33px 40px 40px 10px;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 40px 30px;
    }

    .origin-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
        text-align: center;
        direction: ltr; /* Reset direction for mobile */
    }

    .origin-content.reverse {
        direction: ltr; /* Reset direction for mobile */
    }

    .origin-title {
        font-size: 2.5rem;
    }

    .origin-subtitle {
        font-size: 16px;
        margin-bottom: 60px;
    }

    .origin-text {
        text-align: center;
        padding: 0;
    }

    .origin-image img {
        height: 250px;
    }

    .sidebar {
        width: calc(95vw - var(--sidebar-width));
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 30px 20px;
    }

    .origin-title {
        font-size: 2rem;
    }

    .origin-text {
        font-size: 13px;
    }

    .origin-text h3 {
        font-size: 1.5rem;
    }

    .origin-image img {
        height: 200px;
    }
}