@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=JetBrains+Mono&display=swap');

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

:root {
    --scale: clamp(0.58, calc(0.58 + (100vw - 768px) / (1440px - 768px) * 0.42), 1.0);    /* at 768px -> ~0.59  |  at 1280px -> ~0.84  |  at 1440px -> 1.0 */
}


        
body { font-family: 'Inter', sans-serif; background-color: #ffffff; color: #000000; overflow-x: hidden;}
.mono { font-family: 'JetBrains Mono', monospace; }

/* Hero responsive */
#hero {
    --hero-vh: 100svh;
    --hero-size-multiplier: 1.5;
    --hero-pad-x: var(--hero-align-x, clamp(0.9rem, 3.4vw, 4.5rem));
    --hero-pad-y: clamp(0.55rem, 1.8vh, 1.25rem);
    --hero-gap: clamp(0.55rem, 1.8vh, 1.4rem);
    --hero-overlap-top: clamp(0.9rem, 3.6vh, 3.6rem);
    --hero-overlap-bottom: clamp(1rem, 4vh, 3.8rem);
    --hero-glass-size: clamp(210px, 36vh, 470px);
    --hero-box-size: clamp(108px, 18vh, 250px);
    --hero-title-size: clamp(2rem, 8.5vw, 6.875rem);
    --hero-micro-size: clamp(0.5rem, 0.95vw, 0.7rem);
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: var(--hero-vh);
    height: var(--hero-vh);
    padding-inline: var(--hero-pad-x);
    padding-block: var(--hero-pad-y);
    overflow: hidden;
}

@supports (height: 100dvh) {
    #hero {
        --hero-vh: 100dvh;
    }
}

.hero-nav {
    margin-top: clamp(0.15rem, 1vh, 0.95rem);
    padding-inline: 0;
    padding-block: clamp(0.35rem, 1.1vh, 0.9rem);
    min-height: clamp(68px, 11vh, 108px);
}

#navbar .logo {
    height: clamp(2.8rem, 8.5vh, 5rem);
}

#navbar > .pointer-events-auto.py-3 {
    padding-block: clamp(0.2rem, 0.8vh, 0.75rem);
}

#navbar > .pointer-events-auto.py-3 > div {
    font-size: clamp(0.9rem, 2vw, 1.5rem);
    line-height: 1.05;
}

#navbar > .pointer-events-auto.py-3 > div span {
    font-size: clamp(0.55rem, 0.95vw, 0.75rem);
}

.hero-watermark {
    left: clamp(0.2rem, -0.6vw, 1rem);
    font-size: clamp(10rem, calc(var(--hero-glass-size) * 1.32), 28rem);
}

.hero-content {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: var(--hero-gap);
    align-content: stretch;
}

.hero-stage {
    min-height: 0;
    position: relative;
    z-index: auto;
}

.hero-topline {
    margin-bottom: calc(var(--hero-overlap-top) * -1);
    z-index: 38;
}

.hero-meta {
    margin: 0;
    position: relative;
    top: calc(var(--hero-overlap-bottom) * -1.4);
    z-index: 30;
    align-items: flex-end;
    column-gap: clamp(0.75rem, 2vw, 2.5rem);
    pointer-events: none;
}

.hero-meta-copy {
    max-width: min(32ch, 42%);
    row-gap: clamp(0.35rem, 0.9vh, 0.85rem);
    pointer-events: auto;
}

.hero-meta-kicker {
    font-size: var(--hero-micro-size);
    margin-bottom: 0;
}

.hero-meta-description {
    font-size: clamp(0.6rem, 1vw, 0.8rem);
    line-height: 1.45;
    margin-bottom: 0;
}

#inquiry-btn {
    font-size: clamp(0.6rem, 0.78vw, 0.75rem);
    padding: clamp(0.5rem, 1vh, 0.75rem) clamp(1rem, 2.4vw, 2.5rem);
    letter-spacing: clamp(0.18em, 0.36vw, 0.4em);
}

.hero-title {
    font-size: var(--hero-title-size);
    line-height: 0.84;
    letter-spacing: -0.05em;
    margin: 0;
}

.hero-title-top {
    max-width: min(100%, 15ch);
}

.hero-title-bottom {
    text-align: right;
    z-index: 34;
    pointer-events: none;
}

.hero-since {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: clamp(0.45rem, 1.3vh, 1.8rem) !important;
}

