/* ==========================================================
   SEA STAR HOMEPAGE 3
   CINEMATIC PROCESS / EDITORIAL INDUSTRIAL
   ========================================================== */

.hp3 {
    --graphite: #11161b;
    --graphite-2: #1a2025;
    --ivory: #f3efe7;
    --ivory-2: #e8e0d3;
    --copper: #b87333;
    --copper-light: #d3955d;
    --steel: #69736d;
    --ink: #191c1d;
    --white: #fff;
    --max: 1380px;

    background: var(--ivory);
    color: var(--ink);
    overflow: hidden;
}

.hp3 *,
.hp3 *::before,
.hp3 *::after {
    box-sizing: border-box;
}

.hp3-container {
    width: min(calc(100% - 52px), var(--max));
    margin-inline: auto;
}

.hp3-preview {
    padding: 9px 20px;
    text-align: center;
    background: var(--copper);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.hp3-eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--copper-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hp3-eyebrow::before {
    content: "";
    width: 35px;
    height: 1px;
    background: currentColor;
}

.hp3-eyebrow-dark {
    color: var(--copper);
}


/* HERO */

.hp3-hero {
    min-height: 690px;
    color: #fff;
    background:
        linear-gradient(
            115deg,
            #11161b,
            #252b2f
        );
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hp3-hero-inner {
    min-height: 690px;
    padding: 88px 0;
    display: grid;
    grid-template-columns: 1.2fr .45fr;
    gap: 100px;
    align-items: center;
}

.hp3-hero-copy {
    max-width: 900px;
}

.hp3-hero h1 {
    margin: 26px 0 0;
    max-width: 900px;
    font-size: clamp(55px, 6vw, 94px);
    line-height: .94;
    letter-spacing: -.055em;
    font-weight: 700;
}

.hp3-hero h1 span {
    color: var(--copper-light);
}

.hp3-hero-copy > p {
    max-width: 670px;
    margin: 30px 0 0;
    color: rgba(255,255,255,.69);
    font-size: 18px;
    line-height: 1.75;
}

.hp3-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 34px;
}

.hp3-button {
    min-height: 51px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: .2s ease;
}

.hp3-button-copper {
    background: var(--copper);
    color: #fff;
}

.hp3-button-copper:hover {
    background: #9f612c;
}

.hp3-button-outline {
    border-color: rgba(255,255,255,.36);
    color: #fff;
}

.hp3-button-outline:hover {
    background: rgba(255,255,255,.08);
}

.hp3-hero-index {
    border-left: 1px solid rgba(255,255,255,.16);
    padding-left: 35px;
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 22px 14px;
    align-items: center;
}

.hp3-hero-index span {
    color: var(--copper-light);
    font-size: 11px;
    font-weight: 800;
}

.hp3-hero-index strong {
    color: rgba(255,255,255,.82);
    font-size: 15px;
}


/* PROCESS */

.hp3-process {
    padding: 110px 0;
    background: var(--ivory);
}

.hp3-process-heading {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    align-items: end;
}

.hp3-process-heading h2,
.hp3-section-heading h2 {
    margin: 16px 0 0;
    font-size: clamp(41px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -.045em;
    font-weight: 650;
}

.hp3-process-heading > p {
    max-width: 540px;
    margin: 0;
    color: #69716e;
    font-size: 15px;
    line-height: 1.75;
}

.hp3-video-shell {
    position: relative;
    margin-top: 54px;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: #161b1e;
}

.hp3-process-video,
.hp3-process-poster {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hp3-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: #fff;
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(184,115,51,.26),
            transparent 29%
        ),
        #171c1f;
}

.hp3-video-placeholder span {
    color: var(--copper-light);
    font-size: 12px;
    letter-spacing: .15em;
}

.hp3-video-placeholder strong {
    margin-top: 16px;
    max-width: 700px;
    font-size: clamp(30px, 4vw, 58px);
    line-height: 1.05;
}

.hp3-video-caption {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 24px;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    color: #fff;
    background: rgba(16,20,24,.74);
    backdrop-filter: blur(8px);
}

.hp3-video-caption span {
    color: var(--copper-light);
    font-size: 10px;
    letter-spacing: .14em;
}

.hp3-video-caption strong {
    font-size: 13px;
}

.hp3-process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 36px;
    border-top: 1px solid rgba(25,28,29,.16);
}

