main {
    padding: 0 32px;
}

.introduction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin: 36.25px 0 50.73px;
}

.introduction>img {
    height: auto;
    width: clamp(260px, 50vw, 677px);
    flex-shrink: 0;
}

#mainImage {
    width: 100%;
    height: 539px;
}

#mainImage,
.teamMemberPhoto {
    object-fit: cover;
    display: block;
}

#introductionText {
    flex-shrink: 1;
    min-width: 180px;
}

.introduction p {
    max-width: 606px;
    font-size: 20px;
    text-align: end;
    line-height: 22px;
}

.introductionTextBottomParagraph {
    margin-top: 20px;
}

h2 {
    font-size: 70px;
}

#aboutUsContainer {
    margin: 190px 0 90px;
}

.aboutUs {
    display: flex;
    margin-top: 26px;
}

.aboutUs p {
    line-height: 22px;
}

.aboutUsLeftSide {
    width: 564px;
}

.aboutUsRightSide {
    margin-left: 219px;
    max-width: 564px;
}

.aboutUsFirstParagraph {
    margin-bottom: 30px;
}

.team_members {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.teamMember {
    flex: 0 0 auto;
}

.teamMemberPhotoWrapper {
    position: relative;
    width: 201px;
    height: 205px;
    display: block;
}

.teamMemberPhoto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.teamMemberFrameOverlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}

#projects {
    margin: 197px 0 226px;
}

#projectsSectionText {
    text-align: end;
    display: flex;
    flex-direction: column;
    align-items: end;
}

#projectsSectionDescription {
    max-width: 1064px;
    font-size: 20px;
    margin: 25px 0 71px;
}

.projectsWrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    box-sizing: border-box;
    padding: 0 8px;
}

/* ─── Category (card container) ─────────────────────────────────────────── */

.category {
    position: relative;
    width: 100%;
    height: 247px;
    transition:
        width 299ms ease,
        height 299ms ease,
        transform 299ms ease;
}

.category:has(.project:hover) {
    height: 254.96px;
    transition:
        width 95ms cubic-bezier(0.34, 1.56, 0.64, 1),
        height 95ms cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 95ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category:nth-child(odd):has(.project:hover) {
    width: 652px;
    flex-shrink: 0;
}

.category:nth-child(even):has(.project:hover) {
    width: 652px;
    flex-shrink: 0;
    transform: translateX(calc(50vw - 697.5px));
}

/* ─── Project card (inner) ───────────────────────────────────────────────── */

.project {
    background-color: #EFD919;
    background-size: cover;
    background-position: center;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    text-decoration: none;
    color: inherit;
    transition:
        top 299ms ease,
        left 299ms ease,
        width 299ms ease,
        height 299ms ease;
}

/*
 * FIX: Image was 1px too wide. Width reduced by 1px and left shifted by
 * 0.5px so the reduction is split evenly across both sides, keeping the
 * image centred inside the frame.
 */
.category:has(.project:hover) .project {
    top: 5.9%;
    left: calc(2.25% + 0.5px);
    width: calc(95.5% - 1px);
    height: 88.2%;
    transition:
        top 95ms cubic-bezier(0.34, 1.56, 0.64, 1),
        left 95ms cubic-bezier(0.34, 1.56, 0.64, 1),
        width 95ms cubic-bezier(0.34, 1.56, 0.64, 1),
        height 95ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project.has-image {
    background-size: cover;
    background-position: center;
    background-clip: content-box;
}

.project.no-image .project-overlay {
    display: none;
}

/* ─── Frame overlay ──────────────────────────────────────────────────────── */

.category_frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
    opacity: 0;
    transition: opacity 50ms 299ms;
}

.category:has(.project:hover) .category_frame {
    opacity: 1;
    transition: opacity 95ms 0ms;
}

/* ─── "See More" label ───────────────────────────────────────────────────── */

.seeMore {
    display: none;
}

/*
 * FIX: margin-left changed from 1.35208vw (≈ 26px at 1920px) to 18px
 * to match .projectText's margin-left at the same breakpoint.
 */
.category:has(.project:hover) .seeMore {
    display: block;
    color: white;
    font-size: 2.62447vw;
    font-weight: bold;
    line-height: 2.52083vw;
    margin-left: 18px;
    margin-bottom: 18px;
}

/* ─── Project label ──────────────────────────────────────────────────────── */

.projectText {
    position: relative;
    z-index: 1;
    max-width: 400px;
    font-size: 34.37px;
    font-family: 'SF Pro Display Medium';
    margin: 0 0 12px 18px;
    transition: transform 80ms ease;
    color: #fff;
}

.project.no-image .projectText {
    color: #040404;
}

.category:has(.project:hover) .projectText {
    position: absolute;
    transform: translateY(-157px);
    transition: transform 95ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

footer {
    color: white;
    padding: 157px 32px 41.41px 28px;
    background-color: #040404;
}

#getInTouch {
    font-size: 93.87px;
    line-height: 90.1px;
    margin-bottom: 21px;
}

#getInTouchText {
    max-width: 545.14px;
    font-size: 29.71px;
    line-height: 32px;
}