.hero-since-title {
    font-size: clamp(1.4rem, 4.5vh, 3rem);
    line-height: 0.88;
    margin: 0;
}

.hero-since-subtitle {
    font-size: clamp(0.46rem, 0.72vw, 0.58rem);
    margin-top: clamp(0.2rem, 0.8vh, 0.5rem);
}

.hero-glass {
    width: calc(var(--hero-glass-size) * var(--hero-size-multiplier) * 0.9);
    height: auto;
    z-index: 20;
    aspect-ratio: 1 / 1;
    perspective: 1400px;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 28px 80px rgba(0,0,0,0.08);
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
}

@media (min-width: 1025px), (min-width: 769px) and (orientation: landscape) {
    .hero-glass {
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
}

.hero-box-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    padding: clamp(0.85rem, 3.1vh, 4.4rem);
}

#ground-shadow {
    width: clamp(7.5rem, 22vh, 15rem);
    height: clamp(1.7rem, 6vh, 5rem);
    bottom: clamp(-3.7rem, -8vh, -1.8rem);
    opacity: 0.3;
}

.hero-stage-cta {
    bottom: clamp(-3rem, -3.6vh, -2rem);
    left: clamp(-2.2rem, -1.9vw, -2rem);
    z-index: 40;
}

@media (max-width: 768px), (orientation: portrait) and (max-width: 1024px) {
    #hero {
        --hero-overlap-top: clamp(0.45rem, 1.6vh, 1.2rem);
        --hero-overlap-bottom: clamp(0.5rem, 1.8vh, 1.3rem);
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        row-gap: clamp(0.3rem, 1vh, 0.75rem);
    }

    .hero-title-bottom {
        text-align: left;
    }

    .hero-meta-copy {
        max-width: min(46ch, 100%);
    }
}

@media (max-width: 640px) {
    #hero {
        --hero-pad-x: var(--hero-align-x, clamp(0.9rem, 3.4vw, 4.5rem));
        --hero-title-size: clamp(1.55rem, 10.2vw, 2.9rem);
        --hero-overlap-top: clamp(0.4rem, 1.2vh, 0.95rem);
        --hero-overlap-bottom: clamp(0.45rem, 1.4vh, 1.05rem);
    }

    .hero-watermark {
        opacity: 0.16;
    }

    .hero-since {
        padding-top: clamp(0.35rem, 1vh, 0.8rem) !important;
    }
}

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: transform 0.6s ease, opacity 0.6s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* The New "Industrial Orange" Circular Button */
.btn-action {
    width: clamp(3rem, 10vh, 5.625rem);
    height: clamp(3rem, 10vh, 5.625rem);
    background-color: #f64900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.3s ease,
                border 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-action svg {
    width: clamp(1.2rem, 4.5vh, 2.5rem);
    height: clamp(1.2rem, 4.5vh, 2.5rem);
}

.btn-action::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255,87,51,0.4);
    animation: pulseScale 2s infinite;
}

.btn-action:hover {
    transform: scale(1.1) rotate(90deg);
    border: #f64900 4px solid;
    background-color: #ffffff;
}

.btn-action:hover::after{
    transform: scale(1.1);
    animation: none !important;
    box-shadow: none !important;
}

