/* ========== Custom Animations ========== */
@keyframes scroll-line {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

@keyframes fade-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-scroll-line {
    animation: scroll-line 2.5s ease-in-out infinite;
}

.animate-fade-up {
    animation: fade-up 1s ease-out forwards;
}

/* ========== Base Styles ========== */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-osx-font-smoothing: grayscale;
}

.home-corner-logo {
    z-index: 120;
}

.home-corner-logo img {
    filter: brightness(0) invert(1) !important;
}

.home-corner-logo.is-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Keep the navbar brand from being squeezed by the flex nav links. */
#nav-logo-link {
    flex: 0 0 auto !important;
    width: clamp(104px, 7vw, 112px) !important;
    margin-right: clamp(1.5rem, 2.2vw, 2rem) !important;
}

#nav-logo {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    object-fit: contain;
}

/* ========== Portfolio Navigation ========== */
.portfolio-nav-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #000;
    border: 0;
    background: transparent;
    padding: 0.7rem 0;
    cursor: pointer;
}

.portfolio-nav-button:focus {
    outline: none;
}

.portfolio-nav-button:focus-visible {
    outline: 1px solid rgba(0, 0, 0, 0.35);
    outline-offset: 4px;
}

.portfolio-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
    color: inherit;
    font-size: 15px;
    line-height: 1;
    transform-origin: center;
    transition: transform 220ms ease;
}

.portfolio-chevron {
    color: inherit;
}

.portfolio-nav-item::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -1.25rem;
    right: -1.25rem;
    height: 1.15rem;
}

.portfolio-nav-item:hover .portfolio-caret,
.portfolio-nav-item.is-open .portfolio-caret,
.portfolio-nav-item:hover .portfolio-chevron,
.portfolio-nav-item.is-open .portfolio-chevron {
    transform: rotate(180deg);
}

.portfolio-dropdown {
    position: absolute;
    top: calc(100% - 0.05rem);
    left: 50%;
    width: 220px;
    transform: translate(-50%, 6px);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(22px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.portfolio-nav-item:hover .portfolio-dropdown,
.portfolio-nav-item.is-open .portfolio-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.portfolio-dropdown-link {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0.95rem 1rem;
    text-align: left;
    font-family: "Outfit", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.62);
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.portfolio-dropdown-link:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.045);
    transform: translateX(2px);
}

.mobile-portfolio-link {
    font-family: "Outfit", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
    transition: color 180ms ease, transform 180ms ease;
}

.mobile-portfolio-link:hover {
    color: #fff;
    transform: translateY(-1px);
}

/* ========== Portfolio Pages ========== */
.power-image-panel {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 38px 90px rgba(0, 0, 0, 0.08);
}

/* ========== Testimonials ========== */
.testimonial-image-panel {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 38px 90px rgba(0, 0, 0, 0.08);
}

.testimonial-image-panel img {
    filter: grayscale(0.06) contrast(1.04);
}

@media (max-width: 1023px) {
    .testimonial-image-panel {
        max-width: 420px;
    }

    .testimonial-section--reverse .testimonial-image-panel {
        justify-self: start;
    }
}

