/*
 * Vedinterior – 3D hover + scroll effects (v2, tuned to index.php)
 * Load AFTER your main style.css (put it in stylesheet.php), with artima-3d.js
 * Everything is switched on by JS (html.js-3d), so the page still works without it.
 */

:root {
    --a3d-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --a3d-shadow: rgba(44, 41, 38, 0.3);
    --a3d-brand: #906e50;
}

@media (max-width: 991.98px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .header__area.header-3 {
        position: relative;
        z-index: 50;
        width: 100%;
        max-width: 100%;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .header__area.header-3 .container {
        max-width: 100%;
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
    }

    .header__main {
        display: flex;
        min-height: 64px;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 8px 0 !important;
        overflow: visible;
        width: 100%;
    }

    .header__logo,
    .header__logo a,
    .header__logo .logo {
        display: flex;
        min-width: 0;
        align-items: center;
    }

    .header-3 .header__logo img,
    .header__logo img {
        display: block;
        width: 150px !important;
        max-width: 42vw !important;
        height: auto !important;
    }

    .header__right,
    .header__action {
        flex: 0 0 auto;
    }

    .header__hamburger {
        margin-left: 0 !important;
    }

    .header__hamburger .bar-icon {
        display: inline-flex;
        width: 38px;
        height: 38px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }
}

@media (max-width: 575.98px) {
    .header__area.header-3 {
        min-height: 58px;
    }

    .header-3 .header__logo img,
    .header__logo img {
        width: 136px !important;
        max-width: 48vw !important;
    }

    .header__main {
        min-height: 58px;
    }
}

/* ============================================================
   0. SCROLL PROGRESS BAR (top of page)
   ============================================================ */
.a3d-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10001;
    width: 100%;
    height: 3px;
    pointer-events: none;
    transform-origin: 0 50%;
    transform: scaleX(var(--p, 0));
    background: linear-gradient(90deg, #906e50, #e0bf9c);
}

/* ============================================================
   1. HERO – layered depth + strong 3D + continuous animation
      background drifts against the mouse, text block tilts,
      card follows cursor in 3D, layers float, shine sweeps
   ============================================================ */
.banner-3 .hero-gallery-background {
    transform: translate3d(calc(var(--hx, 0) * -18px), calc(var(--hero-y, 0px) + var(--hy, 0) * -12px), 0) scale(1.1);
    transition: transform 0.4s ease-out;
    will-change: transform;
}

.banner-3 .hero-gallery-background img,
.banner-3 .hero-gallery-background video {
    filter: saturate(1.08) contrast(1.06);
}

.banner-3__content {
    transform: perspective(1000px) rotateY(calc(var(--hx, 0) * 3deg)) rotateX(calc(var(--hy, 0) * -2deg))
        translate3d(0, calc(var(--hero-p, 0) * -50px), 0);
    opacity: calc(1 - var(--hero-p, 0) * 0.9);
    transition: transform 0.35s ease-out;
    will-change: transform, opacity;
}

/* Hero heading entrance + subtle float (desktop only applies transform via media) */
.hero-heading {
    animation: hero-heading-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    transition: transform 0.35s ease-out;
    will-change: transform;
}

@media (min-width: 1200px) {
    .hero-heading {
        transform: perspective(900px) rotateY(calc(var(--hx, 0) * 4deg)) rotateX(calc(var(--hy, 0) * -2.5deg))
            translate3d(calc(var(--hx, 0) * 8px), calc(var(--hy, 0) * 4px - 58%), 0);
    }
}

@keyframes hero-heading-in {
    0% {
        opacity: 0;
        transform: perspective(900px) translate3d(-40px, 30px, -80px) rotateY(-12deg);
    }
    100% {
        opacity: 1;
        transform: perspective(900px) translate3d(0, 0, 0) rotateY(0);
    }
}

.hero-heading .subtitle {
    display: inline-block;
    animation: hero-subtitle-pulse 3.5s ease-in-out infinite;
}

@keyframes hero-subtitle-pulse {
    0%, 100% { opacity: 0.85; letter-spacing: 0.04em; }
    50% { opacity: 1; letter-spacing: 0.08em; }
}

/* Hero image card – mouse-driven 3D tilt + float */
.hero-image-box {
    perspective: 1400px;
    animation: hero-box-enter 1.2s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes hero-box-enter {
    0% {
        opacity: 0;
        transform: perspective(1400px) translate3d(60px, 40px, -120px) rotateY(18deg) rotateX(8deg) scale(0.88);
    }
    100% {
        opacity: 1;
        transform: perspective(1400px) translate3d(0, 0, 0) rotateY(0) rotateX(0) scale(1);
    }
}

.hero-image-box__card {
    transform-style: preserve-3d;
    transform:
        translateY(0)
        rotateY(calc(-10deg + var(--card-ry, 0deg)))
        rotateX(calc(5deg + var(--card-rx, 0deg)))
        scale(0.98);
    transition: transform 0.15s linear;
    will-change: transform;
    animation: hero-card-float 5.5s ease-in-out infinite;
}

@keyframes hero-card-float {
    0%, 100% {
        transform:
            translateY(0)
            rotateY(calc(-10deg + var(--card-ry, 0deg)))
            rotateX(calc(5deg + var(--card-rx, 0deg)))
            scale(0.98);
    }
    50% {
        transform:
            translateY(-14px)
            rotateY(calc(-10deg + var(--card-ry, 0deg)))
            rotateX(calc(5deg + var(--card-rx, 0deg)))
            scale(0.98);
    }
}

/* Floating depth layers */
.hero-image-box__layer--one {
    animation: hero-layer-1 6s ease-in-out infinite;
    transform: translate3d(22px, 20px, -50px) rotateZ(3deg);
}

.hero-image-box__layer--two {
    animation: hero-layer-2 7.5s ease-in-out infinite;
    transform: translate3d(-18px, 34px, -90px) rotateZ(-4deg);
    opacity: 0.58;
}

@keyframes hero-layer-1 {
    0%, 100% { transform: translate3d(22px, 20px, -50px) rotateZ(3deg); }
    50% { transform: translate3d(28px, 12px, -40px) rotateZ(5deg); }
}

@keyframes hero-layer-2 {
    0%, 100% { transform: translate3d(-18px, 34px, -90px) rotateZ(-4deg); }
    50% { transform: translate3d(-26px, 28px, -100px) rotateZ(-6deg); }
}

/* Shine sweep across the frame */
.hero-image-box__frame {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.hero-image-box__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.18) 45%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0.18) 55%,
        transparent 70%
    );
    background-size: 220% 100%;
    animation: hero-shine 4.5s ease-in-out infinite;
    opacity: 0.85;
    mix-blend-mode: soft-light;
}