@keyframes pulseScale {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Gallery Drawer */
.gallery-card .drawer {
    transform: translateX(-100%);
    background-color: #f64900;
    overflow: hidden;                    /* NO scroll - content must fit */
    padding: clamp(1rem, 2vw, 2.5rem);
    justify-content: flex-end;
    display: flex;
    flex-direction: column;
}

.gallery-card .drawer .drawer-title {
    font-size: clamp(1.4rem, 2.2vw, 3.2rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.gallery-card .drawer ul li {
    padding: clamp(0.2rem, 0.3vw, 0.4rem) clamp(0.4rem, 0.7vw, 0.9rem);
    font-size: clamp(0.45rem, 0.58vw, 0.65rem);
    border-radius: 999px;
}

.gallery-card .drawer p {
    font-size: clamp(0.58rem, 0.75vw, 0.9rem);
    line-height: 1.45;
    transition: opacity 0.25s ease, transform 0.35s ease;
    opacity: 0.96;
    transform: translateY(6px);
}

.gallery-card .drawer hr {
    margin: clamp(0.3rem, 0.8vw, 1rem) 0;
}

.gallery-card .drawer .mono {
    font-size: clamp(0.5rem, 0.55vw, 0.65rem);
    margin-bottom: clamp(0.3rem, 0.5vw, 0.75rem);
}

.gallery-card {
    height: clamp(520px, 38vw, 720px);  /* consistent across all screen sizes */
    overflow: hidden;                    /* NO scroll - content must fit */
}

.gallery-card {
    aspect-ratio: unset;
}

.gallery-card-title {
    font-size: clamp(1.4rem, 1.9vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.02em;
}

.gallery-card:hover .drawer { 
    transform: translateX(0); 
}

.gallery-card:hover .drawer p {
    opacity: 1;
    transform: translateY(0);
}

.calligraphy-text {
    font-family: 'Great Vibes', cursive;
}


#gallery-card-rigid-box{
    background-image: url('../resources/rigidbox.webp');
}

#gallery-card-mono-box{
    background-image: url('../resources/mono-carton.webp');
}

#gallery-card-paperboard{
    background-image: url('../resources/paperboard-bags.webp');
}

#box-3d {
    --box-size: calc(var(--hero-box-size) * var(--hero-size-multiplier));
    --box-shell-scale: 0.9;
    width: calc(var(--box-size) * var(--box-shell-scale));
    height: calc(var(--box-size) * var(--box-shell-scale));
    --face-depth: calc((var(--box-size) / 2) * var(--box-shell-scale));
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    will-change: transform;
}

#box-3d > div {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.cube-face{
    position: absolute;
    inset: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    outline: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
    transition: filter 0.2s ease;
}

#box-tape {
    top: clamp(0.45rem, calc(var(--box-size) * 0.08), 1.1rem);
    left: clamp(0.55rem, calc(var(--box-size) * 0.12), 1.5rem);
    gap: clamp(0.12rem, calc(var(--box-size) * 0.012), 0.3rem);
    z-index: 20;
    pointer-events: none;
}

#box-tape .tape-strip {
    width: clamp(0.18rem, calc(var(--box-size) * 0.026), 0.46rem);
    height: clamp(1rem, calc(var(--box-size) * 0.18), 1.1rem);
}


#eye-row {
    position: relative;
    justify-content: center;
    gap: clamp(1.1rem, 5.5vh, 2.85rem);
    margin-top: clamp(1.35rem, calc(var(--box-size) * 0.26), 3rem);
    margin-bottom: clamp(0.45rem, calc(var(--box-size) * 0.08), 1.2rem);
    z-index: 10;
}

#eye-row .eye {
    width: clamp(1.48rem, calc(var(--box-size) * 0.19), 2.62rem);
    height: clamp(1.48rem, calc(var(--box-size) * 0.19), 2.62rem);
}


#mouth-wrapper {
    width: clamp(3rem, calc(var(--box-size) * 0.41), 5.1rem);
    height: clamp(1.72rem, calc(var(--box-size) * 0.21), 2.75rem);
}

.hero-box-label {
    margin-top: clamp(0.45rem, 1.2vh, 1.2rem);
    font-size: clamp(0.56rem, 1.9vh, 1.15rem);
    letter-spacing: clamp(0.24em, 0.33vw, 0.4em);
}

.hero-box-subtitle {
    font-size: clamp(0.38rem, 1.2vh, 0.68rem);
    letter-spacing: clamp(0.18em, 0.28vw, 0.28em);
}

@keyframes moveBox {
    0% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}


.pupil {
  width: clamp(0.62rem, calc(var(--box-size) * 0.08), 1.1rem);
  height: clamp(0.62rem, calc(var(--box-size) * 0.08), 1.1rem);
  top: clamp(0.18rem, calc(var(--box-size) * 0.025), 0.4rem);
  left: clamp(0.18rem, calc(var(--box-size) * 0.025), 0.4rem);
  transition: transform 0.08s linear;
}

@media (max-height: 820px) {
    #hero {
        --hero-pad-x: var(--hero-align-x, clamp(0.9rem, 3.4vw, 4.5rem));
        --hero-pad-y: clamp(0.35rem, 1vh, 0.85rem);
        --hero-gap: clamp(0.3rem, 1vh, 0.8rem);
        --hero-overlap-top: clamp(0.65rem, 2.4vh, 2.1rem);
        --hero-overlap-bottom: clamp(0.8rem, 2.8vh, 2.5rem);
        --hero-glass-size: clamp(190px, 33vh, 380px);
        /* --hero-box-size: clamp(96px, 16vh, 190px); */
    }

    #navbar .logo {
        height: clamp(2.4rem, 7.5vh, 4.1rem);
    }

    .hero-meta-copy {
        max-width: min(34ch, 48%);
    }
}

