/* ============================================================
   HERO — Blueprint Executive Concept
============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-height) + 70px) 0 86px;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(
            115deg,
            rgba(251, 250, 247, 0.98) 0%,
            rgba(244, 241, 236, 0.94) 48%,
            rgba(251, 250, 247, 0.90) 100%
        ),
        var(--ivory-50);
}


/* ============================================================
   BLUEPRINT LAYERS
============================================================ */

.heroBlueprint {
    position: absolute;
    z-index: -4;
    inset: -14%;
    background-repeat: repeat;
    pointer-events: none;
    will-change: transform;
}

.heroBlueprintPrimary {
    background-image: url("../img/blueprint-floorplan.svg");
    background-size: 960px auto;
    opacity: 0.285;
    animation: blueprintDriftPrimary 82s linear infinite;
}

.heroBlueprintSecondary {
    inset: -20%;
    background-image: url("../img/blueprint-floorplan.svg");
    background-position: 48% 27%;
    background-size: 680px auto;
    opacity: 0.035;
    transform: rotate(180deg);
    animation: blueprintDriftSecondary 108s linear infinite;
}

.hero::before {
    position: absolute;
    z-index: -3;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(251, 250, 247, 0.94) 0%,
            rgba(251, 250, 247, 0.74) 44%,
            rgba(251, 250, 247, 0.18) 76%,
            rgba(251, 250, 247, 0.52) 100%
        );
    content: "";
    pointer-events: none;
}

.hero::after {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image:
        linear-gradient(rgba(90, 31, 31, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 31, 31, 0.022) 1px, transparent 1px);
    background-size: 54px 54px;
    content: "";
    pointer-events: none;
    mask-image: linear-gradient(to right, transparent 0%, black 30%, black 100%);
}


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

.heroTechnicalLabels {
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
}

.technicalLabel {
    position: absolute;
    color: rgba(90, 31, 31, 0.18);
    font-family: "Courier New", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.technicalLabelA {
    top: 17%;
    right: 28%;
}

.technicalLabelB {
    top: 34%;
    right: 6%;
    transform: rotate(90deg);
}

.technicalLabelC {
    right: 34%;
    bottom: 16%;
}

.technicalLabelD {
    top: 58%;
    right: 16%;
}

.technicalLabelE {
    top: 23%;
    left: 4%;
    transform: rotate(-90deg);
}


/* ============================================================
   DRAFTING LINES
============================================================ */

.heroDraftLine {
    position: absolute;
    z-index: -1;
    background: rgba(150, 112, 68, 0.16);
    pointer-events: none;
}

.heroDraftLineOne {
    top: 22%;
    right: 5%;
    width: min(34vw, 560px);
    height: 1px;
    transform: rotate(-14deg);
    transform-origin: right;
}

.heroDraftLineTwo {
    right: 17%;
    bottom: 10%;
    width: 1px;
    height: 42vh;
}


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

.heroGrid {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: calc(100vh - var(--header-height) - 156px);
    grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
    gap: clamp(60px, 7vw, 120px);
    align-items: center;
}

.heroContent {
    opacity: 0;
    transform: translateY(34px);
}

.isLoaded .heroContent {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 900ms ease 160ms,
        transform 1100ms cubic-bezier(.18, .68, .25, 1) 160ms;
}

.heroContent .eyebrow {
    opacity: 0;
    transform: translateX(-26px);
}

.isLoaded .heroContent .eyebrow {
    opacity: 1;
    transform: translateX(0);
    transition:
        opacity 700ms ease 340ms,
        transform 900ms cubic-bezier(.18, .68, .25, 1) 340ms;
}

.heroContent h1 {
    max-width: 790px;
    margin: 25px 0 30px;
    color: var(--wine-950);
    font-family: var(--font-display);
    font-size: clamp(4.2rem, 7.2vw, 7.4rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.86;
}

.heroContent h1 span {
    display: block;
    color: var(--bronze-600);
    font-style: italic;
    font-weight: 500;
}

.heroLead {
    max-width: 700px;
    margin-bottom: 34px;
    color: var(--charcoal-600);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.85;
}

.heroActions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.heroMeta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 65px;
    padding-top: 32px;
    border-top: 1px solid rgba(90, 31, 31, 0.18);
}

.heroMeta > div {
    opacity: 0;
    transform: translateY(18px);
}

.isLoaded .heroMeta > div:nth-child(1) {
    transition-delay: 650ms;
}

.isLoaded .heroMeta > div:nth-child(2) {
    transition-delay: 760ms;
}

.isLoaded .heroMeta > div:nth-child(3) {
    transition-delay: 870ms;
}

.isLoaded .heroMeta > div {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 700ms ease,
        transform 850ms cubic-bezier(.18, .68, .25, 1);
}

.heroMeta strong {
    display: block;
    color: var(--wine-800);
    font-family: var(--font-display);
    font-size: 2.7rem;
    font-weight: 600;
    line-height: 1;
}

.heroMeta span {
    display: block;
    margin-top: 8px;
    color: var(--charcoal-500);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-transform: uppercase;
}


/* ============================================================
   HERO IMAGE
============================================================ */

.heroVisual {
    position: relative;
    max-width: 560px;
    margin-left: auto;
    opacity: 0;
    transform: translate3d(42px, 24px, 0);
}

.isLoaded .heroVisual {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
        opacity 1000ms ease 360ms,
        transform 1300ms cubic-bezier(.18, .68, .25, 1) 360ms;
}

.heroImageFrame {
    position: relative;
    z-index: 2;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--ivory-200);
    box-shadow: 0 28px 75px rgba(43, 13, 13, 0.12);
}