@keyframes hero-shine {
    0% { background-position: 120% 0; }
    40%, 100% { background-position: -120% 0; }
}

.hero-image-box.is-sliding-out {
    animation: hero-card-slide-out-left 0.3s ease-in both;
    pointer-events: none;
}

.hero-image-box.is-sliding-in {
    animation: hero-card-slide-in-right 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-image-box__frame {
    touch-action: pan-y;
}

.hero-image-box__frame #hero-box-image {
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.hero-image-box__frame #hero-box-image:active {
    cursor: grabbing;
}

@keyframes hero-card-slide-out-left {
    to {
        opacity: 0;
        transform: translate3d(-72px, 0, 0);
    }
}

@keyframes hero-card-slide-in-right {
    from {
        opacity: 0;
        transform: translate3d(72px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Caption lifts in 3D space */
.hero-image-box__caption {
    transform: translateZ(80px);
    transition: transform 0.35s ease, background-color 0.35s ease;
}

.hero-image-box:hover .hero-image-box__caption,
.hero-image-box.is-tilting .hero-image-box__caption {
    transform: translateZ(110px) translateY(-6px);
}

/* Stronger hover / tilt state */
.hero-image-box.is-tilting .hero-image-box__card,
.hero-image-box:hover .hero-image-box__card {
    animation-play-state: paused;
}

.hero-image-box.is-tilting .hero-image-box__frame {
    box-shadow:
        0 42px 110px rgba(0, 0, 0, 0.5),
        0 0 0 10px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Soft ambient glow behind card */
.hero-image-box::before {
    content: "";
    position: absolute;
    inset: 8% 5% auto;
    height: 70%;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(144, 110, 80, 0.35), transparent 70%);
    filter: blur(28px);
    pointer-events: none;
    animation: hero-glow-pulse 4s ease-in-out infinite;
}

@keyframes hero-glow-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.08); }
}