@media (max-height: 700px) {
    #hero {
        --hero-pad-x: var(--hero-align-x, clamp(0.9rem, 3.4vw, 4.5rem));
        --hero-pad-y: clamp(0.25rem, 0.8vh, 0.6rem);
        --hero-gap: clamp(0.25rem, 0.8vh, 0.55rem);
        --hero-overlap-top: clamp(0.5rem, 1.8vh, 1.5rem);
        --hero-overlap-bottom: clamp(0.6rem, 2vh, 1.8rem);
        --hero-glass-size: clamp(168px, 31vh, 300px);
        --hero-box-size: clamp(88px, 15vh, 150px);
    }

    .hero-watermark {
        opacity: 0.35;
    }

    .hero-meta-copy {
        max-width: min(36ch, 52%);
    }

    #inquiry-btn {
        padding: clamp(0.42rem, 0.75vh, 0.62rem) clamp(0.8rem, 1.9vw, 1.7rem);
        letter-spacing: clamp(0.14em, 0.28vw, 0.28em);
    }

    .hero-since {
        padding-top: clamp(0.3rem, 0.7vh, 0.6rem) !important;
    }
}

@media (max-height: 620px) {
    #hero {
        --hero-pad-x: var(--hero-align-x, clamp(0.9rem, 3.4vw, 4.5rem));
        --hero-pad-y: clamp(0.2rem, 0.6vh, 0.45rem);
        --hero-gap: clamp(0.18rem, 0.6vh, 0.42rem);
        --hero-overlap-top: clamp(0.3rem, 1vh, 0.9rem);
        --hero-overlap-bottom: clamp(0.35rem, 1.2vh, 1rem);
        --hero-glass-size: clamp(144px, 29vh, 230px);
        --hero-box-size: clamp(74px, 13.5vh, 120px);
    }

    .hero-nav {
        margin-top: 0;
        padding-block: clamp(0.16rem, 0.5vh, 0.3rem);
        min-height: clamp(54px, 8.5vh, 72px);
    }

    #navbar .logo {
        height: clamp(1.9rem, 6vh, 2.8rem);
    }

    #navbar > .pointer-events-auto.py-3 > div {
        font-size: clamp(0.68rem, 1.6vw, 1rem);
    }

    .hero-watermark {
        opacity: 0.12;
    }

    .hero-meta-copy {
        max-width: min(40ch, 60%);
    }

    .hero-meta-description {
        line-height: 1.3;
    }

}

@media (max-height: 620px) and (orientation: landscape) {
    #hero {
        --hero-pad-x: var(--hero-align-x, clamp(0.9rem, 3.4vw, 4.5rem));
        --hero-overlap-top: clamp(0.2rem, 0.6vh, 0.55rem);
        --hero-overlap-bottom: clamp(0.2rem, 0.7vh, 0.6rem);
        --hero-glass-size: clamp(134px, 45vh, 190px);
    }

    .hero-nav {
        min-height: clamp(42px, 7vh, 54px);
        padding-block: clamp(0.1rem, 0.35vh, 0.2rem);
    }

    #navbar .logo {
        height: clamp(1.6rem, 5vh, 2.2rem);
    }

    .hero-watermark {
        opacity: 0.08;
    }

    .hero-meta {
        column-gap: clamp(0.4rem, 1vw, 1rem);
    }

    .hero-stage-cta {
        bottom: clamp(-0.2rem, -0.4vh, -0.65rem);
        left: clamp(-0.3rem, -1vw, -0.9rem);
        z-index: 999;
    }

    #inquiry-btn {
        padding: clamp(0.32rem, 0.5vh, 0.45rem) clamp(0.72rem, 1.4vw, 1.2rem);
    }
}


/* Hide orange overlay by default */
.product-card{
    height: 10vh;
    /* width: 10vh; */
}
.product-card .product-content {
    opacity: 0;
    transform: translateY(100%); /* Slides completely out of view */
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card > div:first-child{
    width: 10vh;
    height: 10vh;
}

/* Show orange overlay only when card is active */
.product-card.active .product-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#why-choose-us .why-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(2.25rem, 4.5vw, 6rem);
}

#why-choose-us .why-left {
    width: 62%;
}