.hp3-process-steps > div {
    padding: 27px 22px 0 0;
}

.hp3-process-steps span {
    color: var(--copper);
    font-size: 11px;
    font-weight: 800;
}

.hp3-process-steps strong {
    display: block;
    margin-top: 18px;
    font-size: 17px;
}

.hp3-process-steps p {
    margin: 9px 0 0;
    color: #707774;
    font-size: 12px;
    line-height: 1.55;
}


/* CAPABILITY MOSAIC */

.hp3-capabilities {
    padding: 110px 0;
    background: var(--graphite);
    color: #fff;
}

.hp3-section-heading {
    max-width: 900px;
}

.hp3-capability-mosaic {
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,.11);
    border-left: 1px solid rgba(255,255,255,.11);
}

.hp3-capability-card {
    min-height: 300px;
    padding: 30px;
    color: #fff;
    text-decoration: none;
    border-right: 1px solid rgba(255,255,255,.11);
    border-bottom: 1px solid rgba(255,255,255,.11);
    transition: .2s ease;
}

.hp3-capability-card:hover {
    background: rgba(184,115,51,.11);
}

.hp3-capability-card span {
    color: var(--copper-light);
    font-size: 11px;
}

.hp3-capability-card h3 {
    margin: 105px 0 0;
    font-size: 26px;
}

.hp3-capability-card p {
    max-width: 260px;
    color: rgba(255,255,255,.53);
    font-size: 13px;
    line-height: 1.6;
}

.hp3-capability-card b {
    display: block;
    margin-top: 22px;
    color: var(--copper-light);
    font-size: 12px;
}


/* ABOUT */

.hp3-about {
    padding: 105px 0;
    background: #736f67;
    color: #fff;
}

.hp3-about-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 100px;
}

.hp3-about h2 {
    margin: 18px 0 0;
    font-size: clamp(39px, 5vw, 67px);
    line-height: 1;
    letter-spacing: -.045em;
}

.hp3-about p {
    margin: 0;
    max-width: 720px;
    color: rgba(255,255,255,.77);
    font-size: 17px;
    line-height: 1.85;
}

.hp3-text-link {
    display: inline-flex;
    margin-top: 26px;
    color: var(--copper-light);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}


/* PRODUCTS */

.hp3-products {
    padding: 110px 0;
    background: var(--ivory);
}

.hp3-dark-link {
    color: var(--copper);
}

.hp3-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.hp3-product-card {
    color: inherit;
    text-decoration: none;
    background: #fff;
}

.hp3-product-image {
    aspect-ratio: 1 / .82;
    background: #e9e5dc;
    padding: 20px;
}

.hp3-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hp3-product-meta {
    padding: 20px;
}

.hp3-product-meta span {
    color: var(--copper);
    font-size: 10px;
    font-weight: 800;
}

.hp3-product-meta h3 {
    margin: 9px 0 0;
    font-size: 17px;
    line-height: 1.35;
}


/* FINAL */

.hp3-final {
    padding: 100px 0;
    background: var(--graphite);
    color: #fff;
}

.hp3-final-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 100px;
}

.hp3-final h2 {
    margin: 18px 0 0;
    max-width: 850px;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -.045em;
}

.hp3-final p {
    color: rgba(255,255,255,.62);
    font-size: 16px;
    line-height: 1.8;
}


/* MOBILE */