/* ============================================================
   2. SCROLL REVEAL – one system, several "entrances"
      variants are set with data-reveal-3d="up|title|text|flip|pop|right"
   ============================================================ */
.js-3d [data-reveal-3d] {
    --a-x: 0px;
    --a-y: 60px;
    --a-z: -140px;
    --a-rx: 16deg;
    --a-ry: 0deg;
    --a-s: 1;
    opacity: 0;
    transform: perspective(1200px) translate3d(var(--a-x), var(--a-y), var(--a-z)) rotateX(var(--a-rx)) rotateY(var(--a-ry))
        scale(var(--a-s));
    transform-origin: 50% 100%;
    transition: opacity 0.8s ease, transform 1s var(--a3d-ease);
    transition-delay: var(--d, 0ms);
    will-change: transform, opacity;
}

/* section headings slide in from the left */
.js-3d [data-reveal-3d='title'] {
    --a-x: -40px;
    --a-y: 30px;
    --a-z: -80px;
    --a-rx: 0deg;
    --a-ry: -10deg;
    transform-origin: 0 50%;
}

/* long paragraphs lift one after another */
.js-3d [data-reveal-3d='text'] {
    --a-y: 28px;
    --a-z: -40px;
    --a-rx: 8deg;
}

/* process steps flip in like cards being dealt */
.js-3d [data-reveal-3d='flip'] {
    --a-y: 30px;
    --a-z: -60px;
    --a-rx: 0deg;
    --a-ry: -75deg;
    transform-origin: 50% 50%;
}

/* stats pop forward out of the dark band */
.js-3d [data-reveal-3d='pop'] {
    --a-y: 20px;
    --a-z: -220px;
    --a-rx: -28deg;
    --a-s: 0.8;
    transform-origin: 50% 0;
}

/* FAQ rows swing in from the right edge */
.js-3d [data-reveal-3d='right'] {
    --a-x: 60px;
    --a-y: 20px;
    --a-z: -100px;
    --a-rx: 0deg;
    --a-ry: 14deg;
    transform-origin: 100% 50%;
}

.js-3d [data-reveal-3d].is-revealed {
    --a-x: 0px;
    --a-y: 0px;
    --a-z: 0px;
    --a-rx: 0deg;
    --a-ry: 0deg;
    --a-s: 1;
    opacity: 1;
}

/* ============================================================
   3. HOVER TILT – cards follow the cursor, with glare + inner parallax
   ============================================================ */
.tilt-3d {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px));
    transition: transform 0.6s var(--a3d-ease), filter 0.6s ease;
    will-change: transform;
}

.tilt-3d.is-tilting {
    --tz: 18px;
    transition: transform 0.12s linear, filter 0.3s ease;
    filter: drop-shadow(0 26px 28px var(--a3d-shadow));
    z-index: 3;
}

.tilt-glare {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 55%);
}

.tilt-3d.is-tilting > .tilt-glare {
    opacity: 1;
}

/* the photo inside a card drifts opposite to the tilt = real depth */
.tilt-3d.is-tilting :is(.our-featured-service__media, .blog-grid__media, .latest-article__media, .latest-project__media) img,
.explore-card.is-tilting > img {
    transform: scale(1.12) translate3d(calc((var(--px, 0.5) - 0.5) * -18px), calc((var(--py, 0.5) - 0.5) * -18px), 0);
}

/* sliders clip overflow – give tilted cards and shadows room to breathe */
.swiper:has(.tilt-3d) {
    padding: 24px 14px 46px;
    margin: -24px -14px -46px;
}