#why-choose-us .why-right {
    width: 38%;
    display: flex;
    justify-content: flex-end;
    align-self: center;
    transform: translateY(clamp(10px, 1vw, 20px));
}

#why-choose-us .why-stats {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: clamp(1.75rem, 2.8vw, 3.75rem);
}

#why-choose-us .why-title {
    font-size: clamp(2.2rem, 3.6vw, 4.9rem);
    line-height: 0.9;
}

#why-choose-us .why-copy {
    font-size: clamp(1rem, 1.15vw, 1.35rem);
    line-height: 1.45;
}

#why-choose-us .why-stat-num {
    font-size: clamp(2.8rem, 3.8vw, 5.2rem);
    line-height: 0.95;
}

#why-choose-us .why-stat-shadow {
    font-size: clamp(2.8rem, 3.8vw, 5.2rem);
    line-height: 0.95;
}

#why-choose-us .why-stat-label {
    font-size: clamp(0.58rem, 0.5vw, 0.72rem);
}

#why-choose-us .why-card-eyebrow {
    font-size: clamp(0.62rem, 0.52vw, 0.78rem);
    line-height: 1.3;
    margin: 0 0 clamp(0.45rem, 0.6vw, 0.75rem) 0;
}

#why-choose-us .why-card-title {
    font-size: clamp(1.45rem, 1.5vw, 2.4rem);
    line-height: 1.08;
    margin: 0 0 clamp(0.7rem, 0.95vw, 1.1rem) 0;
}

#why-choose-us .why-card-copy {
    font-size: clamp(0.92rem, 0.9vw, 1.12rem);
    line-height: 1.5;
    margin: 0;
}

#why-choose-us .why-cards-grid > div {
    padding: clamp(1.25rem, 1.5vw, 1.85rem);
    display: flex;
    flex-direction: column;
}

#why-choose-us .why-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1025px), (min-width: 769px) and (orientation: landscape) {
    #why-choose-us .why-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1400px) {
    #why-choose-us .why-cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* =========================================
   LOCATION SECTION BASE
========================================= */

#location {
    position: relative;
    overflow: hidden;
}


/* =========================================
   3D SCENE WRAPPER
========================================= */

.map-scene {
    perspective: 1600px;
    width: 100%;
    height: 420px;   /* smaller frame */
    overflow: hidden;   /* THIS creates cinematic crop */
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate(-15%, -10%);
}

.map-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(to right,
            #0c0f14 0%,
            transparent 20%,
            transparent 80%,
            #0c0f14 100%
        ),
        linear-gradient(to bottom,
            #0c0f14 0%,
            transparent 15%,
            transparent 85%,
            #0c0f14 100%
        );
}



/* =========================================
   ROTATING MAP SLAB
========================================= */

.map-3d {
    width: 130%;
    aspect-ratio: 5 / 3;
    min-height: 250px;

    will-change: transform;
    backface-visibility: hidden;

    position: absolute;
    left: 50%;
    top: 50%;

    transform-style: preserve-3d;
    transform:
        translate(-50%, -50%)
        rotateX(60deg)
        scale(1.4);

    animation: rotateMap 30s linear infinite;

    filter: none;
}

/* SVG fills slab */

.map-3d svg {
    width: 100%;
    height: 100%;
    display: block;
    /* filter: drop-shadow(0 0 30px rgba(255,255,255,0.05)); */
}


/* Fake thickness under slab */

.map-3d::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.02);
    transform: translateZ(-25px);
    filter: blur(25px);
}


.map-3d::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: 0 80px 100px rgba(0,0,0,0.6);
    pointer-events: none;
}


/* =========================================
   MAP ROTATION
========================================= */

@keyframes rotateMap {
    from {
        transform:
            translate(-50%, -50%)
            rotateX(60deg)
            rotateZ(0deg);
    }
    to {
        transform:
            translate(-50%, -50%)
            rotateX(60deg)
            rotateZ(360deg);
    }
}

@media (max-width: 768px), (orientation: portrait) and (max-width: 1024px) {
    #hero .map-scene{
        display: none;
    }

    .map-3d {
        animation: none;
        transform: translate(-50%, -50%) rotateX(60deg) rotateZ(20deg);
    }
}

/* =========================================
   3D LOCATION PIN (HTML ELEMENT)
   MUST BE OUTSIDE .map-3d
========================================= */

