/* Start Rwanda - Minimalistic & Modern UI */

:root {
    --sr-dark: #000000;
    /* Studio Midnight */
    --sr-cream: #fbfbf5;
    --sr-white: #ffffff;
    --sr-accent: #0e1133;
    /* Use Midnight as accent for minimalism */
    --sr-border: rgba(14, 17, 51, 0.08);
}

#start-rwanda-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--sr-white);
    z-index: 10000;
    display: none;
    flex-direction: column;
    overflow-y: scroll;
    /* Force scrollbar for layout stability */
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    color: var(--sr-dark);

    font-family: 'Inter', sans-serif;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#start-rwanda-modal.active {
    display: flex;
    opacity: 1;
}

/* Base Styles */
.sr-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    /* More balanced section height */
    display: flex;
    flex-direction: column;
    padding: 15vh 8%;
    /* Increased horizontal padding for elegant whitespace */
    border-bottom: 1px solid var(--sr-border);
    overflow: hidden;
    /* Prevent content bleeding */
}

.sr-section:last-of-type {
    border-bottom: none;
}

/* Structural Grid Overlay (Modern) */
.sr-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
}

.sr-grid-line {
    width: 1px;
    height: 100%;
    background: var(--sr-border);
}

.sr-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.sr-logo {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1rem;
    text-transform: uppercase;
}

.sr-close {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.sr-close:hover {
    opacity: 1;
}

/* Minimalist Hero */
.sr-hero {
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 8%;
    border-bottom: 1px solid var(--sr-dark);
    /* Stronger separator for hero exit */
}

.sr-hero-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sr-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    /* Muted video for minimalism */
}

.sr-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.sr-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Swiss Architectural Button */
.sr-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 3rem;
    background: transparent;
    color: var(--sr-dark);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid var(--sr-dark);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.sr-btn:hover {
    background: var(--sr-dark);
    color: var(--sr-white);
}

.sr-btn::after {
    content: '→';
    font-size: 1rem;
    transition: transform 0.4s ease;
}

.sr-btn:hover::after {
    transform: translateX(5px);
}

/* Modern Label */
.sr-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-weight: 700;
    color: var(--sr-dark);
    opacity: 0.4;
    margin-bottom: 2rem;
    display: block;
}

/* Grid-based Content */
.sr-modern-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10%;
    align-items: center;
    /* Center items for better vertical flow without overlap */
}

.sr-img-minimal {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: grayscale(1);
    /* Modern grayscale look */
    transition: filter 0.6s ease, transform 0.6s ease;
    display: block;
}

.sr-img-minimal:hover {
    filter: grayscale(0);
}

.sr-content-block {
    padding-top: 2vh;
    max-width: 100%;
    /* Ensure it stays within grid col */
}

.sr-title-mini {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.sr-p-modern {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.6;
}

/* Map Section (Refined) */
.sr-map-section {
    background: var(--sr-white);
}

.sr-map-minimal {
    width: 100%;
    height: 50vh;
    border: 1px solid var(--sr-border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sr-rwanda-path {
    stroke: var(--sr-dark);
    stroke-width: 0.5;
    fill: none;
    opacity: 0.3;
}

.sr-dot-hotspot {
    width: 6px;
    height: 6px;
    background: var(--sr-dark);
    border-radius: 50%;
    position: absolute;
    z-index: 10;
}

/* Case Studies (Simplified) */
.sr-case-minimal-wrap {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.sr-case-minimal-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5%;
    align-items: center;
}

.sr-case-minimal-row:nth-child(even) {
    grid-template-columns: 0.8fr 1.2fr;
}

/* Large Type Footer (Cleaned) */
.sr-modern-footer {
    padding: 15vh 5%;
    background: var(--sr-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 4px solid var(--sr-dark);
}

.sr-footer-massive {
    font-family: 'Playfair Display', serif;
    font-size: clamp(5rem, 25vw, 30rem);
    font-weight: 700;
    line-height: 0.8;
    color: var(--sr-dark);
    margin: 5vh 0;
    letter-spacing: -0.04em;
}

/* Scroll Bar (Minimal) */
.sr-scroll-bar-wrap {
    position: fixed;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    height: 100px;
    width: 1px;
    background: var(--sr-border);
    z-index: 100;
}

.sr-scroll-progress {
    width: 100%;
    background: var(--sr-dark);
    height: 0;
}