/* ============================================================
   4. SCROLL DEPTH – big images tilt back as they pass through view
   ============================================================ */
.scroll-3d {
    transform: perspective(1100px) rotateX(calc(var(--sp, 0) * 7deg)) scale(calc(1 - var(--ap, 0) * 0.04));
    transform-origin: 50% 50%;
    will-change: transform;
}

/* ============================================================
   5. PAGE-SPECIFIC HOVER DETAILS
   ============================================================ */

/* process steps: the round icon spins on its vertical axis */
.our-work-precess-2__icon {
    transition: transform 0.9s var(--a3d-ease), background-color 0.3s ease;
}

.our-work-precess-2__item:hover .our-work-precess-2__icon {
    transform: perspective(500px) rotateY(360deg);
}

/* stats: icon flips over on hover */
.experience__item-content-icon {
    transition: transform 0.7s var(--a3d-ease);
}

.experience__item-content:hover .experience__item-content-icon {
    transform: perspective(500px) translateY(-6px) rotateY(180deg);
}

/* FAQ rows lift; the open one glows in brand colour */
.rr__faq .accordion-item {
    transition: transform 0.4s var(--a3d-ease), box-shadow 0.4s ease, border-color 0.4s ease;
}

.rr__faq .accordion-item:hover {
    transform: perspective(900px) translateY(-3px) rotateX(2deg);
    box-shadow: 0 18px 36px rgba(144, 110, 80, 0.22);
}

.rr__faq .accordion-item:has(.collapse.show) {
    border-color: var(--a3d-brand);
    box-shadow: 0 20px 40px rgba(144, 110, 80, 0.25);
}

/* buttons: physical press */
.rr-btn,
.rr-btn__header {
    transform: translateZ(0);
    transition: transform 0.3s var(--a3d-ease), box-shadow 0.3s ease, background-color 0.3s ease;
}

.rr-btn:hover,
.rr-btn__header:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.12), 0 18px 28px rgba(44, 41, 38, 0.28);
}

.rr-btn:active,
.rr-btn__header:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12), 0 6px 12px rgba(44, 41, 38, 0.2);
}


/* ============================================================
   7. HERO – modern premium style (glass, typography, CTA)
   ============================================================ */

/* Darker cinematic overlay + soft mesh */
.banner-3 {
    background: #1a1714;
}

.banner-3::before {
    background:
        radial-gradient(ellipse 80% 60% at 15% 40%, rgba(144, 110, 80, 0.08), transparent 55%),
        linear-gradient(105deg, rgba(18, 15, 12, 0.18) 0%, rgba(18, 15, 12, 0.08) 52%, rgba(18, 15, 12, 0.02) 100%);
}

.banner-3.hero-video-clean::before,
.banner-3::before {
    opacity: 1;
}

/* Modern heading – base; responsive section overrides per breakpoint */
.hero-heading {
    z-index: 5;
}

