/* ============================================================
   SECTORS
   Premium architectural index
============================================================ */

.sectorsSection {
    position: relative;
    isolation: isolate;
    padding: 140px 0;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 82% 20%,
            rgba(150, 112, 68, 0.18),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            #351010 0%,
            #491818 48%,
            #2b0d0d 100%
        );
    color: var(--white);
}


/* ============================================================
   BACKGROUND PLAN
============================================================ */

.sectorsBlueprint {
    position: absolute;
    z-index: -3;
    top: -14%;
    right: -12%;
    width: min(72vw, 1100px);
    height: 128%;
    background-image: url("../img/blueprint-floorplan.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.055;
    filter:
        sepia(1)
        saturate(0.35)
        brightness(1.8);
    pointer-events: none;
    animation: sectorsBlueprintFloat 30s ease-in-out infinite alternate;
}

.sectorsSection::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(43, 13, 13, 0.96) 0%,
            rgba(43, 13, 13, 0.78) 40%,
            rgba(43, 13, 13, 0.36) 100%
        );
    content: "";
}

.sectorsSection::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(201, 166, 107, 0.022) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(201, 166, 107, 0.022) 1px,
            transparent 1px
        );
    background-size: 66px 66px;
    content: "";
    pointer-events: none;
}


/* ============================================================
   TECHNICAL LABELS
============================================================ */

.sectorsTechnicalMark {
    position: absolute;
    z-index: 1;
    color: rgba(201, 166, 107, 0.23);
    font-family: "Courier New", monospace;
    font-size: 0.57rem;
    letter-spacing: 0.17em;
    pointer-events: none;
}

.sectorsMarkOne {
    top: 90px;
    right: 4%;
}

.sectorsMarkTwo {
    right: 2%;
    bottom: 110px;
    transform: rotate(90deg);
}


/* ============================================================
   MAIN LAYOUT
============================================================ */

.sectorsGrid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns:
        minmax(310px, 0.72fr)
        minmax(0, 1.28fr);
    gap: clamp(70px, 9vw, 145px);
    align-items: start;
}


/* ============================================================
   STICKY INTRO
============================================================ */

.sectorsIntro {
    position: sticky;
    top: calc(var(--header-height) + 42px);
    align-self: start;
}

.sectorsIntroTop {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.sectorsIntro .sectionIndex {
    margin: 0;
    color: var(--gold-400);
}

.sectorsIntro .sectionLabel {
    color: var(--gold-400);
}

.sectorsIntro h2 {
    max-width: 620px;
    margin: 0;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(3.3rem, 5vw, 5.5rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.94;
}

.sectorsIntro h2 span {
    display: block;
    margin-top: 10px;
    color: var(--gold-400);
    font-style: italic;
    font-weight: 500;
}

.sectorsIntro > p {
    max-width: 530px;
    margin: 32px 0 0;
    color: rgba(255, 255, 255, 0.61);
    font-size: 0.95rem;
    line-height: 1.85;
}


/* ============================================================
   SUMMARY
============================================================ */

.sectorsSummary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
    border-top: 1px solid rgba(201, 166, 107, 0.24);
    border-left: 1px solid rgba(201, 166, 107, 0.24);
}

.sectorsSummary > div {
    min-height: 142px;
    padding: 24px;
    border-right: 1px solid rgba(201, 166, 107, 0.24);
    border-bottom: 1px solid rgba(201, 166, 107, 0.24);
    background: rgba(255, 255, 255, 0.018);
}

.sectorsSummary strong {
    display: block;
    color: var(--gold-400);
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1;
}

.sectorsSummary span {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    line-height: 1.45;
    text-transform: uppercase;
}


/* ============================================================
   DIMENSION DETAIL
============================================================ */

.sectorsDimension {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 38px;
    color: rgba(201, 166, 107, 0.50);
    font-family: "Courier New", monospace;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
}

.sectorsDimension i {
    position: relative;
    flex: 1;
    height: 1px;
    background: rgba(201, 166, 107, 0.25);
}

.sectorsDimension i::before,
.sectorsDimension i::after {
    position: absolute;
    top: -4px;
    width: 1px;
    height: 9px;
    background: rgba(201, 166, 107, 0.45);
    content: "";
}

.sectorsDimension i::before {
    left: 0;
}

.sectorsDimension i::after {
    right: 0;
}


/* ============================================================
   SECTOR INDEX
============================================================ */

.sectorsIndex {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sectorItem {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 42px;
    gap: 28px;
    align-items: center;
    min-height: 170px;
    padding: 32px 10px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    transition:
        padding 450ms ease,
        background 450ms ease,
        border-color 450ms ease;
}

.sectorItem::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(201, 166, 107, 0.15),
            rgba(201, 166, 107, 0.04) 55%,
            transparent
        );
    content: "";
    opacity: 0;
    transform: translateX(-40px);
    transition:
        opacity 450ms ease,
        transform 650ms cubic-bezier(.2, .65, .3, 1);
}