#mailAndPhone {
    display: flex;
    justify-content: space-between;
    margin: 196px 0 211.2px;
}

.footerInfo {
    display: flex;
    justify-content: space-between;
    font-size: 28.97px;
}

#socialMedia a {
    color: transparent;
}

#socialMedia img {
    width: 45.25px;
    height: 45.68px;
}

.dividingLine {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — ≤ 1440 px
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1440px) {
    #introductionAndMainImage {
        display: flex;
        flex-direction: column;
    }

    #mainImage {
        height: clamp(289px, calc(289px + 250 * (100vw - 800px) / 600), 539px);
    }

    #introductionText p {
        margin-left: auto;
        font-size: clamp(14px, 1.8vw, 20px);
    }

    #aboutUsContainer {
        margin-top: 190px;
    }

    .aboutUsRightSide {
        margin-left: clamp(0px, calc(219 * (100vw - 800px) / 600), 219px);
        max-width: 564px;
    }

    .team_members {
        gap: clamp(20px, calc(22px - 2 * (100vw - 800px) / 600), 22px);
    }

    #projectsSectionDescription {
        margin-bottom: clamp(39.14px, calc(39.14px + 31.86 * (100vw - 800px) / 600), 71px);
    }

    .projectText {
        font-size: clamp(34.37px, calc(36.99px - 2.62 * (100vw - 800px) / 600), 36.99px);
        margin: 0 0 clamp(12px, calc(12.92px - 0.92 * (100vw - 800px) / 600), 12.92px) clamp(18px, calc(19.37px - 1.37 * (100vw - 800px) / 600), 19.37px);
    }

    /*
     * FIX: margin-left uses the same clamp as .projectText so they stay
     * aligned across the full 800–1440 px range.
     */
    .category:has(.project:hover) .seeMore {
        margin-left: clamp(18px, calc(19.37px - 1.37 * (100vw - 800px) / 600), 19.37px);
    }

    footer {
        padding-top: clamp(37px, calc(37px + 120 * (100vw - 800px) / 600), 157px);
        padding-right: clamp(31.57px, calc(31.57px + 0.43 * (100vw - 800px) / 600), 32px);
        padding-bottom: clamp(0px, calc(41.41 * (100vw - 800px) / 600), 41.41px);
        padding-left: clamp(18px, calc(18px + 10 * (100vw - 800px) / 600), 28px);
    }

    #getInTouch {
        font-size: clamp(54px, calc(54px + 39.87 * (100vw - 800px) / 600), 93.87px);
        line-height: clamp(51.8px, calc(51.8px + 38.3 * (100vw - 800px) / 600), 90.1px);
    }

    #getInTouchText {
        font-size: clamp(18.68px, calc(18.68px + 11.03 * (100vw - 800px) / 600), 29.71px);
        line-height: clamp(20.1px, calc(20.1px + 11.9 * (100vw - 800px) / 600), 32px);
    }

    #socialMedia img {
        width: 40.6px;
        height: 40.99px;
    }

    #mailAndPhone {
        margin: clamp(109.78px, calc(109.78px + 86.22 * (100vw - 800px) / 600), 196px) clamp(0px, calc(15px - 15 * (100vw - 800px) / 600), 15px) clamp(43px, calc(43px + 168.2 * (100vw - 800px) / 600), 211.2px) 0;
    }

    .footerInfo {
        font-size: clamp(18.31px, calc(18.31px + 10.66 * (100vw - 800px) / 600), 28.97px);
    }

    .category:nth-child(odd):has(.project:hover) {
        width: 45.27vw;
        flex-shrink: 0;
    }

    .category:nth-child(even):has(.project:hover) {
        width: 45.27vw;
        flex-shrink: 0;
        transform: translateX(calc(4.73vw - 45.5px));
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — ≤ 800 px   (single-column, full-width cards)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 800px) {

    /* ── Non-project layout ────────────────────────────────── */
    .introduction {
        display: contents;
    }

    #introductionAndMainImage {
        display: flex;
        flex-direction: column;
        margin-top: 24.04px;
    }

    .introduction>img {
        order: 0;
        align-self: flex-start;
        width: 100%;
        margin-bottom: 37.64px;
    }

    #mainImage {
        order: 1;
        height: clamp(135px, calc(135px + 154 * (100vw - 376px) / 424), 289px);
        margin-bottom: clamp(20.79px, calc(20.79px + 18.21 * (100vw - 376px) / 424), 39px);
        margin-top: 0;
    }

    #introductionText {
        order: 2;
        margin-top: 0;
        margin-left: 0;
        text-align: right;
    }

    #introductionText p {
        font-size: clamp(9.36px, calc(9.36px + 10.64 * (100vw - 376px) / 424), 20px);
    }

    main {
        padding: 0 clamp(14.97px, calc(14.97px + 17.03 * (100vw - 376px) / 424), 32px) 0 clamp(15.69px, calc(15.69px + 16.31 * (100vw - 376px) / 424), 32px);
    }

    .introductionTextBottomParagraph {
        margin-top: clamp(9.02px, calc(9.02px + 10.98 * (100vw - 376px) / 424), 20px);
    }

    h2 {
        font-size: clamp(32.75px, calc(32.75px + 37.25 * (100vw - 376px) / 424), 70px);
    }

    .aboutUs {
        flex-direction: column;
        margin-top: clamp(12.64px, calc(12.64px + 13.36 * (100vw - 376px) / 424), 26px);
    }

    #aboutUsContainer {
        margin: 55px 0 55px;
    }

    .aboutUsLeftSide {
        width: unset;
    }

    .aboutUs p {
        font-size: clamp(9.36px, calc(9.36px + 10.64 * (100vw - 376px) / 424), 20px);
        margin-bottom: 28px;
    }

    .aboutUsRightSide {
        margin-bottom: 0 !important;
    }

    .team_members {
        gap: clamp(10.36px, calc(10.36px + 11.64 * (100vw - 376px) / 424), 22px);
        margin-top: clamp(0px, calc(15px - 15 * (100vw - 376px) / 424), 15px);
    }

    .teamMemberPhotoWrapper {
        width: 167.2px;
        height: 170.53px;
    }

    .teamMember p {
        font-size: 13.31px;
    }

    #projects {
        margin-top: 15px;
    }

    #projectsSectionDescription {
        max-width: clamp(266px, calc(266px + 798 * (100vw - 376px) / 424), 1064px);
        font-size: clamp(9.36px, calc(9.36px + 10.64 * (100vw - 376px) / 424), 20px);
        margin: clamp(8.25px, calc(8.25px + 16.75 * (100vw - 376px) / 424), 25px) 0 clamp(18.31px, calc(18.31px + 20.83 * (100vw - 376px) / 424), 39.14px);
    }

    /* ── Single-column project grid ────────────────────────── */

    .projectsWrapper {
        grid-template-columns: 1fr;
    }

    .category {
        width: 100%;
        height: 264.71px;
    }

    .category:has(.project:hover),
    .category:nth-child(odd):has(.project:hover),
    .category:nth-child(even):has(.project:hover) {
        width: 100%;
        height: 264.71px;
        transform: none;
    }

    .category:has(.project:hover) .projectText {
        transform: translateY(-163px);
    }

    /*
     * FIX: margin-left matches .projectText (inherited 18px from base rule).
     * Removed the vw-based value that caused misalignment on narrow screens.
     */
    .category:has(.project:hover) .seeMore {
        font-size: clamp(34.37px, calc(36.99px - 2.62 * (100vw - 800px) / 600), 36.99px);
        line-height: clamp(7px, 2.52083vw, 20px);
        margin-left: 18px;
    }

    /* ── Footer ───────────────────────────────────────────── */
    footer {
        display: grid;
        padding-top: clamp(17.89px, calc(17.89px + 19.11 * (100vw - 376px) / 424), 37px);
        padding-right: clamp(16.15px, calc(16.15px + 15.42 * (100vw - 376px) / 424), 31.57px);
        padding-bottom: 0px;
        padding-left: clamp(8.42px, calc(8.42px + 9.58 * (100vw - 376px) / 424), 18px);
    }

    #getInTouch {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        align-self: center;
        font-size: clamp(25.26px, calc(25.26px + 28.74 * (100vw - 376px) / 424), 54px);
        line-height: clamp(24.24px, calc(24.24px + 27.56 * (100vw - 376px) / 424), 51.8px);
    }

    .dividingLine {
        display: inline-block;
    }

    #socialMedia {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: center;
    }

    #socialMedia img {
        width: clamp(19px, calc(19px + 21 * (100vw - 376px) / 424), 40px);
        height: clamp(19px, calc(19px + 21 * (100vw - 376px) / 424), 40px);
    }

    #mailAndPhone {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        align-self: center;
        margin: 109.78px 15px 43px 0;
        flex-wrap: wrap;
    }

    #address {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        align-self: center;
        margin: 109.78px 0 43px;
    }

    #getInTouchText {
        font-size: clamp(8.74px, calc(8.74px + 9.94 * (100vw - 376px) / 424), 18.68px);
        line-height: clamp(9.41px, calc(9.41px + 10.69 * (100vw - 376px) / 424), 20.1px);
    }

    .footerInfo {
        font-size: clamp(8.57px, calc(8.57px + 9.74 * (100vw - 376px) / 424), 18.31px);
        display: contents;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — ≤ 376 px
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 376px) {
    main {
        padding: 0 14.97px 0 15.69px;
    }

    #mainImage {
        height: 135px;
        margin-bottom: 20.79px;
    }

    #introductionText p,
    .aboutUs p,
    #projectsSectionDescription {
        font-size: 9.36px;
    }

    .introductionTextBottomParagraph {
        margin-top: 9.02px;
    }

    h2 {
        font-size: 32.75px;
    }

    .aboutUs {
        flex-direction: column;
        margin-top: 12.64px;
    }

    .aboutUsLeftSide {
        width: unset;
    }

    .aboutUsRightSide {
        margin: 0 !important;
    }

    .aboutUs p {
        margin-bottom: 12.2px;
    }

    .team_members {
        gap: 10.36px;
        margin-top: 15px;
    }

    .teamMemberPhotoWrapper {
        width: 78.23px;
        height: 79.78px;
    }

    .teamMember p {
        font-size: 6.23px;
    }

    #projects {
        margin: 7.02px 0 29.19px;
    }

    #projectsSectionDescription {
        max-width: 266px;
        margin: 8.25px 0 18.31px;
    }

    .category {
        height: 123.89px;
    }

    .category:has(.project:hover),
    .category:nth-child(odd):has(.project:hover),
    .category:nth-child(even):has(.project:hover) {
        width: 100%;
        height: 123.89px;
        transform: none;
    }

    .category:has(.project:hover) .projectText {
        transform: translateY(-76px);
    }

    .projectText {
        font-size: 17.3px;
        margin: 0 9.03px 6.04px;
    }

    /*
     * FIX: margin-left set to 9.03px to match .projectText's margin-left
     * at this breakpoint (previously inherited the wrong value).
     */
    .category:has(.project:hover) .seeMore {
        font-size: 17.3px;
        margin-left: 9.03px;
    }

    footer {
        padding: 17.89px 16.15px 0 8.42px;
    }

    #getInTouch {
        font-size: 25.26px;
    }

    #getInTouchText {
        font-size: 8.74px;
    }

    #socialMedia img {
        width: 19px;
        height: 19px;
    }

    .footerInfo span {
        font-size: 8.57px;
    }
}