.map-pin {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 20px;
    height: 20px;
    background: #f64900;
    border-radius: 50%;

    box-shadow:
        0 0 25px rgba(255,87,51,0.7),
        0 0 60px rgba(255,87,51,0.3);

    transform: translate(-50%, -50%) translateZ(0);
    transform-style: preserve-3d;

    animation: popPin 0.6s ease-out forwards;
    animation-delay: 4s;

    cursor: pointer;
}


/* =========================================
   PIN POP OUT ANIMATION
========================================= */

@keyframes popPin {
    0% {
        transform:
            translate(-50%, -50%)
            translateZ(0)
            scale(0.6);
        opacity: 0;
    }

    60% {
        transform:
            translate(-50%, -50%)
            translateZ(140px)
            scale(1.1);
        opacity: 1;
    }

    100% {
        transform:
            translate(-50%, -50%)
            translateZ(100px)
            scale(1);
    }
}



#cursor-cube {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    perspective: 400px;
    pointer-events: none; /* Allows you to click "Partner With Us" through the cube */
    z-index: 9999; /* Higher than your navbar and glass-panels */
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px), (orientation: portrait) and (max-width: 1024px) {
    #cursor-cube {
        display: none !important;
    }
}

@media (pointer: coarse), (hover: none), (min-width: 769px) and (max-width: 1366px) and (orientation: landscape) {
    #cursor-cube {
        display: none !important;
    }
}

.cube-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 4s infinite linear;
}

.c-face {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(246, 73, 0, 0.2); /* Your Orange */
    border: 1px solid rgba(246, 73, 0, 0.8);
}

/* Position faces to form a cube */
.front  { transform: translateZ(10px); }
.back   { transform: rotateY(180deg) translateZ(10px); }
.right  { transform: rotateY(90deg) translateZ(10px); }
.left   { transform: rotateY(-90deg) translateZ(10px); }
.top    { transform: rotateX(90deg) translateZ(10px); }
.bottom { transform: rotateX(-90deg) translateZ(10px); }

@keyframes rotateCube {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}




.partners {
    max-width: 1400px;
    margin: auto;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.logo-cell {
    height: 100%;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: white;
}

.logo-cell svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}


@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.animate-logo-scroll {
  animation: logo-scroll 40s linear infinite;
}

/* Box size + depth - fluid across all widths */
/* 1 - Backdrop blur requires -webkit- prefix in Safari */
/* 2 - 3D transform context needs -webkit- prefix in Safari */
/* 3 - scrollbar-width not supported in Safari, wrap in @supports */
#carousel-track {
    scrollbar-width: auto;
    scrollbar-color: #f64900 #000000;
}

/* 4 - flex gap fallback for Safari 14.0 and below */
@supports not (gap: 1rem) {
    .nav-menu-items > * + * { margin-left: 2rem; }
    
    #why-choose-us .why-stats > * + * { margin-left: 3rem; }
}

/* 5 - smooth scroll for Safari versions that don't support scroll-behavior */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 6 - prevent text size adjustment on orientation change (Safari iOS) */
body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 7 - animation prefix for Safari */
@-webkit-keyframes pulseScale {
    0% { -webkit-transform: scale(1); opacity: 0.6; }
    100% { -webkit-transform: scale(1.4); opacity: 0; }
}

@-webkit-keyframes rotateCube {
    from { -webkit-transform: rotateX(0deg) rotateY(0deg); }
    to { -webkit-transform: rotateX(360deg) rotateY(360deg); }
}

@-webkit-keyframes rotateMap {
    from { -webkit-transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg); }
    to { -webkit-transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg); }
}

/* 8 - fix transition on gallery drawer for Safari */
.gallery-card .drawer {
    -webkit-transition: -webkit-transform 0.5s ease;
    transition: transform 0.5s ease;
}

