/* ============================================================
   EXPERTISE
   Champagne architectural drawing board
============================================================ */

.expertiseSection {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(
            125deg,
            #f8f1e2 0%,
            #e6d2a9 42%,
            #d4b77d 100%
        );
    color: var(--wine-950);
}


/* ============================================================
   LIGHT AND TEXTURE
============================================================ */

.expertiseSection::before {
    position: absolute;
    z-index: -4;
    inset: 0;
    background:
        radial-gradient(
            circle at 18% 24%,
            rgba(255, 255, 255, 0.92),
            transparent 31%
        ),
        radial-gradient(
            circle at 84% 72%,
            rgba(116, 43, 43, 0.11),
            transparent 38%
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.22),
            transparent 46%
        );
    content: "";
}

.expertiseSection::after {
    position: absolute;
    z-index: -3;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(43, 13, 13, 0.014) 0,
            rgba(43, 13, 13, 0.014) 1px,
            transparent 1px,
            transparent 4px
        );
    content: "";
    opacity: 0.6;
    pointer-events: none;
}


/* ============================================================
   PARALLAX PLANS
============================================================ */

.expertisePlan {
    position: absolute;
    z-index: -2;
    width: 820px;
    height: 650px;
    background-image: url("../img/blueprint-floorplan.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    will-change: transform;
}

.expertisePlanBack {
    top: -130px;
    right: -170px;
    opacity: 0.105;
    filter: sepia(1) saturate(0.45);
    transform:
        translate3d(0, var(--expertise-parallax-y, 0), 0)
        rotate(-5deg);
}

.expertisePlanFront {
    bottom: -250px;
    left: -210px;
    opacity: 0.06;
    filter: sepia(1) saturate(0.55);
    transform:
        translate3d(0, var(--expertise-parallax-y, 0), 0)
        rotate(7deg)
        scale(1.14);
}


/* ============================================================
   DIMENSION LINE
============================================================ */

.expertiseDimensionLine {
    position: absolute;
    z-index: -1;
    top: 10%;
    right: 5%;
    width: 1px;
    height: 76%;
    background: rgba(90, 31, 31, 0.20);
}

.expertiseDimensionLine::before,
.expertiseDimensionLine::after {
    position: absolute;
    left: -6px;
    width: 13px;
    height: 1px;
    background: rgba(90, 31, 31, 0.32);
    content: "";
}

.expertiseDimensionLine::before {
    top: 0;
}

.expertiseDimensionLine::after {
    bottom: 0;
}

.expertiseDimensionLine span {
    position: absolute;
    top: 50%;
    left: 10px;
    color: rgba(90, 31, 31, 0.40);
    font-family: "Courier New", monospace;
    font-size: 0.58rem;
    letter-spacing: 0.13em;
    transform: rotate(90deg);
    transform-origin: left center;
}


/* ============================================================
   CONTAINER
============================================================ */

.expertiseContainer {
    position: relative;
    z-index: 2;
}


/* ============================================================
   HEADER
============================================================ */

.expertiseHeader {
    display: grid;
    grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1.45fr);
    gap: clamp(55px, 8vw, 120px);
    align-items: end;
    margin-bottom: 78px;
}

.expertiseHeaderMeta .sectionIndex {
    color: var(--wine-800);
}

.expertiseHeaderMeta .sectionLabel {
    color: var(--wine-800);
}

.expertiseHeaderMain {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
    gap: 55px;
    align-items: end;
}

.expertiseHeaderMain h2 {
    margin: 0;
    color: var(--wine-950);
    font-family: var(--font-display);
    font-size: clamp(3.3rem, 5.6vw, 5.9rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.expertiseHeaderMain h2 span {
    display: block;
    margin-top: 7px;
    color: var(--bronze-700);
    font-style: italic;
    font-weight: 500;
}

.expertiseHeaderMain p {
    margin: 0;
    color: rgba(43, 13, 13, 0.66);
    font-size: 0.94rem;
    line-height: 1.85;
}


/* ============================================================
   BOARD
============================================================ */

.expertiseBoard {
    display: grid;
    grid-template-columns:
        minmax(380px, 0.92fr)
        minmax(0, 1.08fr);
    box-shadow:
        0 38px 90px rgba(70, 38, 10, 0.18),
        0 2px 0 rgba(255, 255, 255, 0.40) inset;
}


/* ============================================================
   PRIMARY PANEL
============================================================ */

.expertisePrimary {
    position: relative;
    display: flex;
    min-height: 760px;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(38px, 4.3vw, 62px);
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            rgba(61, 20, 20, 0.985),
            rgba(43, 13, 13, 0.99)
        );
    color: var(--white);
}

.expertisePrimary::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 52%;
    height: 35%;
    border-bottom: 1px solid rgba(201, 166, 107, 0.17);
    border-left: 1px solid rgba(201, 166, 107, 0.17);
    content: "";
}

.expertisePrimary::after {
    position: absolute;
    right: 42px;
    bottom: 42px;
    width: 130px;
    height: 74px;
    border-right: 1px solid rgba(201, 166, 107, 0.24);
    border-bottom: 1px solid rgba(201, 166, 107, 0.24);
    content: "";
}

.expertisePrimaryHeader,
.expertisePrimaryContent,
.expertiseTags {
    position: relative;
    z-index: 2;
}

.expertisePrimaryHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.expertisePrimary .expertiseNumber {
    color: var(--gold-400);
}

.expertiseNumber {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
}

