﻿main {
    overflow: hidden;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr;
    height: 600px;
    width: 100%;
    background: #eff4ff;
    overflow: hidden;
}

.about-hero-img {
    position: relative;
    overflow: hidden;
}

.about-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: path('M0,0 H1000 V1000 H0 C0 700, 100 400, 0 0 Z');
    opacity: 0;
    animation: fadeIn 2s ease forwards;
}

.about-hero-text {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeInFromBottom 2s ease forwards;
    opacity: 0;
}

.about-hero-text h1 {
    
    font-weight: 700;
    font-size: 3.5rem;
    text-align: center;
    color: #101828;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.about-hero-text h2 {
   
    text-align: center;
    font-weight: normal;
    font-size: 2.5rem;
    color: #101828;
    line-height: 1.3;
}

.rm-faded-logo-bg {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.rm-faded-background-logo {
    position: absolute;
    left: 23%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: auto;
    opacity: 1;
    fill: #e3ebff;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.02);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInFromBottom {
    from {
        opacity: 0;
        transform: translateY(5%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}






















/* Story Section */
.about-story {
    padding: 4rem 0;
    position: relative;
    background-color: #ffffff;
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
}

.story-content h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.3;
    color: #101828;
    font-family: 'Nunito', sans-serif;
}

.story-content h3 {
    display: none;
}

.story-text {
    font-size: 1.2rem;
    line-height: 1.4;
    color: #475569;
    font-family: 'Nunito', sans-serif;
}

.story-text p {
    margin-bottom: 1.5rem;
    break-inside: avoid;
}

.nz-fern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.03; 
}

.nz-fern svg {
    width: 110%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scaleX(-1);
    fill: #000;
}














/* Values Section */
.about-values {
    background: linear-gradient(to bottom, #ffffff, #eff4ff);
    padding: 4rem 0 0 0;
    display: flex;
    justify-content: center;
}

.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.value-item svg {
    width: 60px;
    fill: #155dee;
}

.about-values h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.3;
    color: #101828;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
}

.value-item {
    background: #eff4ff;
    border: 1px solid #155dee;
    border-radius: 5px;
    padding: 2rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.value-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #101828;
}

.value-item p {
    color: #344054;
    line-height: 1.6;
    text-align: center;
}












/* Responsive tweaks */
@media (max-width: 1200px) {
    .story-content {
        padding: 0 10px;
    }

    .story-text {
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    .nz-fern {
        width: 1000px;
        height: 1000px;
    }

    .story-content h3 {
        display: block;
        text-align: center;
        margin-bottom: 2rem;
        line-height: 1.3;
        color: #101828;
        font-family: 'Nunito', sans-serif;
    }

    .story-content h2 {
        margin-bottom: 0;
    }

    .about-hero-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .about-hero-img {
        order: 1;
        height: 400px;
    }

    .about-hero-img img {
        height: 100%;
        clip-path: none;
    }

    .about-hero-text {
        display: none;
    }

    .about-hero-text h1 {
        font-size: 2.5rem;
    }

    .about-hero-text h2 {
        font-size: 1.8rem;
    }

    .rm-faded-background-logo {
        width: 500px;
    }
}

@media (max-width: 1240px) {
    .value-item h3 {
        font-size: 1.1rem;
    }

    .value-item p {
        font-size: 0.95rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}

@media (max-width: 700px) {
    .story-content h2,
    .about-values h2 {
        font-size: 2.2rem;
    }
}