.heroImageFrame::before {
    position: absolute;
    z-index: 2;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    content: "";
    pointer-events: none;
}

.heroImageFrame::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    background:
        linear-gradient(to top, rgba(43, 13, 13, 0.18), transparent 42%),
        linear-gradient(to right, rgba(43, 13, 13, 0.06), transparent 35%);
    content: "";
    pointer-events: none;
}

.heroImageFrame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 8s cubic-bezier(.2, .65, .3, 1);
}

.isLoaded .heroImageFrame img {
    transform: scale(1);
}


/* ============================================================
   ARCHITECTURAL FRAME
============================================================ */

.heroArchitecturalFrame {
    position: absolute;
    z-index: 1;
    top: -28px;
    right: -34px;
    bottom: 44px;
    left: 42px;
    border: 1px solid rgba(150, 112, 68, 0.46);
    pointer-events: none;
    transform: translate3d(var(--hero-frame-x, 0), var(--hero-frame-y, 0), 0);
    transition: transform 160ms ease-out;
}

.frameCorner {
    position: absolute;
    width: 22px;
    height: 22px;
}

.frameCornerTopLeft {
    top: -1px;
    left: -1px;
    border-top: 3px solid var(--bronze-600);
    border-left: 3px solid var(--bronze-600);
}

.frameCornerTopRight {
    top: -1px;
    right: -1px;
    border-top: 3px solid var(--bronze-600);
    border-right: 3px solid var(--bronze-600);
}

.frameCornerBottomLeft {
    bottom: -1px;
    left: -1px;
    border-bottom: 3px solid var(--bronze-600);
    border-left: 3px solid var(--bronze-600);
}

.frameCornerBottomRight {
    right: -1px;
    bottom: -1px;
    border-right: 3px solid var(--bronze-600);
    border-bottom: 3px solid var(--bronze-600);
}


/* ============================================================
   SIGNATURE
============================================================ */

.heroSignature {
    position: absolute;
    z-index: 4;
    right: -34px;
    bottom: 32px;
    width: min(380px, 85%);
    padding: 22px 26px;
    background: rgba(43, 13, 13, 0.95);
    color: var(--white);
    box-shadow: 0 20px 50px rgba(43, 13, 13, 0.18);
    opacity: 0;
    transform: translateX(28px);
}

.isLoaded .heroSignature {
    opacity: 1;
    transform: translateX(0);
    transition:
        opacity 700ms ease 850ms,
        transform 900ms cubic-bezier(.18, .68, .25, 1) 850ms;
}

.heroSignature span {
    display: block;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
}

.heroSignature small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.64rem;
    letter-spacing: 0.10em;
    line-height: 1.45;
    text-transform: uppercase;
}


/* ============================================================
   MEASUREMENT MARKS
============================================================ */

.heroMeasurement {
    position: absolute;
    z-index: 5;
    color: rgba(90, 31, 31, 0.42);
    font-family: "Courier New", monospace;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    pointer-events: none;
}

