/* --- HERO --- */
@media screen and (min-width: 0rem) {
    .hero {
        padding-top: 200px;
        height: 650px;
    }

    .hero-content {
        max-width: 32rem;
        padding-inline: 16px;
        margin-inline: auto;
    }

    .hero-title {
        font-size: clamp(30px, 8.5vw, 46px);
        font-weight: 400;
    }

    .title-logo {
        text-transform: uppercase;
        font-family: 'Prosto One', sans-serif;
    }
    
    .buttons-container {
        margin-top: 32px;
        display: flex;
        flex-direction: row;
        gap: 12px;
    }

    .image-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 100%;
        z-index: -1;
        max-height: 650px;
    }

    .image-wrapper::after {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        content: "";
        background-color: rgba(255, 255, 255, 0.75);
        z-index: 0;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: right bottom; /* or tweak as needed */
        transform: scale(1.05);           /* zooms in slightly */
        transform-origin: right bottom;
        display: block;
    }
}
@media screen and (min-width: 64rem) {
    .hero {
        display: flex;
        align-items: center;
        height: 750px;
        background-image: linear-gradient(to right, #EFEFEF, #E7E7E7);
        position: relative;
    }

    .hero-content {
        max-width: 48%;
        margin-left: 32px;
        width: 48%;
        padding-bottom: 140px;
        padding-left: calc((100vw - 1280px) / 2.2);

    }

    .hero-title {
        font-size: clamp(42px, 4vw, 52px);
        max-width: none;
    }

    .hero .description {
        max-width: 85%;
        margin-left: 3px;
    }

    .image-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 52%;
        z-index: 1;
        max-height: 750px;
    }

    .image-wrapper::after {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        content: "";
        background: transparent;
        transform: scale(1.05);  
        transform-origin: right bottom;
        z-index: 1;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: right bottom; /* or tweak as needed */
        transform: scale(1.05);           /* zooms in slightly */
        transform-origin: right bottom;
        display: block;

        mask-image: 
    /* left (0%) transparent → right (100%) opaque */  
    linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 70%),
    /* top (0%) transparent → bottom (100%) opaque */
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,1) 100%);
  
  /* compose the two masks by intersecting them */
  mask-composite: intersect;
  
  /* WebKit prefix for Safari/old Edge */
  -webkit-mask-image: 
    linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 70%),
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,1) 100%);
  -webkit-mask-composite: source-in;
    }
}

/* --- WHAT WE DO --- */
@media screen and (min-width: 0rem) {
    .what-we-do-content {
        margin-top: 32px;
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .what-we-do-item-title-container {
        display: flex;
        gap: 16px;
        align-items: start;
    }

    .checkmark {
        width: 22px;
        margin-top: 4px;
    }

    .what-we-do-item-title {
        font-size: 20px;
    }

    .what-we-do-item-description {
       margin-top: 16px;
       color: var(--text-color);
    }
}
@media screen and (min-width: 64rem) {
    .what-we-do-header {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(1, 1fr);
        gap: 32px;
        align-items: end;
    }

    .what-we-do-header .description {
        margin-top: 0px;
    }

    .what-we-do-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        row-gap: 60px;
        column-gap: 42px;
        margin-top: 48px;
    }
}

/* --- STATS --- */
@media screen and (min-width: 0rem) {
    .stats-container {
        overflow-x: hidden;
        padding-top: 60px;
        padding-inline: 16px;
        margin-inline: auto;
        max-width: 32rem;
    }

    .stats-image {
        width: 100%;
        max-width: 32rem;
        overflow-x: hidden;
        margin-top: 32px;
        border-radius: 8px;
    }

    .stats {
        display: flex;
        justify-content: space-between;
        text-align: center;
        margin-top: 32px;
        font-weight: 400;
        gap: 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-description {
        font-size: 12px;
        margin-top: 12px;
    }
}
@media screen and (min-width: 64rem) {
    .stats-container {
        max-width: none;
        padding-top: 100px;
    }

    .stats-container .title {
        max-width: 80rem;
        margin-inline: auto;
        font-size: 52px;
    }

    .stats-container picture {
        margin-inline: auto;
        padding-inline: auto;
    }

    .stats-image {
        width: 100%;
        max-width: 80rem;
        margin-top: 32px;
        border-radius: 20px;
    }

    .stats-content {
        margin-top: 16px;
        max-width: 80rem;
        margin-inline: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(1, 1fr);
        align-items: center;
        gap: 100px;
    }

    .stats-content .description {
        margin-left: 8px;
    }

    .stats {
        display: flex;
        flex-direction: row;
        justify-content: right;
        gap: 100px;
        margin-top: 0px;
    }

    .stat-value {
        font-size: 40px;
    }

    .stat-description {
        font-size: 16px;
    }
    
}

/* --- PORTFOLIO --- */
@media screen and (min-width: 0rem) {
    .portfolio-container {
        margin-top: 32px;
    }

    .portfolio-image-container {
        position: relative;
        width: 100vw;
        margin-left: -16px;
        max-width: 32rem;

    }

    .portfolio-image-container::after {
        width: 100%;
        height: 98%;
        content: "";
        left: 0;
        top: 0;
        background-color: black;
        opacity: 0.6;
        position: absolute;     
        z-index: 0;
    }

    .portfolio-image {
        clip-path: inset(0 0 0 0px);
        margin-bottom: -8px;
    }

    .portfolio-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
        text-decoration: none;
        color: white;
        font-weight: 400;
        font-size: 16px;
        text-transform: uppercase;
        border: 0.3px white solid;
        padding: 12px 36px;
        text-align: center;
        border-radius: 5px;
    }
}
@media screen and (min-width: 64rem) {
    .portfolio-header {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(1, 1fr);
        align-items: start;
        gap: 32px;
    }

    .portfolio-header .description {
        margin-top: 24px;
    }

    .portfolio-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-image-container {
        width: 100%;
        margin: 0px;
        max-width: none;
    }

    .portfolio-image {
        clip-path: none;
        margin-bottom: 0px;
    }

    .portfolio-image-container::after {
        opacity: 0;
    }

    .portfolio-image-container:hover::after {
        width: 100%;
        height: 98%;
        content: "";
        left: 0;
        top: 0;
        background-color: black;
        opacity: 0.6;
        position: absolute;     
        z-index: 0;
    }

    .portfolio-button {
        display: none;
    }

    .portfolio-image-container:hover .portfolio-button {
        display: inline-block;
    }
}

/* --- PROCESS --- */
@media screen and (min-width: 0rem) {
    .process-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 16px;
        margin-top: 32px;
        padding-bottom: 48px;
    }

    .process-card {
        background-color: var(--background-color);
        border: 0.1px black solid;
        border-radius: 12px;
        padding: 24px 18px;
    }

    .process-card-eyebrow-text {
        text-transform: capitalize;
        border-left: 1px solid var(--custom-black);
        padding-left: 8px;
        margin-left: 2px;
        font-size: 18px;
        font-weight: 400;
        opacity: 0.8;
    }

    .process-card-title {
        font-size: 28px;
        font-weight: 400;
        margin-top: 120px;
    }

    .process-card-description {
        font-weight: 400;
        font-size: 16px;
        margin-top: 16px;
        color: var(--text-color);
    }
}
@media screen and (min-width: 64rem) {
    .process-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(1, 1fr);
        margin-top: 48px;
    }

    .process-content .description {
        margin-top: 0px;
    }
}