.hero-heading .subtitle {
    margin-bottom: 18px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.hero-heading h1 {
    max-width: 640px;
    font-size: clamp(40px, 4.6vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #ffffff 0%, #f5e6d3 55%, #e0bf9c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
}

.hero-heading p {
    max-width: 560px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.55;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero-heading h1,
.hero-heading p {
    transform-origin: 0 50%;
    transform-style: preserve-3d;
}

.hero-heading h1.is-animating {
    animation: heroTextFlipIn 0.78s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-heading p.is-animating {
    animation: heroTextLiftIn 0.82s 0.08s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes heroTextFlipIn {
    0% {
        opacity: 0;
        transform: perspective(900px) translate3d(-28px, 18px, -90px) rotateY(-18deg) rotateX(8deg);
        filter: blur(6px) drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
    }
    100% {
        opacity: 1;
        transform: perspective(900px) translate3d(0, 0, 0) rotateY(0deg) rotateX(0deg);
        filter: blur(0) drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
    }
}

@keyframes heroTextLiftIn {
    0% {
        opacity: 0;
        transform: perspective(700px) translate3d(0, 18px, -50px) rotateX(14deg);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: perspective(700px) translate3d(0, 0, 0) rotateX(0deg);
        filter: blur(0);
    }
}

/* Modern CTA button in hero */
.banner-3 .rr-btn {
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(144, 110, 80, 0.35);
}

.banner-3 .rr-btn:hover {
    box-shadow: 0 12px 40px rgba(144, 110, 80, 0.45);
    transform: translateY(-3px);
}

.banner-3__btn-box__wrapper {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 16px 6px 8px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.banner-3__btn-box__wrapper:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.banner-3__btn-box__wrapper .icon {
    background: rgba(144, 110, 80, 0.25);
    border-radius: 50%;
}

/* Image card – modern glass frame */
.hero-image-box {
    width: min(100%, 380px);
    margin: 96px 48px 0 auto;
}

.hero-image-box__layer {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
}

.hero-image-box__frame {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero-image-box__frame::before {
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Glass caption – more modern */
.hero-image-box__caption {
    width: calc(100% - 24px);
    margin: 16px auto 0;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 10, 8, 0.55);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.hero-image-box__caption h3 {
    font-size: clamp(17px, 1.4vw, 22px);
    font-weight: 650;
    letter-spacing: -0.01em;
}

.hero-image-box__caption p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12.5px;
    line-height: 1.45;
}

/* Controls – pill style */
.hero-image-box__controls button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(20, 18, 16, 0.45);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.hero-image-box__controls button:hover,
.hero-image-box__controls button:focus-visible {
    transform: translateY(-3px) scale(1.05);
    background: #906e50;
    border-color: #906e50;
}

.hero-image-box__controls span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

/* Enquiry bar – modern strip */
.hero-enquiry-section {
    padding: 32px 0;
    background: linear-gradient(180deg, #f8f4ef 0%, #f0ebe4 100%);
    border-top: 1px solid rgba(144, 110, 80, 0.12);
}

.hero-enquiry-section__intro h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-enquiry__form input:not([type="hidden"]),
.hero-enquiry__form select {
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(44, 41, 38, 0.12);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-enquiry__form input:focus,
.hero-enquiry__form select:focus {
    outline: none;
    border-color: #906e50;
    box-shadow: 0 0 0 3px rgba(144, 110, 80, 0.18);
}

.hero-enquiry__form button {
    height: 48px;
    border-radius: 12px;
    font-weight: 650;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(144, 110, 80, 0.3);
}

.hero-enquiry__form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(144, 110, 80, 0.4);
}


/* ============================================================
   8. HERO RESPONSIVE – phone + tablet + desktop (fixes layout)
   ============================================================ */

/* ---------- DESKTOP (1200px+) ---------- */
@media (min-width: 1200px) {
    .banner-3.banner-3__space {
        min-height: min(680px, calc(100vh - 80px));
        height: min(680px, calc(100vh - 80px));
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    .hero-heading {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 620px;
        margin: 0;
        z-index: 5;
        pointer-events: auto;
        transform: none;
    }

    .hero-heading h1 {
        font-size: clamp(40px, 4.2vw, 68px);
        line-height: 1.06;
    }

    .hero-heading p {
        max-width: 540px;
    }

    .hero-image-box {
        width: min(100%, 380px);
        margin: 0 40px 0 auto;
    }

    .banner-3__content {
        transform: none !important;
        margin-top: 16px;
        padding-top: 0;
    }

    .banner-3 .container > .row > .col-xl-6:first-child {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .banner-3__btn-box {
        gap: 12px;
    }

    .banner-3 .rr-btn {
        padding: 10px 22px;
        font-size: 13px;
    }

    .banner-3__btn-box__wrapper {
        padding: 4px 13px 4px 6px;
    }

    .banner-3__btn-box__wrapper .icon {
        width: 36px;
        height: 36px;
    }

    .banner-3__btn-box__wrapper a {
        font-size: 13px;
    }

    .banner-3 .container > .row {
        align-items: center;
        min-height: 100%;
    }
}

/* ---------- TABLET (768–1199) ---------- */
@media (max-width: 1199.98px) {
    .banner-3.banner-3__space {
        height: auto !important;
        min-height: auto;
        display: block;
        padding: 110px 0 48px;
        overflow: visible;
    }

    .banner-3 .container {
        height: auto !important;
    }

    .banner-3 .container > .row {
        height: auto !important;
        flex-direction: column;
        align-items: stretch !important;
        gap: 28px;
    }

    .banner-3 .container > .row > [class*="col-"] {
        height: auto !important;
        display: block !important;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    /* Heading: normal flow, not absolute */
    .hero-heading {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 560px;
        margin: 0 auto 8px;
        padding: 0 8px;
        text-align: center;
        pointer-events: auto;
        animation: none;
    }

    .hero-heading .subtitle {
        margin-bottom: 14px;
    }

    .hero-heading h1 {
        max-width: 100%;
        margin: 0 auto;
        font-size: clamp(32px, 5.5vw, 48px) !important;
        line-height: 1.12;
        text-align: center;
        /* solid color fallback if gradient fails */
        color: #fff;
        background: linear-gradient(135deg, #ffffff 0%, #f5e6d3 55%, #e0bf9c 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .hero-heading p {
        max-width: 620px;
        margin: 12px auto 0;
        font-size: 14px;
        line-height: 1.45;
        text-align: center;
    }

    .banner-3__content {
        width: 100% !important;
        max-width: 100%;
        margin: 0 auto !important;
        padding: 0 8px !important;
        transform: none !important;
        opacity: 1 !important;
        text-align: center;
    }

    .banner-3__btn-box {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 8px;
    }

    .banner-3__shape-3 {
        display: none !important;
    }

    .hero-image-box {
        width: min(100%, 340px) !important;
        margin: 12px auto 0 !important;
        perspective: 1000px;
    }

    .hero-image-box__card {
        animation: none; /* less motion on tablet */
        transform: translateY(0) rotateY(-6deg) rotateX(3deg) scale(1) !important;
    }

    .hero-image-box__layer--one,
    .hero-image-box__layer--two {
        animation: none;
    }

    .hero-image-box::before {
        opacity: 0.4;
    }
}

/* ---------- PHONE (max 767) ---------- */
@media (max-width: 767.98px) {
    .banner-3.banner-3__space {
        padding: 22px 0 24px !important;
        min-height: min(88svh, 740px) !important;
        height: auto !important;
        overflow: hidden !important;
    }

    .hero-heading {
        max-width: 100%;
        margin-bottom: 4px;
        padding: 0 4px;
    }

    .hero-heading .subtitle {
        font-size: 10px !important;
        letter-spacing: 0.1em !important;
        padding: 5px 10px !important;
        margin-bottom: 8px !important;
    }

    .hero-heading h1 {
        font-size: clamp(24px, 6.4vw, 31px) !important;
        line-height: 1.12 !important;
        letter-spacing: -0.02em;
    }

    .hero-heading p {
        margin-top: 8px !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    /* On very small screens, avoid transparent text issues */
    .hero-heading h1 {
        -webkit-text-fill-color: #fff;
        background: none;
        color: #fff;
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    }

    .banner-3__content {
        padding: 0 4px !important;
    }

    .banner-3__btn-box {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .banner-3__btn-box .rr-btn {
        width: auto;
        min-width: 154px;
        max-width: 170px;
        padding: 8px 14px !important;
        font-size: 12px !important;
    }

    .banner-3__btn-box__wrapper {
        justify-content: center;
        margin-left: 0 !important;
        padding: 4px 9px 4px 5px !important;
        gap: 6px !important;
    }

    .banner-3__btn-box__wrapper .icon {
        width: 32px !important;
        height: 32px !important;
    }

    .banner-3__btn-box__wrapper a {
        font-size: 12px !important;
    }

    .hero-image-box {
        width: min(76vw, 235px) !important;
        margin: 72px auto 0 !important;
    }

    .hero-image-box__frame {
        border-radius: 16px !important;
        aspect-ratio: 4 / 3.9;
    }

    .hero-image-box__layer {
        border-radius: 16px;
        inset: 8px;
    }

    .hero-image-box__layer--one {
        transform: translate3d(12px, 14px, -24px) rotateZ(3deg) !important;
    }

    .hero-image-box__layer--two {
        transform: translate3d(-12px, 25px, -42px) rotateZ(-4deg) !important;
        opacity: 0.45;
    }

    .hero-image-box__stack--one {
        transform: translate3d(24px, 14px, -28px) rotateZ(4deg) scale(0.94) !important;
    }

    .hero-image-box__stack--two {
        transform: translate3d(-28px, 30px, -50px) rotateZ(-5deg) scale(0.88) !important;
    }

    .hero-image-box__stack--three {
        transform: translate3d(0, 48px, -72px) rotateZ(2deg) scale(0.82) !important;
    }

    .hero-image-box__caption {
        width: calc(100% - 16px);
        padding: 12px 14px !important;
        border-radius: 12px !important;
        margin-top: 12px !important;
    }

    .hero-image-box__caption h3 {
        font-size: 16px !important;
    }

    .hero-image-box__caption p {
        font-size: 12px !important;
        -webkit-line-clamp: 2;
    }

    .hero-image-box__controls {
        margin-top: 12px;
        gap: 10px;
    }

    .hero-image-box__controls button {
        width: 38px !important;
        height: 38px !important;
    }

    /* Background video/image stays full-bleed */
    .banner-3 .hero-gallery-background {
        inset: 0;
    }

    .banner-3 .hero-gallery-background img,
    .banner-3 .hero-gallery-background video {
        object-position: center center;
    }

    .banner-3::before {
        background: linear-gradient(
            180deg,
            rgba(18, 15, 12, 0.16) 0%,
            rgba(18, 15, 12, 0.08) 42%,
            rgba(18, 15, 12, 0.22) 100%
        ) !important;
    }
}

/* ---------- SMALL PHONE (max 400) ---------- */
@media (max-width: 400px) {
    .hero-heading h1 {
        font-size: 24px !important;
    }

    .hero-image-box {
        width: min(92vw, 260px) !important;
    }

    .banner-3.banner-3__space {
        padding-top: 88px !important;
        padding-bottom: 24px !important;
    }
}

/* ---------- ENQUIRY FORM responsive ---------- */
@media (max-width: 991.98px) {
    .hero-enquiry-section .container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .hero-enquiry-section__intro {
        text-align: center;
    }

    .hero-enquiry__form {
        grid-template-columns: 1fr 1fr;
    }

    .hero-enquiry__form button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .hero-enquiry__form {
        grid-template-columns: 1fr;
    }

    .hero-enquiry__form button {
        grid-column: 1;
    }

    .hero-enquiry-section {
        padding: 24px 0;
    }
}

/* Disable heavy 3D on touch devices for performance */
@media (hover: none), (pointer: coarse) {
    .hero-image-box__card {
        animation: none !important;
        transform: rotateY(-4deg) rotateX(2deg) scale(1) !important;
        transition: transform 0.3s ease;
    }

    .hero-image-box__layer--one,
    .hero-image-box__layer--two {
        animation: none !important;
    }

    .hero-image-box__frame::after {
        animation: none !important;
        opacity: 0.4;
    }

    .hero-image-box::before {
        animation: none !important;
    }

    .hero-heading {
        animation: none !important;
    }
}

/* ============================================================
   6. Reduced motion: switch everything off
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .a3d-progress {
        display: none;
    }

    .js-3d [data-reveal-3d] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .tilt-3d,
    .scroll-3d,
    .banner-3 .hero-gallery-background,
    .banner-3__content,
    .hero-heading,
    .hero-image-box,
    .hero-image-box__frame,
    .rr-btn,
    .rr-btn__header,
    .rr__faq .accordion-item,
    .our-work-precess-2__icon,
    .experience__item-content-icon {
        transform: none !important;
        transition: none !important;
    }
}

.banner-3::before,
.banner-3.a3d-video-only::before {
    background: transparent !important;
    animation: none !important;
    opacity: 0 !important;
}

.banner-3 .hero-gallery-background img {
    opacity: 1 !important;
}