.sectorItem:hover {
    padding-right: 24px;
    padding-left: 24px;
    border-color: rgba(201, 166, 107, 0.38);
    background: rgba(255, 255, 255, 0.035);
}

.sectorItem:hover::before {
    opacity: 1;
    transform: translateX(0);
}


/* ============================================================
   SECTOR CONTENT
============================================================ */

.sectorNumber,
.sectorContent,
.sectorArrow {
    position: relative;
    z-index: 3;
}

.sectorNumber {
    color: var(--gold-400);
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.sectorCategory {
    display: block;
    margin-bottom: 7px;
    color: rgba(201, 166, 107, 0.72);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.sectorContent h3 {
    margin: 0;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.6vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1;
    transition:
        color 350ms ease,
        transform 450ms ease;
}

.sectorContent p {
    max-width: 680px;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.86rem;
    line-height: 1.65;
    opacity: 0;
    transform: translateY(8px);
    transition:
        max-height 550ms ease,
        margin 450ms ease,
        opacity 350ms ease,
        transform 450ms ease;
}

.sectorItem:hover .sectorContent h3 {
    color: var(--gold-400);
    transform: translateX(8px);
}

.sectorItem:hover .sectorContent p {
    max-height: 110px;
    margin-top: 14px;
    opacity: 1;
    transform: translateY(0);
}

.sectorArrow {
    color: var(--gold-400);
    font-size: 1.35rem;
    opacity: 0.34;
    transform: translate(-8px, 8px);
    transition:
        opacity 350ms ease,
        transform 450ms ease;
}

.sectorItem:hover .sectorArrow {
    opacity: 1;
    transform: translate(0, 0);
}


/* ============================================================
   LARGE BACKGROUND WORD
============================================================ */

.sectorGhost {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: -4%;
    color: rgba(201, 166, 107, 0.045);
    font-family: var(--font-display);
    font-size: clamp(5rem, 10vw, 10rem);
    font-style: italic;
    font-weight: 600;
    line-height: 0.8;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(30px, -50%);
    transition:
        opacity 500ms ease,
        transform 750ms cubic-bezier(.2, .65, .3, 1);
}

.sectorItem:hover .sectorGhost {
    opacity: 1;
    transform: translate(0, -50%);
}


/* ============================================================
   BACKGROUND ANIMATION
============================================================ */

@keyframes sectorsBlueprintFloat {
    from {
        transform: translate3d(0, -18px, 0) rotate(-3deg);
    }

    to {
        transform: translate3d(-28px, 30px, 0) rotate(-1deg);
    }
}


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

@media (max-width: 920px) {

    .sectorsGrid {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .sectorsIntro {
        position: static;
    }

    .sectorsIntro h2 {
        max-width: 800px;
    }

    .sectorsSummary {
        max-width: 540px;
    }

    .sectorsBlueprint {
        width: 120vw;
        opacity: 0.038;
    }

}


@media (max-width: 600px) {

    .sectorsSection {
        padding: 90px 0;
    }

    .sectorsIntroTop {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

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

    .sectorsSummary > div {
        min-height: auto;
    }

    .sectorItem {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 16px;
        min-height: 140px;
        padding: 27px 0;
    }

    .sectorArrow {
        display: none;
    }

    .sectorItem:hover {
        padding-right: 14px;
        padding-left: 14px;
    }

    .sectorContent p {
        max-height: none;
        margin-top: 12px;
        opacity: 1;
        transform: none;
    }

    .sectorGhost {
        display: none;
    }

    .sectorsTechnicalMark,
    .sectorsDimension {
        display: none;
    }

}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .sectorsBlueprint {
        animation: none;
    }

    .sectorItem,
    .sectorItem::before,
    .sectorContent h3,
    .sectorContent p,
    .sectorArrow,
    .sectorGhost {
        transition: none;
    }

}