@media (min-width: 1024px) {
    #detail-sidebar .text-\[25px\] {
        font-size: 23px !important;
        margin-bottom: 0.125rem !important;
    }

    #detail-sidebar .detail-config-sqft-row {
        gap: 1rem !important;
    }

    #detail-sidebar .detail-sqft-metric > span:first-child {
        white-space: nowrap;
    }

    /* ONE 74 + Boulevard only: bottom-align each stat's value+label group so a
       single-line stat sits flush with the last line of a multi-line stat (and
       labels share a common baseline). Also let the SQ.FT value wrap. */
    #detail-sidebar .is-aligned-metrics .flex.flex-col {
        justify-content: flex-end;
    }
    #detail-sidebar .is-aligned-metrics .detail-sqft-metric > span:first-child {
        white-space: normal;
    }

    #detail-sidebar .detail-handover-value,
    #detail-sidebar .detail-status-value,
    #detail-sidebar .detail-address-value {
        font-size: 17px !important;
        line-height: 1.25 !important;
    }

    #detail-sidebar {
        padding-top: 2.75rem !important;
        padding-bottom: 2rem !important;
    }

    #detail-sidebar .detail-back-link {
        margin-bottom: 2.75rem !important;
    }

    #detail-sidebar .detail-identity-block {
        margin-bottom: 1.6rem !important;
    }

    #detail-sidebar .detail-kicker {
        margin-bottom: 1.25rem !important;
    }

    #detail-sidebar .detail-project-title {
        margin-bottom: 1.45rem !important;
    }

    #detail-sidebar .detail-location-tag {
        margin-top: 0 !important;
        margin-bottom: 1.65rem !important;
    }

    #detail-sidebar .detail-description {
        margin-bottom: 1.75rem !important;
    }

    #detail-sidebar .detail-description p {
        line-height: 1.72 !important;
    }

    #detail-sidebar .detail-metrics {
        gap: 1.25rem !important;
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    #detail-sidebar .detail-specs {
        gap: 1.2rem !important;
    }

    #detail-sidebar .detail-cta-group {
        margin-top: 4rem !important;
    }
}

@media (min-width: 1024px) and (max-height: 900px) {
    #detail-sidebar .border-y {
        gap: 1.05rem !important;
        padding-top: 1.05rem !important;
        padding-bottom: 1.05rem !important;
    }

    #detail-sidebar .border-y .text-\[25px\],
    #detail-sidebar .border-y .text-\[23px\] {
        font-size: 19px !important;
        line-height: 1.12 !important;
        margin-bottom: 0.1rem !important;
    }

    #detail-sidebar .border-y .text-\[11px\],
    #detail-sidebar > div:last-child .text-\[11px\] {
        font-size: 10px !important;
        line-height: 1.16 !important;
    }

    #detail-sidebar .detail-cta-group {
        margin-top: 1.45rem !important;
    }

    #detail-sidebar .detail-back-link {
        margin-bottom: 2.3rem !important;
    }

    #detail-sidebar .detail-identity-block {
        margin-bottom: 1.35rem !important;
    }

    #detail-sidebar .detail-kicker {
        margin-bottom: 1.05rem !important;
    }

    #detail-sidebar .detail-project-title {
        margin-bottom: 1.25rem !important;
    }

    #detail-sidebar .detail-location-tag {
        margin-top: 0 !important;
        margin-bottom: 1.35rem !important;
    }

    #detail-sidebar .detail-description {
        margin-bottom: 1.45rem !important;
    }

    #detail-sidebar .detail-description p {
        line-height: 1.66 !important;
    }
}

@media (min-width: 1024px) and (max-height: 850px) {
    #detail-sidebar {
        padding-top: 2rem !important;
        padding-bottom: 0.75rem !important;
    }

    #detail-sidebar > button {
        margin-bottom: 2rem !important;
    }

    #detail-sidebar > div:first-of-type {
        margin-bottom: 1.15rem !important;
    }

    #detail-sidebar > div:first-of-type > div:first-child {
        margin-bottom: 1rem !important;
        font-size: 10.5px !important;
    }

    #detail-sidebar h1 {
        font-size: 34px !important;
        margin-bottom: 1.1rem !important;
    }

    #detail-sidebar h1 + div {
        margin-bottom: 1.15rem !important;
    }

    #detail-sidebar p {
        font-size: 15.5px !important;
        line-height: 1.6 !important;
    }

    #detail-sidebar .border-y {
        gap: 0.9rem !important;
        padding-top: 0.95rem !important;
        padding-bottom: 0.95rem !important;
    }

    #detail-sidebar .border-y .text-\[25px\],
    #detail-sidebar .border-y .text-\[23px\] {
        font-size: 18px !important;
        line-height: 1.1 !important;
        margin-bottom: 0.05rem !important;
    }

    #detail-sidebar .border-y .text-\[11px\],
    #detail-sidebar > div:last-child .text-\[11px\] {
        font-size: 9.5px !important;
        line-height: 1.15 !important;
    }

    #detail-sidebar > div:last-child {
        gap: 0.9rem !important;
    }

    #detail-sidebar .detail-handover-value,
    #detail-sidebar .detail-status-value,
    #detail-sidebar .detail-address-value {
        font-size: 16px !important;
        line-height: 1.25 !important;
    }

    #detail-sidebar .detail-cta-group {
        margin-top: 3rem !important;
    }

    #detail-sidebar button[onclick*="inquiry"] {
        padding-top: 0.95rem !important;
        padding-bottom: 0.95rem !important;
        font-size: 12px !important;
    }

    #detail-sidebar a[href^="tel:"] {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
        font-size: 10.5px !important;
    }

    #detail-sidebar .detail-back-link {
        margin-bottom: 2.15rem !important;
    }

    #detail-sidebar .detail-kicker {
        margin-bottom: 1.05rem !important;
    }

    #detail-sidebar .detail-project-title {
        margin-bottom: 1.2rem !important;
    }

    #detail-sidebar .detail-location-tag {
        margin-top: 0 !important;
        margin-bottom: 1.3rem !important;
    }

    #detail-sidebar .detail-description {
        margin-bottom: 1.4rem !important;
    }

    #detail-sidebar .detail-description p {
        line-height: 1.62 !important;
    }
}