@media (max-width: 900px) {

    .hp3-hero-inner,
    .hp3-about-grid,
    .hp3-final-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hp3-hero-index {
        display: none;
    }

    .hp3-process-heading {
        display: block;
    }

    .hp3-process-heading > p {
        margin-top: 22px;
    }

    .hp3-process-steps {
        grid-template-columns: 1fr 1fr;
    }

    .hp3-capability-mosaic {
        grid-template-columns: 1fr 1fr;
    }

    .hp3-product-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {

    .hp3-container {
        width: 100%;
        padding-left: 17px;
        padding-right: 17px;
    }

    .hp3-hero {
        min-height: auto;
    }

    .hp3-hero-inner {
        min-height: auto;
        padding: 65px 0;
    }

    .hp3-hero h1 {
        font-size: 43px;
    }

    .hp3-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hp3-button {
        width: 100%;
    }

    .hp3-process,
    .hp3-capabilities,
    .hp3-about,
    .hp3-products,
    .hp3-final {
        padding-top: 68px;
        padding-bottom: 68px;
    }

    .hp3-video-shell {
        aspect-ratio: 9 / 12;
    }

    .hp3-video-caption {
        left: 12px;
        right: 12px;
        bottom: 12px;
        display: block;
    }

    .hp3-video-caption strong {
        display: block;
        margin-top: 6px;
    }

    .hp3-process-steps,
    .hp3-capability-mosaic,
    .hp3-product-grid {
        grid-template-columns: 1fr;
    }

    .hp3-capability-card {
        min-height: 210px;
    }

    .hp3-capability-card h3 {
        margin-top: 55px;
    }
}

/* ==========================================================
   HOMEPAGE 3 - INDUSTRIES / BRANDS / ABOUT ENHANCEMENT
   ========================================================== */


/* INDUSTRIES */

.hp3-industries {
    padding: 110px 0;
    background: #f3efe7;
}

.hp3-industry-grid {
    margin-top: 52px;
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.hp3-industry-card {
    position: relative;
    min-height: 380px;
    padding: 25px;
    display: flex;
    align-items: flex-end;

    background:
        linear-gradient(
            180deg,
            rgba(17,22,27,.08),
            rgba(17,22,27,.93)
        ),
        #343a3c;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.hp3-industry-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 40px rgba(17,22,27,.18);
}

.hp3-industry-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hp3-industry-content span {
    color: #d3955d;
    font-size: 10px;
    font-weight: 800;
}

.hp3-industry-content h3 {
    margin: 13px 0 0;
    font-size: 24px;
    line-height: 1.1;
}

.hp3-industry-content p {
    margin: 9px 0 0;
    color: rgba(255,255,255,.66);
    font-size: 12px;
    line-height: 1.55;
}


/* BRANDS */

.hp3-brands {
    padding: 82px 0;
    background: #e7e0d5;
    border-top: 1px solid rgba(25,28,29,.10);
    border-bottom: 1px solid rgba(25,28,29,.10);
}

.hp3-brands-inner {
    display: grid;
    grid-template-columns:
        minmax(260px,.55fr)
        minmax(0,1.45fr);
    gap: 70px;
    align-items: center;
}

.hp3-brands h2 {
    margin: 16px 0 0;
    font-size: clamp(32px, 3.5vw, 52px);
    line-height: 1;
    letter-spacing: -.04em;
}

.hp3-brand-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0,1fr));
    gap: 10px;
}

.hp3-brand-item {
    height: 95px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;

    background: rgba(255,255,255,.55);
    border: 1px solid rgba(25,28,29,.08);
}

.hp3-brand-item img {
    max-width: 125px;
    max-height: 48px;
    object-fit: contain;
}

.hp3-brand-item span {
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}


/* ABOUT ENHANCEMENT */

.hp3-about {
    position: relative;
    overflow: hidden;
}

.hp3-about::after {
    content: "";
    position: absolute;

    width: 620px;
    height: 520px;

    right: -90px;
    bottom: -120px;

    background-image: var(--hp3-map);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;

    opacity: .08;
    pointer-events: none;
}

.hp3-about-grid {
    position: relative;
    z-index: 2;
}

.hp3-about-facts {
    margin-top: 38px;
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0,1fr));
    border-top:
        1px solid rgba(255,255,255,.18);
}

.hp3-about-facts > div {
    padding: 23px 22px 0 0;
}

