/* ============================================================
   TOPHAT VIP — Home Hero (matched Yukon + text card pair)
   Scoped: #page-home .hero-diagonal only
   Stack: standard phones + Z Fold 7 cover (folded)
   Side-by-side: tablet/desktop + Z Fold 7 inner (unfolded)
   ============================================================ */

#page-home .hero-diagonal.page-header-band {
    padding-top: calc(5.75rem + 1.5rem) !important;
}

#page-home .hero-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: stretch;
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    position: relative;
    perspective: 1400px;
}

/* Floating card — lifted off the hero surface */
#page-home .hero-card {
    box-sizing: border-box;
    min-width: 0;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(125, 211, 252, 0.32);
    border-radius: 1rem;
    background: linear-gradient(
        165deg,
        rgba(8, 14, 42, 0.88) 0%,
        rgba(0, 3, 37, 0.72) 48%,
        rgba(0, 2, 24, 0.82) 100%
    );
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: visible;
    transform: translateY(-10px) translateZ(0);
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -3px 8px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(125, 211, 252, 0.16),
        0 0 14px rgba(56, 189, 248, 0.24),
        0 0 28px rgba(37, 99, 235, 0.14),
        0 1px 2px rgba(0, 0, 0, 0.42),
        0 8px 16px rgba(0, 0, 0, 0.28),
        0 18px 32px rgba(0, 0, 0, 0.16);
}

/* Gold rim retired — borderless cards */
#page-home .hero-card::before {
    display: none;
}

/* Ground shadow on the surface beneath each card */
#page-home .hero-card::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -34px;
    height: 42px;
    z-index: -2;
    border-radius: 50%;
    background: radial-gradient(
        ellipse 115% 100% at 50% 0%,
        rgba(8, 14, 42, 0.34) 0%,
        rgba(8, 14, 42, 0.14) 34%,
        rgba(255, 255, 255, 0.12) 58%,
        rgba(255, 255, 255, 0) 82%
    );
    filter: blur(16px);
    transform: translateZ(-24px) scale(0.94);
    pointer-events: none;
}

#page-home .hero-copy-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    transform: translateY(-10px) rotateY(-2.5deg) rotateX(1deg);
}

#page-home .hero-yukon-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transform: translateY(-10px) rotateY(2.5deg) rotateX(1deg);
}

#page-home .hero-yukon-media {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

#page-home .hero-yukon-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
}

@media (prefers-reduced-motion: reduce) {
    #page-home .hero-card,
    #page-home .hero-yukon-card,
    #page-home .hero-copy-panel {
        transform: translateY(-6px);
    }
}

#page-home .hero-copy-panel .animate-in {
    width: 100%;
    text-align: center;
}

#page-home .hero-copy-panel .gold-divider {
    margin-left: auto;
    margin-right: auto;
}

#page-home .hero-copy-panel .hero-copy-actions {
    justify-content: center;
    width: 100%;
    padding-bottom: 0;
}

#page-home .hero-copy-panel .hero-copy-actions .btn-gold,
#page-home .hero-copy-panel .hero-copy-actions .btn-outline-gold {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    justify-content: center;
}

#page-home .hero-copy-panel .flex {
    justify-content: center;
    width: 100%;
}

#page-home .hero-brand-title,
#page-home .hero-copy-panel h1.text-gold.font-display {
    font-size: clamp(1.75rem, 5.5vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Side-by-side: tablet/desktop, or unfolded foldable inner display (~750×832) */
@media (min-width: 768px),
       (min-width: 700px) and (min-height: 700px) {
    #page-home .hero-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    #page-home .hero-copy-panel {
        grid-column: 1;
    }

    #page-home .hero-yukon-card {
        grid-column: 2;
    }
}

/* Compact side-by-side: unfolded Z Fold 7 inner + small tablets */
@media (min-width: 700px) and (min-height: 700px) and (max-width: 1024px),
       (min-width: 768px) and (max-width: 1024px) {
    #page-home .hero-split {
        gap: clamp(0.75rem, 2vw, 1.35rem);
    }

    #page-home .hero-card {
        padding: clamp(0.85rem, 2.2vw, 1.5rem);
    }

    #page-home .hero-brand-title,
    #page-home .hero-copy-panel h1.text-gold.font-display {
        font-size: clamp(1.125rem, 3.8vw, 2rem) !important;
        letter-spacing: 0.03em;
        line-height: 1.08;
        white-space: normal;
    }

    #page-home .hero-copy-panel .animate-in > p:first-child {
        font-size: clamp(0.5625rem, 1.5vw, 0.75rem);
        letter-spacing: 0.12em;
        margin-bottom: 0.65rem;
    }

    #page-home .hero-copy-panel .animate-in > p:nth-child(3) {
        font-size: clamp(0.75rem, 2vw, 1rem);
        letter-spacing: 0.08em;
        margin-bottom: 0.65rem;
    }

    #page-home .hero-copy-panel .animate-in > p:nth-child(5) {
        margin-top: 0.75rem;
        margin-bottom: 1rem;
        font-size: clamp(0.5625rem, 1.4vw, 0.6875rem);
        letter-spacing: 0.08em;
    }

    #page-home .hero-copy-panel .flex,
    #page-home .hero-copy-panel .hero-copy-actions {
        flex-direction: column;
        gap: 0.65rem;
    }

    #page-home .hero-copy-panel .btn-gold,
    #page-home .hero-copy-panel .btn-outline-gold,
    #page-home .hero-copy-panel .hero-copy-actions .btn-gold,
    #page-home .hero-copy-panel .hero-copy-actions .btn-outline-gold {
        width: 100%;
        justify-content: center;
        font-size: clamp(0.6875rem, 1.8vw, 0.8125rem);
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    #page-home .hero-yukon-media {
        min-height: clamp(7.5rem, 28vw, 12rem);
    }

    #page-home .hero-yukon-image {
        max-height: min(28vw, 12rem);
    }
}

@media (min-width: 700px) and (min-height: 700px) and (max-width: 1023px) {
    #page-home .hero-diagonal.page-header-band {
        height: auto !important;
        max-height: none !important;
        min-height: 100vh !important;
        align-items: center !important;
        justify-content: center !important;
        padding-top: calc(4.25rem + 1rem) !important;
        padding-bottom: calc(1.25rem + 7.5rem) !important;
    }
}

@media (min-width: 660px) and (max-width: 1023px) {
    #page-home .hero-diagonal.page-header-band {
        padding-top: calc(6.35rem + 1.25rem) !important;
    }
}

/* Stacked phones + Z Fold 7 cover (folded) */
@media (max-width: 699px),
       (max-width: 767px) and (max-height: 699px) {
    #page-home .hero-brand-title,
    #page-home .hero-copy-panel h1.text-gold.font-display {
        white-space: normal;
        font-size: clamp(1.55rem, 8vw, 1.85rem);
    }

    #page-home .hero-diagonal.page-header-band {
        height: auto !important;
        max-height: none !important;
        min-height: 100vh !important;
        align-items: center !important;
        justify-content: center !important;
        padding-top: calc(4rem + 1.25rem) !important;
    }

    #page-home .hero-split {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    #page-home .hero-yukon-media {
        min-height: clamp(10rem, 38vh, 16rem);
    }

    #page-home .hero-yukon-image {
        max-height: min(38vh, 16rem);
    }

    #page-home .hero-copy-panel {
        padding-bottom: 1.35rem;
    }

    #page-home .hero-copy-panel .hero-copy-actions {
        padding-bottom: 0.35rem;
    }
}
