.home-trustee {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 920px;
    background: var(--color-navy-950);
    color: var(--color-white);
}

.home-trustee::before,
.home-trustee::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}

.home-trustee::before {
    z-index: -2;
    background: url("/assets/artwork/trustee-sales-handoff-v1.png") center / cover no-repeat;
    filter: saturate(.9) contrast(1.08) brightness(.7);
    transform: scale(1.035) scaleX(-1);
}

.home-trustee::after {
    z-index: -1;
    background:
        linear-gradient(90deg, rgb(3 18 32 / 72%) 0%, rgb(4 24 41 / 58%) 42%, rgb(4 18 31 / 84%) 100%),
        linear-gradient(180deg, rgb(4 18 31 / 34%) 0%, rgb(4 18 31 / 72%) 100%),
        radial-gradient(circle at 20% 32%, rgb(239 21 27 / 14%), transparent 28rem);
}

.home-trustee__layout {
    display: grid;
    grid-template-columns: minmax(430px, .92fr) minmax(0, 1.08fr);
    gap: clamp(54px, 6vw, 100px);
    align-items: center;
}

.home-trustee .section__lede,
.trustee-process__step p,
.trustee-boundary p {
    color: rgb(255 255 255 / 88%);
}

.home-trustee__content {
    order: 2;
}

.trustee-process {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 44px 0 38px;
    padding: 0;
    list-style: none;
}

.trustee-process__step {
    position: relative;
    padding: 18px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 14px;
    background: rgb(255 255 255 / 10%);
    backdrop-filter: blur(8px);
}

.trustee-process__step--first {
    --reveal-delay: 80ms;
}

.trustee-process__step--second {
    --reveal-delay: 150ms;
}

.trustee-process__step--third {
    --reveal-delay: 220ms;
}

.trustee-process__step:not(:last-child)::after {
    position: absolute;
    top: 36px;
    right: -18px;
    width: 28px;
    border-top: 2px dashed rgb(255 255 255 / 28%);
    content: "";
}

.trustee-process__icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 50%;
    background: rgb(255 255 255 / 12%);
    box-shadow: 0 12px 26px rgb(0 0 0 / 16%), inset 0 1px 0 rgb(255 255 255 / 10%);
}

.trustee-process__icon i {
    color: var(--color-white);
    font-size: 1.7rem;
}

.trustee-process__step h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.trustee-process__step p {
    margin: 0;
    color: rgb(255 255 255 / 84%);
    font-size: .92rem;
}

.home-trustee__actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.home-trustee__actions .button {
    min-width: 225px;
    gap: 14px;
}

.trustee-boundary {
    display: flex;
    max-width: 760px;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
    padding: 18px 20px;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 12px;
    background: rgb(255 255 255 / 11%);
    box-shadow: 0 14px 34px rgb(0 0 0 / 16%);
    backdrop-filter: blur(10px);
}

.trustee-boundary__icon {
    width: 42px;
    flex: 0 0 42px;
    color: var(--color-white);
    font-size: 2rem;
    text-align: center;
}

.trustee-boundary p {
    margin: 0;
    color: rgb(255 255 255 / 84%);
    font-size: .9rem;
}

.trustee-boundary strong {
    display: block;
    margin-bottom: 2px;
    color: var(--color-white);
}

.live-access {
    position: relative;
    isolation: isolate;
    order: 1;
    min-height: 690px;
    perspective: 1500px;
    perspective-origin: 40% 45%;
}

.live-access__photo {
    display: none;
}

.live-access__panel {
    position: relative;
    z-index: 1;
    width: min(650px, 100%);
    min-height: 650px;
    margin: 20px auto 0 0;
    padding: clamp(28px, 3vw, 42px);
    border: 1px solid rgb(255 255 255 / 22%);
    border-top-color: rgb(239 21 27 / 82%);
    border-radius: 16px;
    background: linear-gradient(145deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 9%));
    box-shadow: 34px 38px 72px rgb(0 0 0 / 38%), 10px 14px 24px rgb(0 0 0 / 24%), inset 0 1px 0 rgb(255 255 255 / 14%);
    backdrop-filter: blur(16px) saturate(1.12);
    color: var(--color-white);
    transform: rotateY(3deg) rotateX(.5deg) translateZ(20px);
    transform-origin: left center;
    transition: transform 600ms var(--ease-standard), box-shadow 600ms ease;
}

.live-access__panel::before {
    position: absolute;
    top: -2px;
    left: 34px;
    width: 86px;
    height: 4px;
    border-radius: 999px;
    background: var(--color-red-500);
    box-shadow: 0 0 18px rgb(239 21 27 / 28%);
    content: "";
}

.live-access:hover .live-access__panel,
.live-access:focus-within .live-access__panel {
    box-shadow: 24px 30px 58px rgb(6 23 41 / 24%), 6px 10px 18px rgb(6 23 41 / 12%), inset 0 1px 0 rgb(255 255 255 / 16%);
    transform: rotateY(1deg) translateZ(14px) translateY(-4px);
}