.heroMeasurement::before,
.heroMeasurement::after {
    position: absolute;
    background: rgba(90, 31, 31, 0.32);
    content: "";
}

.heroMeasurementVertical {
    top: 10%;
    right: -58px;
    height: 72%;
    border-left: 1px solid rgba(90, 31, 31, 0.22);
}

.heroMeasurementVertical::before,
.heroMeasurementVertical::after {
    left: -5px;
    width: 10px;
    height: 1px;
}

.heroMeasurementVertical::before {
    top: 0;
}

.heroMeasurementVertical::after {
    bottom: 0;
}

.heroMeasurementVertical span {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: rotate(90deg) translateY(-50%);
    transform-origin: left center;
}

.heroMeasurementHorizontal {
    right: 6%;
    bottom: -42px;
    width: 76%;
    border-top: 1px solid rgba(90, 31, 31, 0.22);
    text-align: center;
}

.heroMeasurementHorizontal::before,
.heroMeasurementHorizontal::after {
    top: -5px;
    width: 1px;
    height: 10px;
}

.heroMeasurementHorizontal::before {
    left: 0;
}

.heroMeasurementHorizontal::after {
    right: 0;
}

.heroMeasurementHorizontal span {
    position: relative;
    top: 8px;
}


/* ============================================================
   SCROLL CUE
============================================================ */

.heroScrollCue {
    position: absolute;
    z-index: 4;
    bottom: 24px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(43, 13, 13, 0.52);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.heroScrollCue i {
    position: relative;
    display: block;
    width: 42px;
    height: 1px;
    overflow: hidden;
    background: rgba(90, 31, 31, 0.16);
}

.heroScrollCue i::after {
    position: absolute;
    inset: 0;
    background: var(--wine-700);
    content: "";
    transform: translateX(-100%);
    animation: scrollCue 2.2s ease-in-out infinite;
}


/* ============================================================
   ANIMATIONS
============================================================ */

@keyframes blueprintDriftPrimary {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-150px, -80px, 0);
    }
}

@keyframes blueprintDriftSecondary {
    from {
        transform: translate3d(0, 0, 0) rotate(180deg);
    }

    to {
        transform: translate3d(120px, 70px, 0) rotate(180deg);
    }
}

@keyframes scrollCue {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}


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

@media (max-width: 1050px) {
    .heroGrid {
        grid-template-columns: 1fr 0.82fr;
        gap: 45px;
    }

    .heroContent h1 {
        font-size: clamp(3.7rem, 7vw, 6rem);
    }

    .heroMeasurementVertical {
        display: none;
    }
}

@media (max-width: 820px) {
    .hero {
        padding-top: calc(var(--header-height) + 55px);
    }

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

    .heroVisual {
        width: min(100%, 600px);
        margin: 28px auto 0;
    }

    .heroSignature {
        right: 18px;
    }

    .heroDraftLineOne,
    .heroDraftLineTwo,
    .technicalLabelB,
    .technicalLabelE {
        display: none;
    }

    .heroBlueprintPrimary {
        opacity: 0.065;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-bottom: 78px;
    }

    .heroContent h1 {
        font-size: clamp(3.3rem, 16vw, 5rem);
    }

    .heroMeta {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 46px;
    }

    .heroMeta > div {
        display: grid;
        grid-template-columns: 90px 1fr;
        align-items: center;
        gap: 10px;
    }

    .heroMeta span {
        margin-top: 0;
    }

    .heroSignature {
        position: relative;
        right: auto;
        bottom: auto;
        width: calc(100% - 30px);
        margin: -35px auto 0;
    }

    .heroArchitecturalFrame {
        top: -18px;
        right: -12px;
        bottom: 20px;
        left: 22px;
    }

    .heroMeasurementHorizontal {
        display: none;
    }

    .heroScrollCue {
        display: none;
    }

    .technicalLabel {
        opacity: 0.55;
    }
}


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

@media (prefers-reduced-motion: reduce) {
    .heroBlueprint,
    .heroScrollCue i::after {
        animation: none !important;
    }

    .heroContent,
    .heroContent .eyebrow,
    .heroVisual,
    .heroSignature,
    .heroMeta > div {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .heroImageFrame img {
        transform: none !important;
        transition: none !important;
    }
}