@media (min-width: 1024px) and (max-height: 790px) {
    #detail-sidebar {
        padding-top: 1.5rem !important;
        padding-bottom: 0.65rem !important;
    }

    #detail-sidebar > button {
        margin-bottom: 1.7rem !important;
    }

    #detail-sidebar > div:first-of-type {
        margin-bottom: 0.9rem !important;
    }

    #detail-sidebar > div:first-of-type > div:first-child {
        margin-bottom: 0.75rem !important;
        font-size: 10px !important;
    }

    #detail-sidebar h1 {
        font-size: 31px !important;
        margin-bottom: 0.85rem !important;
    }

    #detail-sidebar h1 + div {
        margin-bottom: 0.9rem !important;
    }

    #detail-sidebar p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    #detail-sidebar .border-y {
        gap: 0.7rem !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    #detail-sidebar .border-y .text-\[25px\],
    #detail-sidebar .border-y .text-\[23px\] {
        font-size: 17px !important;
        line-height: 1.08 !important;
        margin-bottom: 0.05rem !important;
    }

    #detail-sidebar .border-y .text-\[11px\],
    #detail-sidebar > div:last-child .text-\[11px\] {
        font-size: 9px !important;
        line-height: 1.12 !important;
    }

    #detail-sidebar > div:last-child {
        gap: 0.7rem !important;
    }

    #detail-sidebar .detail-handover-value,
    #detail-sidebar .detail-status-value,
    #detail-sidebar .detail-address-value {
        font-size: 14.5px !important;
        line-height: 1.2 !important;
    }

    #detail-sidebar .detail-cta-group {
        margin-top: 3.65rem !important;
    }

    #detail-sidebar button[onclick*="inquiry"] {
        padding-top: 0.8rem !important;
        padding-bottom: 0.8rem !important;
        font-size: 10.75px !important;
    }

    #detail-sidebar a[href^="tel:"] {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        font-size: 9.5px !important;
    }

    #detail-sidebar .detail-back-link {
        margin-bottom: 1.85rem !important;
    }

    #detail-sidebar .detail-identity-block {
        margin-bottom: 1rem !important;
    }

    #detail-sidebar .detail-kicker {
        margin-bottom: 0.95rem !important;
    }

    #detail-sidebar .detail-project-title {
        margin-bottom: 1.05rem !important;
    }

    #detail-sidebar .detail-location-tag {
        margin-top: 0 !important;
        margin-bottom: 1.12rem !important;
    }

    #detail-sidebar .detail-description {
        margin-bottom: 1.2rem !important;
    }

    #detail-sidebar .detail-description p {
        line-height: 1.54 !important;
    }
}