/* HERO MOBILE REFINEMENT */
@media (max-width: 768px), (orientation: portrait) and (max-width: 1024px) {
    #hero {
        --hero-size-multiplier: 1.08;
        --hero-pad-x: var(--hero-align-x, clamp(0.9rem, 3.4vw, 4.5rem));
        --hero-pad-y: clamp(0.45rem, 1.1vh, 0.75rem);
        --hero-gap: clamp(0.04rem, 0.35vh, 0.2rem);
        --hero-glass-size: clamp(205px, 44vh, 290px);
        --hero-box-size: clamp(92px, 21vh, 132px);
        --hero-title-size: clamp(1.7rem, 9.5vw, 3rem);
        --hero-overlap-top: 0rem;
        --hero-overlap-bottom: 0rem;
        min-height: 100svh;
        height: auto;
    }

    @supports (height: 100dvh) {
        #hero {
            min-height: 100dvh;
        }
    }

    .hero-nav {
        margin-top: 0;
        min-height: 56px;
        padding-block: 0.25rem;
    }

    #navbar .logo {
        height: clamp(2rem, 5.2vh, 2.8rem);
    }

    #navbar > .pointer-events-auto.py-3 {
        padding-block: 0.2rem;
    }

    #navbar > .pointer-events-auto.py-3 > div {
        font-size: clamp(0.8rem, 3.2vw, 1rem);
    }

    #navbar > .pointer-events-auto.py-3 > div span {
        font-size: clamp(0.44rem, 1.8vw, 0.56rem);
    }

    .hero-content {
        grid-template-rows: auto auto auto auto;
        gap: clamp(0.45rem, 1.2vh, 0.9rem);
    }

    .hero-topline,
    .hero-meta {
        margin: 0;
    }

    .hero-title-top {
        max-width: 100%;
        text-align: center;
    }

    .hero-stage {
        padding-block: 0;
        margin-top: -0.9rem;
    }

    .hero-glass {
        width: min(100%, calc(var(--hero-glass-size) * var(--hero-size-multiplier)));
        border-radius: 0.9rem;
    }

    .hero-box-wrap {
        padding: clamp(0.6rem, 2vh, 1.2rem);
    }

    #box-3d {
        max-width: 100%;
    }

    #eye-row {
        gap: clamp(0.8rem, 3.8vh, 1.6rem);
    }

    .hero-box-label {
        margin-top: clamp(0.3rem, 0.8vh, 0.65rem);
        font-size: clamp(0.48rem, 1.45vh, 0.78rem);
        letter-spacing: clamp(0.12em, 0.22vw, 0.18em);
        line-height: 1.12;
        max-width: 92%;
        overflow-wrap: anywhere;
    }

    .hero-box-subtitle {
        font-size: clamp(0.34rem, 0.95vh, 0.52rem);
        letter-spacing: clamp(0.08em, 0.18vw, 0.12em);
    }

    .hero-stage-cta {
        left: 50%;
        right: auto;
        bottom: clamp(-1.45rem, -4.8vw, -0.9rem);
        transform: translateX(-50%);
    }

    .hero-stage-cta .btn-action {
        width: clamp(3.4rem, 14vw, 4.2rem);
        height: clamp(3.4rem, 14vw, 4.2rem);
    }

    .hero-stage-cta .btn-action svg {
        width: clamp(1.15rem, 4.2vw, 1.5rem);
        height: clamp(1.15rem, 4.2vw, 1.5rem);
    }

    .hero-meta {
        align-items: center;
        row-gap: 0.35rem;
        text-align: center;
        margin-top: 0.25rem;
    }

    .hero-meta-copy {
        max-width: 100%;
        align-items: center;
        text-align: center;
        order: 2;
    }

    .hero-meta-description {
        max-width: 34ch;
        text-align: center;
    }

    #inquiry-btn {
        font-size: 0.64rem;
        letter-spacing: 0.22em;
        padding: 0.58rem 1.05rem;
    }

    .hero-title-bottom {
        text-align: center;
        order: 1;
        margin-top: 0.15rem;
        margin-bottom: 0.2rem;
    }

    .hero-since {
        padding-top: 0.5rem !important;
        justify-content: center;
        text-align: center;
    }

    .hero-since-subtitle {
        letter-spacing: 0.22em;
        font-size: 0.46rem;
    }
}

@media (max-width: 480px) {
    .hero-watermark {
        display: none;
    }

    .hero-stage-cta {
        bottom: -1.1rem;
    }

    #inquiry-btn {
        width: 100%;
        text-align: center;
        letter-spacing: 0.18em;
    }

    .hero-title {
        line-height: 0.9;
        letter-spacing: -0.04em;
    }

    .hero-box-label {
        font-size: clamp(0.44rem, 1.2vh, 0.64rem);
        letter-spacing: clamp(0.08em, 0.15vw, 0.12em);
        max-width: 90%;
    }

    .hero-box-subtitle {
        font-size: clamp(0.3rem, 0.8vh, 0.44rem);
        letter-spacing: 0.08em;
    }
}


