/* Real Estate draft: match the current Tony Calvis cover sequence. */
body.page-id-4956,
body.page-id-4956 #tophead {
    overflow-x: clip;
    overflow-y: visible;
}

.tc-expertise[data-re-scroll-section] [data-re-scroll-deck] .tc-deck-card {
    cursor: default;
}

/* Keep elevation on the stationary stage, never on the animated cards. */
body.page-id-4956 .tc-expertise .tc-deck-card {
    box-shadow: none;
    clip-path: none;
}

body.page-id-4956 .tc-expertise .tc-deck-card::after {
    content: none;
}

/* Keep the stage shadow stationary and paint it below the bottom edge only. */
.tc-expertise[data-re-scroll-section] .is-cover-deck .tc-deck-stage {
    overflow: visible;
    perspective: none;
    box-shadow: none;
}

body.page-id-4956 .tc-expertise .is-cover-deck .tc-deck-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 11;
    pointer-events: none;
    box-shadow: 0 12px 24px -8px rgb(0 0 0 / 13%);
    clip-path: inset(100% 0 -48px 0);
}

.tc-expertise[data-re-scroll-section] .tc-cover-viewport {
    position: absolute;
    inset: 0 0 auto;
    height: var(--tc-card-height);
    z-index: 10;
    overflow: hidden;
    background: var(--white-600, #f8f6f3);
    pointer-events: none;
}

.tc-expertise[data-re-scroll-section] .tc-cover-viewport[hidden] {
    display: none;
}

.tc-expertise[data-re-scroll-section] .tc-cover-panel {
    transform-origin: center;
    box-shadow: none;
    pointer-events: none;
}

.tc-expertise[data-re-scroll-section] .tc-cover-panel .tc-deck-copy > * {
    visibility: visible;
    opacity: 1;
}

.tc-expertise[data-re-scroll-section] .is-covering [data-tc-stage] > [data-tc-card] .tc-deck-copy > * {
    opacity: 0;
}

.tc-expertise[data-re-scroll-section] .is-covering .tc-cover-panel {
    will-change: transform, opacity;
}

.tc-expertise[data-re-scroll-section].is-scroll-layout {
    --tc-step: clamp(24px, 5vh, 56px);
    --tc-card-min-height: clamp(320px, 40vh, 400px);
    padding-block: 0;
    overflow: visible;
    position: relative;
    display: flow-root;
}

.tc-expertise[data-re-scroll-section].is-scroll-layout > .tc-expertise__inner {
    margin-top: 60px;
    padding-block: 24px;
}

.tc-expertise[data-re-scroll-section].is-scroll-pinned > .tc-expertise__inner {
    position: sticky;
    top: var(--re-pin-top, 96px);
}

.tc-expertise[data-re-scroll-section].is-scroll-layout .tc-expertise__heading {
    margin-bottom: 24px;
}

.tc-expertise[data-re-scroll-section].is-scroll-layout .tc-deck-copy {
    padding: clamp(24px, 3vw, 48px);
    padding-left: clamp(60px, 5vw, 76px);
}

.tc-expertise[data-re-scroll-section].is-scroll-layout .tc-deck-controls {
    margin-top: 16px;
    gap: 8px;
}

.tc-expertise[data-re-scroll-section] .tc-deck-control[aria-disabled="true"] {
    opacity: .45;
    cursor: default;
}

@media (max-height: 900px) {
    .tc-expertise[data-re-scroll-section].is-scroll-layout .tc-expertise__heading {
        font-size: clamp(34px, 3.1vw, 50px);
    }
}

@media (min-width: 768px) and (max-height: 800px) {
    .tc-expertise[data-re-scroll-section].is-scroll-layout {
        --tc-step: 24px;
        --tc-card-min-height: 280px;
    }
    .tc-expertise[data-re-scroll-section].is-scroll-layout .tc-expertise__inner { padding-block: 12px; }
    .tc-expertise[data-re-scroll-section].is-scroll-layout .tc-expertise__heading {
        font-size: clamp(34px, 3.1vw, 44px);
        margin-bottom: 16px;
    }
    .tc-expertise[data-re-scroll-section].is-scroll-layout .tc-deck-copy { padding: clamp(24px, 2.4vw, 36px); padding-left: 60px; }
    .tc-expertise[data-re-scroll-section].is-scroll-layout .tc-deck-controls { margin-top: 12px; }
}

@media (max-width: 767px) {
    .tc-expertise[data-re-scroll-section].is-scroll-layout {
        --tc-step: 24px;
        --tc-card-min-height: 0px;
    }
    .tc-expertise[data-re-scroll-section].is-scroll-layout .tc-expertise__inner {
        margin-top: 32px;
        padding-block: 16px;
    }
    .tc-expertise[data-re-scroll-section].is-scroll-layout .tc-expertise__heading {
        font-size: 34px;
        margin-bottom: 16px;
    }
    .tc-expertise[data-re-scroll-section].is-scroll-layout .tc-deck-copy {
        padding: 20px 24px;
        padding-left: 52px;
    }
    .tc-expertise[data-re-scroll-section].is-scroll-layout .tc-deck-copy h3 {
        font-size: 30px;
    }
    .tc-expertise[data-re-scroll-section].is-scroll-layout .tc-deck-card {
        grid-template-rows: 1fr 160px;
    }
    .tc-expertise[data-re-scroll-section].is-scroll-layout .tc-deck-media {
        height: 160px;
    }
    .tc-expertise[data-re-scroll-section].is-scroll-layout .tc-deck-controls {
        margin-top: 12px;
    }
    .tc-expertise[data-re-scroll-section].is-scroll-layout .tc-deck-control {
        padding-inline: 6px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tc-expertise[data-re-scroll-section].is-scroll-pinned > .tc-expertise__inner {
        position: relative;
        top: auto;
    }
}

/* Plain caption in the photograph's upper-left corner. */
.re-expertise .re-deck-caption {
    position: absolute;
    z-index: 1;
    left: calc(50% + 24px);
    top: 24px;
    max-width: calc(50% - 48px);
    padding: 0;
    color: #fff;
    background: transparent;
    pointer-events: none;
}

.re-expertise .re-deck-caption h4,
.re-expertise .re-deck-caption p {
    margin: 0;
    color: inherit;
    font-family: var(--font-Inter, "Inter", sans-serif);
    line-height: 1.45;
    text-transform: uppercase;
}

.re-expertise .re-deck-caption h4 {
    font-size: 14px;
    font-weight: 600;
}

.re-expertise .re-deck-caption p {
    font-size: 12px;
    font-weight: 400;
}

.re-expertise .is-enhanced .tc-deck-card:not(.is-front) .re-deck-caption {
    visibility: hidden;
}

@media (max-width: 767px) {
    .re-expertise .re-deck-caption {
        left: 16px;
        top: calc(100% - 148px);
        bottom: auto;
        max-width: 110px;
        padding: 0;
    }
    .re-expertise .re-deck-caption h4 { font-size: 12px; }
    .re-expertise .re-deck-caption p { font-size: 10px; }
}


/* Captions travel with the presentation copies during the cover transition. */
.re-expertise .is-enhanced .tc-deck-card.tc-cover-panel .re-deck-caption {
    visibility: visible;
}

/* Lift Melissa within the frame without altering the source photograph. */
.re-expertise .re-deck-card--portrait .tc-deck-media img {
    object-position: center bottom;
    transform: scale(1.12);
    transform-origin: center bottom;
}

/* Keep the stationary scrollbar outside the card and its animation viewport. */
.re-expertise .re-deck-scrollbar {
    position: absolute;
    z-index: 12;
    top: 36px;
    bottom: 36px;
    left: -44px;
    width: 32px;
    min-height: 64px;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.re-expertise .re-deck-scrollbar[hidden] {
    display: none;
}

.re-expertise .re-deck-scrollbar::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 2.5px);
    width: 5px;
    background: #e6e6e6;
}

.re-expertise .re-deck-scrollbar__thumb {
    position: absolute;
    top: 0;
    left: calc(50% - 2.5px);
    width: 5px;
    height: 25%;
    min-height: 32px;
    background: #000;
    cursor: grab;
}

.re-expertise .re-deck-scrollbar.is-dragging,
.re-expertise .re-deck-scrollbar.is-dragging .re-deck-scrollbar__thumb {
    cursor: grabbing;
}

.re-expertise .re-deck-scrollbar:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

/* Pointer-driven focus must not inherit the keyboard focus outline. */
.re-expertise .re-deck-scrollbar.is-pointer-focus:focus {
    outline: none;
}

@media (max-width: 767px) {
    .re-expertise .re-deck-card--portrait .tc-deck-media img {
        object-position: center 45%;
        transform: none;
    }
    .re-expertise .re-deck-scrollbar {
        left: -24px;
        width: 24px;
        top: 24px;
        bottom: 184px;
    }
    .re-expertise .re-deck-scrollbar:focus-visible {
        outline-offset: -2px;
    }
}