@media (min-width: 1920px) and (min-height: 1000px) {
    #detail-sidebar {
        width: 520px !important;
        padding-left: 3.5rem !important;
        padding-right: 3.5rem !important;
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    #detail-content {
        padding-left: 520px !important;
    }

    #detail-sidebar .detail-back-link {
        margin-bottom: 3rem !important;
    }

    #detail-sidebar .detail-project-title {
        font-size: 40px !important;
        margin-bottom: 1.55rem !important;
    }

    #detail-sidebar .detail-location-tag {
        margin-bottom: 1.8rem !important;
    }

    #detail-sidebar .detail-description {
        margin-bottom: 1.95rem !important;
    }

    #detail-sidebar .detail-description p {
        font-size: 16.5px !important;
        line-height: 1.76 !important;
    }

    #detail-sidebar .detail-metrics {
        gap: 1.35rem !important;
        padding-top: 1.35rem !important;
        padding-bottom: 1.35rem !important;
    }

    #detail-sidebar .detail-specs {
        gap: 1.35rem !important;
    }

    #detail-sidebar .detail-cta-group {
        margin-top: 4.25rem !important;
    }
}

/* ========== Footer Hospitality Logos ========== */
.footer-logo-stack {
    --footer-brand-axis: clamp(188px, 64%, 206px);
    --footer-logo-visible-inset: 16px;
    width: var(--footer-brand-axis) !important;
    max-width: var(--footer-brand-axis);
    margin-left: auto;
    margin-right: auto;
    align-items: flex-start !important;
}

.footer-ceebros-logo {
    margin-left: 0;
    margin-right: 0;
}

.footer-hospitality-logos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: calc(100% - var(--footer-logo-visible-inset));
    margin-left: var(--footer-logo-visible-inset);
    margin-right: auto;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-logo-slot {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
}

#footer .footer-logo-slot {
    height: 64px;
}

.footer-hospitality-logos .footer-logo-divider:nth-child(4) {
    display: block;
}

.footer-logo-slot img {
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 700ms ease;
}

.footer-logo-slot--pullman img {
    max-width: 132px;
    max-height: 34px;
    opacity: 0.72;
}

#footer .footer-logo-slot--pullman img {
    max-width: 146px;
    max-height: 38px;
}

.footer-logo-slot--raintree img {
    width: 106px;
    max-width: 176px;
    max-height: 110px;
    opacity: 1;
    filter: brightness(0) invert(1);
    transform: translateX(-12px);
}

#footer .footer-logo-slot--raintree img {
    width: 116px;
    max-width: 196px;
    max-height: 122px;
}

.footer-logo-slot--designwork {
    height: 46px;
}

#footer .footer-logo-slot--designwork {
    height: 48px;
}

.footer-logo-slot--designwork img {
    max-width: 136px;
    max-height: 34px;
    opacity: 0.76;
}

#footer .footer-logo-slot--designwork img {
    max-width: 142px;
    max-height: 36px;
}

.group:hover .footer-logo-slot--pullman img {
    opacity: 0.72;
}

.group:hover .footer-logo-slot--raintree img,
.group:hover .footer-logo-slot--designwork img {
    opacity: 1;
}

.footer-logo-divider {
    width: min(48%, 150px);
    height: 1px;
    margin: 0.85rem 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.22),
        transparent
    );
    flex: 0 0 1px;
    align-self: flex-start;
}

.footer-section-title {
    font-size: 15px !important;
    line-height: 1.4;
}

.footer-link-list {
    font-size: 13px !important;
    line-height: 1.6;
}

.footer-body-text,
.footer-body-list {
    font-size: 13px !important;
    line-height: 2.25;
    font-weight: 500 !important;
}

.footer-inquiries-list {
    gap: 0 !important;
}

.footer-utility-text {
    font-size: 12px !important;
    line-height: 1.6;
}

#detail-footer-wrapper {
    container: detail-footer / inline-size;
    background: #0a0a0a;
    isolation: isolate;
}

.detail-footer .footer-layout-grid {
    -webkit-backdrop-filter: blur(24px) !important;
    backdrop-filter: blur(24px) !important;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.018)
    ) !important;
    grid-template-columns: 1fr !important;
}

.detail-footer .footer-layout-grid > div {
    background-color: rgba(255, 255, 255, 0.012);
}

.detail-footer .footer-layout-grid > div {
    min-height: 320px;
}