.sale-summary,
.sale-timer,
.sale-eligibility,
.sale-queue,
.sale-activity {
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 14px;
    background: rgb(3 14 24 / 46%);
}

.sale-summary {
    position: relative;
    padding: 18px;
}

.sale-summary__status,
.sale-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sale-summary__status h3,
.sale-summary__status span,
.sale-card-heading h4,
.sale-card-heading span { margin: 0; font-size: .85rem; }

.sale-summary__status i,
.sale-card-heading i,
.sale-timer h4 i,
.sale-eligibility strong,
.sale-activity b {
    color: #ff454b;
}

.sale-summary > p {
    margin: 16px 0 0;
    color: rgb(255 255 255 / 72%);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sale-summary__amount { display: block; color: var(--color-neon-green); font-size: 2rem; }

.sale-summary__handoff {
    position: absolute;
    top: 62px;
    right: 18px;
    color: #ff454b;
    font-size: .8rem;
    font-weight: 800;
}

.sale-metrics,
.sale-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sale-metrics { margin: 10px 0 0; }

.sale-metrics div {
    padding: 10px;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 10px;
}

.sale-metrics dt {
    color: rgb(255 255 255 / 68%);
    font-size: .6rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sale-metrics dd { margin: 4px 0 0; font-size: .82rem; font-weight: 800; }

.sale-dashboard {
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
}

.sale-dashboard > section { padding: 14px; }

.sale-timer h4,
.sale-eligibility h4 {
    margin: 0 0 10px;
    font-size: .82rem;
}

.sale-timer > strong { font-size: 1.55rem; letter-spacing: .06em; }

.sale-timer > strong span,
.sale-timer p,
.sale-eligibility p,
.sale-queue small,
.sale-activity time {
    color: rgb(255 255 255 / 70%);
}

.sale-timer__labels {
    display: flex;
    justify-content: space-between;
    margin: 3px 0 8px;
    font-size: .58rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sale-timer__progress { overflow: hidden; height: 6px; border-radius: 10px; background: rgb(0 0 0 / 25%); }

.sale-timer__progress span {
    display: block; width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #8cff62, var(--color-neon-green));
    transform-origin: left; transition: transform 1s linear;
}

.sale-timer p,
.sale-eligibility p {
    margin: 8px 0 0;
    font-size: .7rem;
}

.sale-eligibility {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sale-eligibility > i { padding: 14px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 12px; color: var(--color-neon-green); font-size: 1.25rem; }

.sale-eligibility strong { font-size: .75rem; }

.sale-dashboard--lower { grid-template-columns: 1.12fr .88fr; }

.sale-queue ol,
.sale-activity ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.sale-queue li,
.sale-activity li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-top: 1px solid rgb(255 255 255 / 9%);
    font-size: .67rem;
}

.sale-queue li > span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: rgb(239 21 27 / 14%);
    color: #ff454b;
}

.sale-queue li div { display: grid; flex: 1; }

.sale-queue li b,
.sale-activity strong { color: var(--color-neon-green); }

.sale-activity li { justify-content: space-between; }

.live-access__note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0;
    color: rgb(255 255 255 / 86%);
    font-size: .78rem;
}

.live-access__note i { width: 21px; text-align: center; }

@media (max-width: 1120px) {
    .home-trustee__layout {
        grid-template-columns: 1fr;
    }

    .home-trustee__content,
    .live-access {
        order: initial;
    }

    .live-access {
        min-height: 600px;
    }

    .live-access__panel {
        width: min(650px, 100%);
        transform: rotateY(2deg) translateZ(14px);
    }
}

@media (max-width: 700px) {
    .trustee-process {
        grid-template-columns: 1fr;
        gap: 26px;
        margin-top: 36px;
    }

    .trustee-process__step {
        display: grid;
        grid-template-columns: 64px 1fr;
        gap: 16px;
        align-items: start;
    }

    .trustee-process__step:not(:last-child)::after {
        top: 66px;
        right: auto;
        bottom: -24px;
        left: 31px;
        width: auto;
        border-top: 0;
        border-left: 2px dashed var(--color-gray-300);
    }

    .trustee-process__icon {
        width: 64px;
        height: 64px;
        margin: 0;
    }

    .home-trustee__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .home-trustee__actions .text-link {
        align-self: flex-start;
    }

    .trustee-boundary {
        align-items: flex-start;
    }

    .home-trustee {
        min-height: auto;
    }

    .home-trustee::before {
        background-position: 58% center;
    }

    .live-access {
        min-height: auto;
    }

    .live-access__panel {
        width: 100%;
        min-height: 0;
        margin-top: 0;
        padding: 24px 18px;
        transform: none;
    }

    .sale-metrics,
    .sale-dashboard,
    .sale-dashboard--lower {
        grid-template-columns: 1fr;
    }

    .sale-summary__handoff {
        position: static;
        display: block;
        margin-top: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-access__panel,
    .live-access:hover .live-access__panel,
    .live-access:focus-within .live-access__panel {
        transform: none;
        transition: none;
    }
}