.expertiseCategory {
    color: var(--bronze-700);
    font-size: 0.59rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.expertisePrimary .expertiseCategory {
    color: rgba(201, 166, 107, 0.82);
}


/* ============================================================
   ARCHITECTURAL DRAWING
============================================================ */

.expertisePrimaryDrawing {
    position: absolute;
    z-index: 1;
    top: 14%;
    right: -65px;
    width: min(82%, 480px);
    opacity: 0.17;
    transition:
        opacity 600ms ease,
        transform 900ms cubic-bezier(.2, .65, .3, 1);
}

.expertisePrimary:hover .expertisePrimaryDrawing {
    opacity: 0.26;
    transform: translate(-12px, 8px);
}

.expertisePrimaryDrawing svg {
    width: 100%;
    height: auto;
    stroke: var(--gold-400);
    stroke-width: 1;
}

.expertiseDrawingText {
    fill: var(--gold-400);
    stroke: none;
    font-family: "Courier New", monospace;
    font-size: 7px;
    letter-spacing: 1px;
}


/* ============================================================
   PRIMARY CONTENT
============================================================ */

.expertiseOverline {
    display: block;
    margin-bottom: 16px;
    color: var(--gold-400);
    font-size: 0.61rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.expertisePrimary h3 {
    max-width: 570px;
    margin: 0 0 25px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 5vw, 5.6rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.91;
}

.expertisePrimary p {
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.96rem;
    line-height: 1.82;
}

.expertiseTags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding-top: 30px;
    border-top: 1px solid rgba(201, 166, 107, 0.20);
}

.expertiseTags span {
    padding: 8px 11px;
    border: 1px solid rgba(201, 166, 107, 0.28);
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}


/* ============================================================
   SECONDARY DISCIPLINES
============================================================ */

.expertiseDisciplines {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: rgba(255, 251, 243, 0.92);
}

.expertiseDiscipline {
    position: relative;
    display: flex;
    min-height: 310px;
    flex-direction: column;
    justify-content: space-between;
    padding: 37px;
    overflow: hidden;
    border-right: 1px solid rgba(90, 31, 31, 0.13);
    border-bottom: 1px solid rgba(90, 31, 31, 0.13);
    transition:
        background 450ms ease,
        transform 450ms ease,
        box-shadow 450ms ease;
}

.expertiseDiscipline:nth-child(even) {
    border-right: 0;
}

.expertiseDiscipline::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            145deg,
            rgba(201, 166, 107, 0.23),
            transparent 62%
        );
    content: "";
    opacity: 0;
    transition: opacity 450ms ease;
}

.expertiseDiscipline:hover {
    z-index: 2;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 50px rgba(70, 38, 10, 0.13);
    transform: translateY(-5px);
}

.expertiseDiscipline:hover::before {
    opacity: 1;
}

.expertiseDisciplineTop,
.expertiseDiscipline > div:nth-child(2),
.expertiseDisciplineLine {
    position: relative;
    z-index: 2;
}

.expertiseDisciplineTop {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.expertiseDiscipline .expertiseNumber {
    color: var(--wine-800);
}

.expertiseCode {
    color: rgba(90, 31, 31, 0.36);
    font-family: "Courier New", monospace;
    font-size: 0.55rem;
    letter-spacing: 0.11em;
}

.expertiseDiscipline h3 {
    margin: 8px 0 13px;
    color: var(--wine-950);
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 2.5vw, 2.65rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.02;
}

.expertiseDiscipline p {
    margin: 0;
    color: rgba(43, 13, 13, 0.62);
    font-size: 0.84rem;
    line-height: 1.7;
}

.expertiseDisciplineLine {
    width: 46px;
    height: 1px;
    margin-top: 28px;
    background: var(--bronze-600);
    transition: width 500ms ease;
}

.expertiseDiscipline:hover .expertiseDisciplineLine {
    width: 100%;
}

.expertiseDisciplineWide {
    grid-column: span 2;
    min-height: 265px;
}

.expertiseDisciplineWide p {
    max-width: 760px;
}


/* ============================================================
   FOOTER
============================================================ */

.expertiseFooter {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
    gap: 65px;
    align-items: center;
    margin-top: 68px;
    padding-top: 34px;
    border-top: 1px solid rgba(90, 31, 31, 0.21);
}

.expertiseProcess {
    display: flex;
    align-items: center;
    gap: 13px;
}

.expertiseProcess span {
    color: var(--wine-900);
    font-size: 0.57rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.expertiseProcess i {
    position: relative;
    flex: 1;
    min-width: 20px;
    height: 1px;
    background: rgba(90, 31, 31, 0.28);
}

.expertiseProcess i::after {
    position: absolute;
    top: -2px;
    right: 0;
    width: 5px;
    height: 5px;
    border-top: 1px solid var(--wine-800);
    border-right: 1px solid var(--wine-800);
    content: "";
    transform: rotate(45deg);
}

.expertiseFooter p {
    margin: 0;
    color: rgba(43, 13, 13, 0.63);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.35;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1050px) {

    .expertiseHeaderMain {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .expertiseBoard {
        grid-template-columns: 0.9fr 1.1fr;
    }

    .expertiseDiscipline {
        min-height: 330px;
        padding: 30px;
    }

}


@media (max-width: 880px) {

    .expertiseHeader {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .expertisePrimary {
        min-height: 650px;
    }

    .expertiseFooter {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .expertisePlan {
        opacity: 0.045;
    }

}


@media (max-width: 620px) {

    .expertisePrimary {
        min-height: 610px;
        padding: 34px 25px;
    }

    .expertisePrimaryDrawing {
        top: 18%;
        right: -100px;
        width: 115%;
    }

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

    .expertiseDiscipline,
    .expertiseDisciplineWide {
        grid-column: auto;
        min-height: 280px;
        border-right: 0;
        padding: 29px 24px;
    }

    .expertiseProcess {
        flex-wrap: wrap;
    }

    .expertiseProcess i {
        flex: 0 0 22px;
    }

    .expertiseDimensionLine {
        display: none;
    }

}