.detail-footer .footer-section-title {
    font-size: 15px !important;
    line-height: 1.35;
}

.detail-footer .footer-link-list {
    font-size: 13px !important;
    line-height: 1.55;
}

.detail-footer .footer-body-text,
.detail-footer .footer-body-list {
    font-size: 13px !important;
    line-height: 2.25;
    font-weight: 500 !important;
}

.detail-footer .footer-utility-text {
    font-size: 10px !important;
    line-height: 1.5;
}

.detail-footer .footer-logo-slot {
    height: 56px;
}

.detail-footer .footer-logo-slot--pullman img {
    max-width: 126px;
    max-height: 34px;
}

.detail-footer .footer-logo-slot--raintree img {
    width: 108px;
    max-width: 168px;
    max-height: 104px;
}

.detail-footer .footer-logo-slot--designwork {
    height: 44px;
}

.detail-footer .footer-logo-slot--designwork img {
    max-width: 128px;
    max-height: 34px;
}

.detail-footer .footer-hospitality-logos {
    gap: 0;
    padding-top: 2rem;
}

.detail-footer .footer-logo-divider {
    width: min(48%, 140px);
    height: 1px;
}

.detail-footer .footer-layout-grid > div {
    padding: 2rem !important;
}

@container detail-footer (min-width: 680px) {
    .detail-footer .footer-layout-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@container detail-footer (min-width: 860px) {
    .detail-footer .footer-layout-grid {
        grid-template-columns: minmax(230px, 1.08fr) minmax(180px, 0.92fr) minmax(220px, 1.02fr) minmax(200px, 0.98fr) !important;
    }

    .detail-footer .footer-layout-grid > div {
        min-height: 286px;
    }
}

@container detail-footer (max-width: 1180px) {
    .detail-footer .footer-section-title {
        font-size: 13px !important;
    }
}

@media (max-width: 640px) {
    .footer-logo-stack {
        --footer-logo-visible-inset: 14px;
    }

    .footer-hospitality-logos {
        gap: 0;
        padding-top: 2rem;
    }

    .footer-logo-slot {
        height: 54px;
    }

    .footer-logo-slot--pullman img {
        max-width: 124px;
        max-height: 30px;
    }

    .footer-logo-slot--raintree img {
        width: 108px;
        max-width: 156px;
        max-height: 96px;
    }

    .footer-logo-slot--designwork {
        height: 42px;
    }

    #footer .footer-logo-slot--designwork {
        height: 42px;
    }

    .footer-logo-slot--designwork img {
        max-width: 120px;
        max-height: 30px;
    }

    .footer-logo-divider {
        width: min(52%, 150px);
        height: 1px;
        margin: 0.7rem 0;
    }

    .footer-section-title {
        font-size: 13px !important;
    }

    .footer-link-list {
        font-size: 13px !important;
    }

    .footer-body-text,
    .footer-body-list {
        font-size: 14px !important;
    }

    .footer-utility-text {
        font-size: 11px !important;
    }
}

/* Hide number input spinners globally */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Ensure buttons don't trigger accidental scrollbars */
.category-btn {
    appearance: none;
    -webkit-appearance: none;
    overflow: hidden;
}

/* ========== Reveal on Scroll ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Mobile Overrides ========== */
@media (max-width: 768px) {
    .reveal {
        transform: translateY(20px);
    }
    
    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }
    
    .no-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* ========== Custom Scrollbar for Sidebar ========== */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* ========== Video Background Override ========== */
.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-bg iframe {
    width: 100%;
    height: 100%;
}

@media (min-aspect-ratio: 16/9) {
    .video-bg { height: 56.25vw; }
}

@media (max-aspect-ratio: 16/9) {
    .video-bg { width: 177.78vh; }
}

.home-video-status {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 15;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.home-video-toggle {
    position: absolute;
    top: 50%;
    z-index: 16;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(-50%);
    transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease;
}

.home-video-toggle--prev {
    left: 16px;
}

.home-video-toggle--next {
    right: 16px;
}

.home-video-toggle:hover {
    color: rgba(255, 255, 255, 0.96);
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.36);
}

