/* Base Styling and Setup */
:root {
    --bg-color: #121212; /* Very dark gray, close to black */
    --text-color: #f7f7f7; /* Off-white */
    --accent-color: #ff0000; /* STRV logo red */
    --light-gray: #aaaaaa; /* Lighter text for secondary elements */
}

@font-face {font-family:Dena;
	/*src: url(../fonts/Dena.ttf); */
    src: url("Dena.ttf");
} 

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Simulating the modern, sans-serif look */
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents horizontal scroll from large elements */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw; /* Responsive padding */
}

/* --- Header/Logo --- */
header {
    padding: 50px 0 20px 0;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    font-family:Dena;
}

/* --- Hero Section (Title) --- */
.hero {
    display: flex;
    position: relative;
    padding: 100px 0 80px 0;
}

.hero .content {
    flex-grow: 1;
    margin-left: 100px; /* Space for the sidebar text */
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900; /* Extra bold */
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.hero h1 span {
    display: block;
    font-weight: 300; /* Lighter weight for "AND WEBSITE" */
    margin-bottom: 5px;
}

.hero p {
    margin-top: 30px;
    font-size: 1.1rem;
    max-width: 550px;
    color: var(--light-gray);
}

/* Left Sidebar Text */
.sidebar-text {
    position: absolute;
    top: 50px;
    left: 0;
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--light-gray);
    letter-spacing: 0.2em;
    opacity: 0.6;
}

.rotate-text {
    display: block;
    transform: rotate(-90deg) translate(-100%, 0);
    transform-origin: left top;
    white-space: nowrap;
    text-transform: uppercase;
}

/* --- Values Section --- */
.values-section {
    padding: 50px 0 80px 0;
    position: relative;
}

.values-header-right {
    text-align: right;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--light-gray);
    opacity: 0.8;
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.value-item {
    padding-right: 20px; 
}

.value-number {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--light-gray);
    margin-bottom: 10px;
    opacity: 0.8;
}

.value-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* --- Section One (Large U) --- */
.section-one-container {
    position: relative;
    height: 900px; /* Set a height to contain the large element */
    margin-top: 50px;
    padding-bottom: 100px;
}

.section-one-content {
    position: absolute;
    right: 4vw; /* Match the container padding */
    top: 150px;
    z-index: 2; /* Ensure content is above the 'U' shape */
}

.section-one-text {
    max-width: 350px;
    text-align: right;
}

.section-no span {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--light-gray);
    opacity: 0.8;
}

.section-number {
    font-size: 15rem; /* Massive size for '1' */
    font-weight: 900;
    line-height: 0.8;
    margin-bottom: 15px;
}

.section-one-text h2 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-one-text p {
    font-size: 0.9rem;
    color: var(--light-gray);
}

        /* Primary CTA Button - Added a distinct style */
        .primary-cta {
            display: block;
            width: fit-content;
            padding: 15px 30px;
            background-color: var(--accent-color);
            color: var(--dark-background);
            font-weight: 700;
            text-decoration: none;
            border-radius: 5px;
            margin-top: 30px;
            transition: background-color 0.3s;
            text-transform: uppercase;
            font-size: 0.9em;
        }

        .primary-cta:hover {
            background-color: #ffd76d;
            color:#000;
        }

        footer{display:flex; width:97%; margin:0px; padding:20px;
    text-align:center; font-size:12px; font-family: sans-serif;}

    /* Initial State: Hidden and slightly offset (move up from below) */
.animate-on-scroll {
    opacity: 0;
    /* Moves the text down by 30 pixels */
    transform: translateY(30px);
    /* Sets a smooth transition time */
    transition: opacity 1000ms ease-out, transform 800ms ease-out;
}

/* Final State: Visible and in place */
.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Optimization Sequence --- */
@media (max-width: 768px) {
    /* 1. Typography Scaling */
    .hero h1 {
        font-size: 3rem; /* Down from 5rem */
        line-height: 1.0;
    }

    .section-number {
        font-size: 8rem; /* Down from 15rem */
        line-height: 1.0;
    }

    /* 2. Layout Resets */
    .hero {
        flex-direction: column;
        padding: 60px 0 40px 0;
    }

    .hero .content {
        margin-left: 0; /* Remove space for sidebar text on mobile */
    }

    /* 3. Sidebar Transformation */
    /* On mobile, rotated absolute text causes horizontal overflow.
     *      We hide it or move it to maintain the clean edge. */
    .sidebar-text {
        position: relative;
        top: 0;
        transform: none;
        margin-bottom: 20px;
        opacity: 0.8;
    }

    .rotate-text {
        transform: none; /* Stop rotation for readability */
        display: inline-block;
        white-space: normal;
    }

    /* 4. Grid Stacking */
    .values-grid {
        grid-template-columns: 1fr; /* Stack items vertically */
        gap: 30px;
    }

    /* 5. Section One Adjustment */
    .section-one-container {
        height: auto; /* Allow content to dictate height */
        padding-bottom: 60px;
    }

    .section-one-content {
        position: static; /* Remove absolute positioning */
        text-align: left;
    }

    .section-one-text {
        max-width: 100%;
        text-align: left; /* Align left for mobile natural scroll */
    }

    /* 6. Footer normalization */
    footer {
        flex-direction: column;
        width: 100%;
        padding: 40px 20px;
    }
}

/* SFI INDEX: MASTER BRANDING OVERRIDE */
@media screen and (max-width: 768px) {
    /* 1. Reset Body for Clean Edge */
    body {
        overflow-x: hidden; /* Hard safety for large branding elements */
    }

    /* 2. Header & Logo Alignment */
    header {
        padding: 30px 0 10px 0;
        text-align: center; /* Center brand for mobile symmetry */
    }

    /* 3. Hero Scaling: Preserving the "Dena" Punch */
    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 2.8rem; /* Scaled for iPhone/Android widths */
        line-height: 1.1;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1rem;
        margin-top: 20px;
    }

    /* 4. Sidebar Text: The Rotation Fix */
    .sidebar-text {
        position: relative;
        top: 0;
        left: 0;
        display: block;
        margin-bottom: 10px;
        opacity: 0.5;
        text-align: left;
    }

    .rotate-text {
        transform: none; /* Forced reset */
        writing-mode: horizontal-tb; /* Ensure standard reading path */
        font-size: 10px;
        letter-spacing: 3px;
    }

    /* 5. Values Grid: Kinetic Stacking */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .value-item {
        padding-right: 0;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* 6. Section One: Scaling the "Massive" 1 */
    .section-one-container {
        height: auto; /* Collapse the 900px desktop height */
        padding-bottom: 40px;
        margin-top: 20px;
    }

    .section-number {
        font-size: 7rem; /* Large enough to be 'Institutional', small enough for mobile */
        margin-bottom: 10px;
        text-align: left;
    }

    .section-one-content {
        right: auto;
        top: auto;
        padding: 0;
    }

    .section-one-text {
        max-width: 100%;
        text-align: left; /* Essential for mobile legibility */
    }

    /* 7. Primary CTA: Thumb-Targeting */
    .primary-cta {
        width: 100%; /* Full-width mobile trigger */
        text-align: center;
        padding: 20px;
        font-size: 14px;
    }

    /* 8. Animation Timing for Mobile */
    .animate-on-scroll {
        transition: opacity 600ms ease-out, transform 500ms ease-out; /* Sharper for mobile scrolling */
    }
}