.hp3-about-facts span {
    color: #d3955d;
    font-size: 10px;
    font-weight: 800;
}

.hp3-about-facts strong {
    display: block;
    margin-top: 9px;

    color: #fff;
    font-size: 15px;
}

.hp3-about-facts p {
    margin: 5px 0 0;

    color: rgba(255,255,255,.54);
    font-size: 11px;
    line-height: 1.45;
}


/* ==========================================================
   HOMEPAGE 3 - MOBILE POLISH
   ========================================================== */

@media (max-width: 900px) {

    .hp3-industry-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .hp3-brands-inner {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hp3-brand-grid {
        grid-template-columns:
            repeat(4, minmax(0,1fr));
    }
}


@media (max-width: 600px) {

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .hp3 {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .hp3-container {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;

        padding-left: 17px !important;
        padding-right: 17px !important;
    }


    /* HERO */

    .hp3-hero {
        background-position:
            67% center !important;
    }

    .hp3-hero-copy {
        width: 100%;
        max-width: 100%;
    }

    .hp3-eyebrow {
        font-size: 9px;
        letter-spacing: .13em;
    }

    .hp3-hero h1 {
        max-width: 100%;
        font-size: clamp(
            39px,
            11vw,
            48px
        ) !important;

        line-height: .98;
    }

    .hp3-hero-copy > p {
        font-size: 15px;
        line-height: 1.65;
    }


    /* VIDEO */

    .hp3-process-heading h2,
    .hp3-section-heading h2 {
        font-size:
            clamp(34px, 10vw, 45px);
    }

    .hp3-video-shell {
        margin-top: 35px;
        aspect-ratio: 4 / 5;
    }

    .hp3-process-video,
    .hp3-process-poster {
        object-position: center;
    }

    .hp3-process-steps {
        grid-template-columns: 1fr;
    }

    .hp3-process-steps > div {
        padding: 20px 0;

        border-bottom:
            1px solid rgba(25,28,29,.12);
    }


    /* CAPABILITIES */

    .hp3-capability-mosaic {
        grid-template-columns: 1fr;
    }

    .hp3-capability-card {
        min-height: 195px;
    }


    /* INDUSTRIES */

    .hp3-industries {
        padding-top: 68px;
        padding-bottom: 68px;
    }

    .hp3-industry-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hp3-industry-card {
        min-height: 290px;
    }


    /* BRANDS */

    .hp3-brands {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hp3-brand-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .hp3-brand-item {
        height: 80px;
    }

    .hp3-brand-item img {
        max-width: 105px;
        max-height: 38px;
    }


    /* ABOUT */

    .hp3-about-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hp3-about-facts {
        grid-template-columns: 1fr;
    }

    .hp3-about-facts > div {
        padding: 18px 0;

        border-bottom:
            1px solid rgba(255,255,255,.13);
    }

    .hp3-about::after {
        width: 350px;
        height: 300px;

        right: -90px;

        opacity: .05;
    }


    /* PRODUCTS */

    .hp3-product-grid {
        grid-template-columns: 1fr;
    }


    /* FINAL */

    .hp3-final-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hp3-final h2 {
        font-size:
            clamp(36px, 10vw, 48px);
    }
}

/* ==========================================================
   HOMEPAGE 3 - FINAL RESPONSIVE IMAGE / VIDEO FIX
   ========================================================== */


/* Desktop process video should match normal video ratio */

.hp3-video-shell {
    aspect-ratio: 16 / 9 !important;
}

.hp3-process-video,
.hp3-process-poster {
    width: 100%;
    height: 100%;
    display: block;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 600px) {

    /*
     * Use dedicated vertical hero when uploaded.
     */
    .hp3-hero {
        background-image:
            linear-gradient(
                180deg,
                rgba(17,22,27,.58) 0%,
                rgba(17,22,27,.70) 48%,
                rgba(17,22,27,.93) 100%
            ),
            var(--hp3-mobile-hero) !important;

        background-size: cover !important;

        background-position:
            center center !important;

        background-repeat:
            no-repeat !important;
    }


    /*
     * If a 9:16 mobile video is uploaded,
     * the container must also be 9:16.
     */
    .hp3-video-shell {
        width: 100% !important;
        height: auto !important;

        aspect-ratio:
            9 / 16 !important;

        background:
            #11161b !important;

        overflow: hidden !important;
    }


    /*
     * Do NOT crop mobile video.
     * Show the complete 9:16 frame.
     */
    .hp3-process-video {
        width: 100% !important;
        height: 100% !important;

        object-fit:
            contain !important;

        object-position:
            center center !important;

        background:
            #11161b;
    }


    /*
     * Poster also displays fully.
     */
    .hp3-process-poster {
        width: 100% !important;
        height: 100% !important;

        object-fit:
            contain !important;

        object-position:
            center center !important;

        background:
            #11161b;
    }


    /*
     * Keep caption inside video safe area.
     */
    .hp3-video-caption {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;

        max-width:
            calc(100% - 20px);

        padding:
            12px 13px !important;
    }

    .hp3-video-caption strong {
        font-size:
            10px !important;

        line-height:
            1.4 !important;
    }


    /*
     * Prevent responsive media from exceeding
     * viewport width.
     */
    .hp3 img,
    .hp3 video {
        max-width:
            100% !important;
    }
}


/* ----------------------------------------------------------
   TABLETS
   ---------------------------------------------------------- */

@media (min-width: 601px) and (max-width: 900px) {

    .hp3-video-shell {
        aspect-ratio:
            16 / 9 !important;
    }

    .hp3-process-video,
    .hp3-process-poster {
        object-fit:
            cover;
    }
}


/* ==========================================================
   HOMEPAGE 3 - COMPACT SECTION SPACING
   Pre-launch UX refinement
   ========================================================== */

.hp3-process,
.hp3-capabilities,
.hp3-industries,
.hp3-about,
.hp3-products,
.hp3-final {
    padding-top: 72px;
    padding-bottom: 72px;
}

.hp3-brands {
    padding-top: 64px;
    padding-bottom: 64px;
}


/* Tablet */
@media (max-width: 900px) {

    .hp3-process,
    .hp3-capabilities,
    .hp3-industries,
    .hp3-about,
    .hp3-products,
    .hp3-final {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .hp3-brands {
        padding-top: 52px;
        padding-bottom: 52px;
    }
}


/* Mobile */
@media (max-width: 600px) {

    .hp3-process,
    .hp3-capabilities,
    .hp3-industries,
    .hp3-about,
    .hp3-products,
    .hp3-final {
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .hp3-brands {
        padding-top: 44px;
        padding-bottom: 44px;
    }
}



/* ==========================================================
   HOMEPAGE 3 - PRODUCT CARD MOTION
   ========================================================== */

.hp3-product-card {
    transition:
        transform .32s ease,
        box-shadow .32s ease;
}

.hp3-product-image {
    overflow: hidden;
}

.hp3-product-image img {
    transition:
        transform .45s
        cubic-bezier(.22,.61,.36,1);
}


/* Soft image zoom */
@media (hover: hover) and (pointer: fine) {

    .hp3-product-card[data-image-hover="soft_zoom"]:hover
    .hp3-product-image img {
        transform: scale(1.045);
    }


    /* Whole-card lift */
    .hp3-product-card[data-image-hover="lift"]:hover {
        transform: translateY(-6px);
        box-shadow:
            0 16px 34px
            rgba(18, 24, 27, .10);
    }
}


/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .hp3-product-card,
    .hp3-product-image img {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}



/* ==========================================================
   HOMEPAGE 3 - PRODUCT 3D INTERACTION
   ========================================================== */

.hp3-product-image {
    perspective: 900px;
    perspective-origin: center;
}

.hp3-product-card[
    data-image-hover="tilt_3d"
] .hp3-product-image img,
.hp3-product-card[
    data-image-hover="tilt_zoom_3d"
] .hp3-product-image img,
.hp3-product-card[
    data-image-hover="float_3d"
] .hp3-product-image img {

    --hp3-rotate-x: 0deg;
    --hp3-rotate-y: 0deg;
    --hp3-scale: 1;
    --hp3-translate-y: 0px;

    transform:
        translate3d(
            0,
            var(--hp3-translate-y),
            0
        )
        rotateX(
            var(--hp3-rotate-x)
        )
        rotateY(
            var(--hp3-rotate-y)
        )
        scale(
            var(--hp3-scale)
        );

    transform-style:
        preserve-3d;

    transform-origin:
        center center;

    will-change:
        transform;

    transition:
        transform .20s
        cubic-bezier(.22,.61,.36,1),
        filter .28s ease;
}


@media (hover: hover) and (pointer: fine) {

    .hp3-product-card[
        data-image-hover="tilt_3d"
    ] .hp3-product-image:hover img,
    .hp3-product-card[
        data-image-hover="tilt_zoom_3d"
    ] .hp3-product-image:hover img,
    .hp3-product-card[
        data-image-hover="float_3d"
    ] .hp3-product-image:hover img {

        filter:
            drop-shadow(
                0 22px 18px
                rgba(18,24,27,.26)
            );
    }


    .hp3-product-card[
        data-image-hover="tilt_zoom_3d"
    ] .hp3-product-image {

        cursor:
            perspective;
    }
}


/*
 * Float effect retains a little extra perceived depth.
 */
.hp3-product-card[
    data-image-hover="float_3d"
] .hp3-product-image {

    transform-style:
        preserve-3d;
}


/*
 * Restore smoothly when pointer leaves.
 */
.hp3-product-card[
    data-image-hover="tilt_3d"
] .hp3-product-image:not(.hp3-3d-active) img,
.hp3-product-card[
    data-image-hover="tilt_zoom_3d"
] .hp3-product-image:not(.hp3-3d-active) img,
.hp3-product-card[
    data-image-hover="float_3d"
] .hp3-product-image:not(.hp3-3d-active) img {

    --hp3-rotate-x: 0deg;
    --hp3-rotate-y: 0deg;
    --hp3-scale: 1;
    --hp3-translate-y: 0px;

    transition-duration:
        .42s;
}


/* Accessibility / touch fallback */
@media (
    prefers-reduced-motion: reduce
),
(hover: none),
(pointer: coarse) {

    .hp3-product-card[
        data-image-hover="tilt_3d"
    ] .hp3-product-image img,
    .hp3-product-card[
        data-image-hover="tilt_zoom_3d"
    ] .hp3-product-image img,
    .hp3-product-card[
        data-image-hover="float_3d"
    ] .hp3-product-image img {

        transform:
            none !important;

        filter:
            none !important;

        transition:
            none !important;
    }
}



/* Stronger visual depth for 3D product interaction */
@media (hover: hover) and (pointer: fine) {

    .hp3-product-card[data-image-hover="tilt_3d"]:hover,
    .hp3-product-card[data-image-hover="tilt_zoom_3d"]:hover,
    .hp3-product-card[data-image-hover="float_3d"]:hover {
        transform: translateY(-4px);
        box-shadow:
            0 18px 38px
            rgba(18,24,27,.12);
    }
}



/* ==========================================================
   HOMEPAGE 3 - FULL CARD 3D PARALLAX
   Stronger premium product interaction
   ========================================================== */

@media (hover: hover) and (pointer: fine) {

    .hp3-product-card[data-image-hover="tilt_3d"],
    .hp3-product-card[data-image-hover="tilt_zoom_3d"],
    .hp3-product-card[data-image-hover="float_3d"] {

        --hp3-card-rotate-x: 0deg;
        --hp3-card-rotate-y: 0deg;
        --hp3-card-lift: 0px;

        position: relative;

        transform:
            perspective(1100px)
            translateY(
                var(--hp3-card-lift)
            )
            rotateX(
                var(--hp3-card-rotate-x)
            )
            rotateY(
                var(--hp3-card-rotate-y)
            );

        transform-style:
            preserve-3d;

        transition:
            transform .22s
            cubic-bezier(.22,.61,.36,1),
            box-shadow .25s ease;

        will-change:
            transform;
    }


    .hp3-product-card.hp3-card-3d-active {

        box-shadow:
            0 30px 60px
            rgba(18,24,27,.23);
    }


    /*
     * Product image sits visually above the card.
     */
    .hp3-product-card[data-image-hover="tilt_3d"]
    .hp3-product-image img,

    .hp3-product-card[data-image-hover="tilt_zoom_3d"]
    .hp3-product-image img,

    .hp3-product-card[data-image-hover="float_3d"]
    .hp3-product-image img {

        position: relative;
        z-index: 2;

        transform-style:
            preserve-3d;
    }


    /*
     * Moving light / sheen makes the depth
     * much easier for the eye to notice.
     */
    .hp3-product-card[data-image-hover="tilt_3d"]
    .hp3-product-image::after,

    .hp3-product-card[data-image-hover="tilt_zoom_3d"]
    .hp3-product-image::after,

    .hp3-product-card[data-image-hover="float_3d"]
    .hp3-product-image::after {

        content: "";

        position: absolute;
        inset: 0;

        pointer-events: none;

        opacity: 0;

        background:
            radial-gradient(
                circle at
                var(--hp3-light-x, 50%)
                var(--hp3-light-y, 50%),
                rgba(255,255,255,.42),
                rgba(255,255,255,.10) 24%,
                transparent 55%
            );

        transition:
            opacity .22s ease;

        z-index: 3;
    }


    .hp3-product-image.hp3-3d-active::after {
        opacity: .72;
    }


    /*
     * Product metadata also gets slight depth.
     */
    .hp3-product-card.hp3-card-3d-active
    .hp3-product-meta {

        transform:
            translateZ(22px);

        transition:
            transform .22s ease;
    }


    .hp3-product-card:not(.hp3-card-3d-active)
    .hp3-product-meta {

        transform:
            translateZ(0);

        transition:
            transform .38s ease;
    }


    /*
     * Smooth return to flat state.
     */
    .hp3-product-card[data-image-hover="tilt_3d"]:not(.hp3-card-3d-active),
    .hp3-product-card[data-image-hover="tilt_zoom_3d"]:not(.hp3-card-3d-active),
    .hp3-product-card[data-image-hover="float_3d"]:not(.hp3-card-3d-active) {

        --hp3-card-rotate-x: 0deg;
        --hp3-card-rotate-y: 0deg;
        --hp3-card-lift: 0px;

        transition-duration:
            .45s;
    }
}


/* Accessibility / touch */
@media (prefers-reduced-motion: reduce),
       (hover: none),
       (pointer: coarse) {

    .hp3-product-card[data-image-hover="tilt_3d"],
    .hp3-product-card[data-image-hover="tilt_zoom_3d"],
    .hp3-product-card[data-image-hover="float_3d"] {

        transform:
            none !important;

        box-shadow:
            none !important;
    }

    .hp3-product-image::after {
        display: none !important;
    }
}



/* ==========================================================
   HOMEPAGE 3 - MULTI-LAYER 3D PARALLAX
   ========================================================== */

@media (hover: hover) and (pointer: fine) {

    /*
     * Separate visual plane behind the product.
     */
    .hp3-product-card[data-image-hover="tilt_zoom_3d"]
    .hp3-product-image {

        --hp3-bg-x: 0px;
        --hp3-bg-y: 0px;

        position: relative;
        isolation: isolate;
    }


    /*
     * Soft moving background layer.
     * This moves opposite the product image.
     */
    .hp3-product-card[data-image-hover="tilt_zoom_3d"]
    .hp3-product-image::before {

        content: "";

        position: absolute;

        inset: 7%;

        z-index: 0;

        pointer-events: none;

        border-radius: 18px;

        background:
            radial-gradient(
                circle at 50% 45%,
                rgba(255,255,255,.82),
                rgba(255,255,255,.38) 35%,
                rgba(205,199,187,.18) 68%,
                transparent 80%
            );

        transform:
            translate3d(
                var(--hp3-bg-x),
                var(--hp3-bg-y),
                0
            )
            scale(1.04);

        transition:
            transform .18s
            cubic-bezier(.22,.61,.36,1),
            opacity .2s ease;

        opacity:
            .72;
    }


    /*
     * Strong foreground product depth.
     */
    .hp3-product-card[data-image-hover="tilt_zoom_3d"]
    .hp3-product-image img {

        --hp3-image-x: 0px;
        --hp3-image-y: 0px;

        --hp3-shadow-x: 0px;
        --hp3-shadow-y: 16px;

        z-index: 2;

        transform:
            translate3d(
                var(--hp3-image-x),
                calc(
                    var(--hp3-translate-y)
                    + var(--hp3-image-y)
                ),
                42px
            )
            rotateX(
                var(--hp3-rotate-x)
            )
            rotateY(
                var(--hp3-rotate-y)
            )
            scale(
                var(--hp3-scale)
            );

        filter:
            drop-shadow(
                var(--hp3-shadow-x)
                var(--hp3-shadow-y)
                19px
                rgba(18,24,27,.28)
            );

        transition:
            transform .14s
            cubic-bezier(.22,.61,.36,1),
            filter .14s ease;
    }


    /*
     * Stronger active state.
     */
    .hp3-product-card[data-image-hover="tilt_zoom_3d"]
    .hp3-product-image.hp3-3d-active img {

        filter:
            drop-shadow(
                var(--hp3-shadow-x)
                var(--hp3-shadow-y)
                24px
                rgba(18,24,27,.34)
            );
    }


    /*
     * Metadata becomes another depth plane.
     */
    .hp3-product-card[data-image-hover="tilt_zoom_3d"] {

        --hp3-meta-x: 0px;
        --hp3-meta-y: 0px;
    }


    .hp3-product-card[data-image-hover="tilt_zoom_3d"]
    .hp3-product-meta {

        position: relative;

        z-index: 4;

        transform:
            translate3d(
                var(--hp3-meta-x),
                var(--hp3-meta-y),
                28px
            );

        transition:
            transform .18s
            cubic-bezier(.22,.61,.36,1);
    }


    /*
     * Stronger card lift/depth.
     */
    .hp3-product-card[data-image-hover="tilt_zoom_3d"]
    .hp3-product-image.hp3-3d-active {

        transform:
            translateZ(16px);
    }


    .hp3-product-card[data-image-hover="tilt_zoom_3d"]
    .hp3-product-image {

        transition:
            transform .18s ease;
    }


    /*
     * Make the sheen more obvious
     * on the 3D Tilt + Zoom option.
     */
    .hp3-product-card[data-image-hover="tilt_zoom_3d"]
    .hp3-product-image.hp3-3d-active::after {

        opacity:
            .9;

        background:
            radial-gradient(
                circle at
                var(--hp3-light-x, 50%)
                var(--hp3-light-y, 50%),
                rgba(255,255,255,.54),
                rgba(255,255,255,.18) 22%,
                transparent 52%
            );
    }


    /*
     * Slight border enhancement while active.
     */
    .hp3-product-card[data-image-hover="tilt_zoom_3d"]
    .hp3-product-image.hp3-3d-active {

        box-shadow:
            inset 0 0 0 1px
            rgba(255,255,255,.35);
    }
}


/* Reduced motion / touch safety */
@media (prefers-reduced-motion: reduce),
       (hover: none),
       (pointer: coarse) {

    .hp3-product-card[data-image-hover="tilt_zoom_3d"]
    .hp3-product-image::before {

        display:
            none !important;
    }

    .hp3-product-card[data-image-hover="tilt_zoom_3d"]
    .hp3-product-image img,

    .hp3-product-card[data-image-hover="tilt_zoom_3d"]
    .hp3-product-meta {

        transform:
            none !important;

        filter:
            none !important;
    }
}