.home-video-toggle svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-video-status__track {
    position: relative;
    width: 32px;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    transition: background-color 300ms ease;
}

.home-video-status__track.is-active {
    background: rgba(255, 255, 255, 0.22);
}

.home-video-status__fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.9);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 200ms linear;
}

@media (max-width: 768px) {
    .home-video-toggle--prev {
        left: 12px;
    }

    .home-video-toggle--next {
        right: 12px;
    }

    .home-video-toggle {
        width: 44px;
        height: 44px;
    }

    .home-video-toggle svg {
        width: 26px;
        height: 26px;
    }

    .home-video-status {
        bottom: 18px;
        padding: 9px 10px;
    }

    .home-video-status__track {
        width: 26px;
    }
}

/* ========== Lightbox ========== */
#lightbox {
    display: none;
}

#lightbox:not(.hidden) {
    display: flex;
}

#lightbox-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
}

#lightbox-img.scale-95 {
    transform: scale(0.95);
}

#lightbox-img.scale-100 {
    transform: scale(1);
}

/* ========== Duration utility that Tailwind CDN might not have ========== */
.duration-400 {
    transition-duration: 400ms;
}

/* ========== Gallery Slideshow Transitions ========== */
.gallery-slide-container {
    perspective: 1000px;
}

.gallery-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Mobile: drop the full-screen (100vh) fixed height on the detail hero
   carousel so each slide shows the image at its natural aspect ratio
   instead of being cropped by object-cover. Desktop keeps h-screen. */
@media (max-width: 1023px) {
    #detail-hero {
        height: auto;
    }
    #detail-hero #slides-container {
        position: static;
    }
    #detail-hero #gallery-wrapper {
        height: auto;
        align-items: flex-start;
    }
    #detail-hero .gallery-slide {
        height: auto;
    }
    #detail-hero .gallery-slide img {
        height: auto;
        object-fit: contain;
    }
}

.gallery-project-logo {
    position: absolute;
    top: clamp(1.5rem, 3vw, 3rem);
    z-index: 40;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.42));
}

.gallery-project-logo {
    right: clamp(1.5rem, 3vw, 3rem);
    width: clamp(8rem, 14vw, 14rem);
}

@media (max-width: 640px) {
    .gallery-project-logo {
        top: 1.25rem;
    }

    .gallery-project-logo {
        width: 8rem;
    }
}

@keyframes slide-progress {
    from { width: 0%; }
    to { width: 100%; }
}

.animate-slide-progress {
    animation: slide-progress 5s linear forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 0.8; transform: scale(0.95); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

body #detail-sidebar .completed-call-button {
    margin-top: 1.45rem !important;
    padding-top: 0.95rem !important;
    padding-bottom: 0.95rem !important;
    min-height: 48px;
    letter-spacing: 0.24em;
}

#detail-floor-plan-section #plan-container {
    height: clamp(360px, 62vw, 760px);
}

#detail-floor-plan-section .reveal {
    width: 100%;
}

#detail-floor-plan-section #plan-wrapper {
    height: 100%;
    align-items: center;
}

#detail-floor-plan-section #plan-wrapper > div {
    height: 100%;
    align-items: center;
}

#detail-floor-plan-section #plan-container img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain;
}

@media (max-width: 767px) {
    #detail-floor-plan-section #plan-container {
        height: clamp(300px, 92vw, 520px);
    }
}

#detail-sidebar .detail-sidebar-logo {
    display: block;
    margin-bottom: calc(2.25rem + 8px);
    width: fit-content;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

#detail-sidebar .detail-sidebar-logo:hover {
    opacity: 0.75;
}

#detail-sidebar .detail-sidebar-logo:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 6px;
}

#detail-sidebar .detail-sidebar-logo img {
    display: block;
    width: clamp(7.75rem, 9vw, 9rem);
    height: auto;
    filter: none;
    transform: translateX(-8.25%);
}

#detail-sidebar .detail-back-link {
    margin-bottom: 2.25rem !important;
}

#detail-sidebar.is-garden-city-detail .detail-cta-group {
    gap: 0.75rem !important;
    margin-top: 1rem !important;
}

#detail-sidebar.is-garden-city-detail .detail-cta-group a,
#detail-sidebar.is-garden-city-detail .detail-cta-group button {
    min-height: 48px;
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
}

@media (min-width: 1024px) {
    #detail-sidebar {
        overflow-y: auto !important;
    }

    #detail-sidebar .detail-specs {
        flex: 1 1 auto;
        min-height: 0;
    }

    #detail-sidebar .detail-cta-group {
        margin-top: auto !important;
        padding-top: 1rem;
    }

    #detail-sidebar .detail-cta-group a,
    #detail-sidebar .detail-cta-group button {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        line-height: 1.2;
    }

    #detail-sidebar .detail-cta-group a[href^="tel:"] {
        min-height: 32px;
    }

    #detail-sidebar.is-garden-city-detail .detail-cta-group {
        margin-top: auto !important;
    }

    #detail-sidebar .detail-project-title {
        font-size: clamp(28px, 2.3vw, 34px) !important;
        line-height: 1.12 !important;
    }

    #detail-sidebar .detail-description p {
        line-height: 1.56 !important;
    }
}

@media (min-width: 1024px) and (max-height: 900px) {
    #detail-sidebar.is-garden-city-detail .detail-cta-group {
        gap: 0.5rem !important;
        padding-top: 0.5rem;
    }

    #detail-sidebar.is-garden-city-detail .detail-cta-group a,
    #detail-sidebar.is-garden-city-detail .detail-cta-group button {
        min-height: 44px;
        padding-top: 0.7rem !important;
        padding-bottom: 0.7rem !important;
    }

    #detail-sidebar {
        padding-top: 1.7rem !important;
        padding-bottom: 0.7rem !important;
    }

    #detail-sidebar .detail-sidebar-logo {
        margin-bottom: calc(1.65rem + 8px) !important;
    }

    #detail-sidebar .detail-back-link {
        margin-bottom: 1.55rem !important;
    }

    #detail-sidebar .detail-kicker {
        margin-bottom: 0.9rem !important;
    }

    #detail-sidebar .detail-project-title {
        margin-bottom: 0.9rem !important;
    }

    #detail-sidebar .detail-location-tag,
    #detail-sidebar .detail-description {
        margin-bottom: 1rem !important;
    }
}

@media (min-width: 1024px) and (max-height: 740px) {
    #detail-sidebar .detail-cta-group {
        gap: 0.5rem !important;
        padding-top: 0.5rem;
    }

    #detail-sidebar .detail-cta-group a,
    #detail-sidebar .detail-cta-group button {
        min-height: 44px;
        padding-top: 0.7rem !important;
        padding-bottom: 0.7rem !important;
    }

    #detail-sidebar .detail-cta-group a[href^="tel:"] {
        min-height: 28px;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media (min-width: 1024px) {
    #detail-sidebar {
        overflow-y: hidden !important;
    }

    #detail-sidebar .detail-specs {
        flex: 0 0 auto !important;
        min-height: auto !important;
    }

    #detail-sidebar .detail-cta-group,
    #detail-sidebar.is-garden-city-detail .detail-cta-group {
        margin-top: clamp(1rem, 2vh, 1.45rem) !important;
        padding-top: 0 !important;
    }
}

@media (min-width: 1024px) and (max-height: 760px) {
    #detail-sidebar .detail-cta-group,
    #detail-sidebar.is-garden-city-detail .detail-cta-group {
        gap: 0.5rem !important;
        margin-top: 1rem !important;
    }

    #detail-sidebar .detail-cta-group a,
    #detail-sidebar .detail-cta-group button,
    #detail-sidebar.is-garden-city-detail .detail-cta-group a,
    #detail-sidebar.is-garden-city-detail .detail-cta-group button {
        min-height: 42px;
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
    }

    #detail-sidebar .detail-cta-group a[href^="tel:"] {
        min-height: 26px;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media (max-width: 640px) {
    #detail-sidebar .detail-sidebar-logo {
        margin-bottom: calc(2.25rem + 8px);
    }

    #detail-sidebar .detail-sidebar-logo img {
        width: 7.25rem;
    }
}
