/*
 * SignMitra cinematic frontend enhancement
 * Progressive layer only: page-builder markup and navigation behaviour stay owned
 * by style.css/app.js. Keep every rule scoped to .sm-cinematic-frontend.
 */
.sm-cinematic-frontend {
    --sm-cinematic-ease: cubic-bezier(.22, 1, .36, 1);
    --sm-cinematic-ease-soft: cubic-bezier(.4, 0, .2, 1);
    --sm-cinematic-blue: #064178;
    --sm-cinematic-purple: #a91e5e;
    --sm-cinematic-ink: #071a35;
    --sm-cinematic-line: rgba(21, 47, 80, .11);
    --sm-cinematic-shadow: 0 28px 80px rgba(7, 26, 53, .13);
    --sm-hero-shift: 0px;
}

/* Header polish. Dimensions and all menu mechanics deliberately remain unchanged. */
.sm-cinematic-frontend .site-header {
    background: rgba(255, 255, 255, .78);
    border-bottom-color: rgba(16, 42, 74, .08);
    box-shadow: 0 0 0 rgba(7, 26, 53, 0);
    transition: background-color .32s var(--sm-cinematic-ease-soft),
                border-color .32s var(--sm-cinematic-ease-soft),
                box-shadow .32s var(--sm-cinematic-ease-soft);
}

.sm-cinematic-frontend .site-header.is-scrolled {
    background: rgba(255, 255, 255, .92);
    border-bottom-color: rgba(16, 42, 74, .12);
    box-shadow: 0 10px 34px rgba(7, 26, 53, .07);
}

.sm-cinematic-frontend .brand img {
    transition: transform .4s var(--sm-cinematic-ease), opacity .25s ease;
}

.sm-cinematic-frontend .brand:hover img {
    transform: translateY(-1px);
}

.sm-cinematic-frontend .nav-links > a,
.sm-cinematic-frontend .nav-links > .has-menu > button.submenu-toggle {
    position: relative;
}

.sm-cinematic-frontend .nav-links > a::after,
.sm-cinematic-frontend .nav-links > .has-menu > button.submenu-toggle::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 9px;
    left: 12px;
    height: 1px;
    background: linear-gradient(90deg, var(--sm-cinematic-blue), var(--sm-cinematic-purple));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .28s var(--sm-cinematic-ease);
}

.sm-cinematic-frontend .nav-links > a:hover::after,
.sm-cinematic-frontend .nav-links > .has-menu:hover > button.submenu-toggle::after,
.sm-cinematic-frontend .nav-links > .has-menu.is-open > button.submenu-toggle::after {
    transform: scaleX(1);
}

/* Animate only the mega-menu's presentation, never its structure or hit areas. */
.sm-cinematic-frontend .has-mega .mega-menu .mega-menu-inner {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
    transition: opacity .26s ease, transform .42s var(--sm-cinematic-ease);
}

.sm-cinematic-frontend .has-mega:hover .mega-menu .mega-menu-inner,
.sm-cinematic-frontend .has-mega .mega-menu.is-open .mega-menu-inner {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.sm-cinematic-frontend .mega-menu {
    box-shadow: 0 24px 60px rgba(7, 26, 53, .09);
}

.sm-cinematic-frontend .mega-item,
.sm-cinematic-frontend .mega-panel {
    transition: background-color .22s ease, transform .35s var(--sm-cinematic-ease), box-shadow .22s ease;
}

.sm-cinematic-frontend .mega-item:hover {
    transform: translateX(3px);
}

/* Hero entrance and depth: transforms stay on content/media, not the section box. */
.sm-cinematic-frontend .hero {
    isolation: isolate;
}

.sm-cinematic-frontend.sm-motion-enabled .hero .kicker,
.sm-cinematic-frontend.sm-motion-enabled .hero h1,
.sm-cinematic-frontend.sm-motion-enabled .hero p,
.sm-cinematic-frontend.sm-motion-enabled .hero .hero-actions,
.sm-cinematic-frontend.sm-motion-enabled .hero .hero-media {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
}

.sm-cinematic-frontend.sm-motion-enabled.sm-cinematic-ready .hero .kicker,
.sm-cinematic-frontend.sm-motion-enabled.sm-cinematic-ready .hero h1,
.sm-cinematic-frontend.sm-motion-enabled.sm-cinematic-ready .hero p,
.sm-cinematic-frontend.sm-motion-enabled.sm-cinematic-ready .hero .hero-actions,
.sm-cinematic-frontend.sm-motion-enabled.sm-cinematic-ready .hero .hero-media {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity .78s var(--sm-cinematic-ease), transform .9s var(--sm-cinematic-ease);
}

.sm-cinematic-frontend.sm-motion-enabled.sm-cinematic-ready .hero h1 { transition-delay: .06s; }
.sm-cinematic-frontend.sm-motion-enabled.sm-cinematic-ready .hero p { transition-delay: .13s; }
.sm-cinematic-frontend.sm-motion-enabled.sm-cinematic-ready .hero .hero-actions { transition-delay: .2s; }
.sm-cinematic-frontend.sm-motion-enabled.sm-cinematic-ready .hero .hero-media { transition-delay: .12s; }

.sm-cinematic-frontend .hero .hero-grid {
    transform: none;
    will-change: auto;
}

.sm-cinematic-frontend .hero-bg-media,
.sm-cinematic-frontend .hero-media {
    transform: none;
    transform-origin: center;
    will-change: auto;
}

/* Preserve every page-builder typography setting. Visual depth must never resize copy. */
.sm-cinematic-frontend .section-head p {
    max-width: 760px;
}

/* JS-applied reveal classes. Content is never hidden unless JS initialized. */
.sm-cinematic-frontend.sm-motion-enabled .sm-motion-item {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition: opacity .75s var(--sm-cinematic-ease), transform .9s var(--sm-cinematic-ease);
    transition-delay: var(--sm-motion-delay, 0ms);
}

.sm-cinematic-frontend.sm-motion-enabled .sm-motion-item.sm-motion-scale {
    transform: translate3d(0, 24px, 0) scale(.985);
}

.sm-cinematic-frontend.sm-motion-enabled .sm-motion-item.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* Card views must remain stationary while the page moves vertically. Their
   native horizontal controls still work, but entering the viewport never
   shifts the whole rail or staggers individual cards. */
.sm-cinematic-frontend .section-type-cards .card.reveal:not(.is-visible),
.sm-cinematic-frontend .section-type-feature-grid .card.reveal:not(.is-visible),
.sm-cinematic-frontend .section-type-pricing .price-card.reveal:not(.is-visible),
.sm-cinematic-frontend .section-type-testimonials .testimonial-card.reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
}

/* Storytelling sections gain a pinned visual on desktop, while existing controls remain native. */
@media (min-width: 993px) {
    .sm-cinematic-frontend .section-type-scrolling-story .ss-showcase-grid {
        align-items: start;
    }

    .sm-cinematic-frontend .section-type-scrolling-story .ss-showcase-media {
        position: sticky;
        top: calc(var(--header-height) + 28px);
    }
}

.sm-cinematic-frontend .section-type-scrolling-story {
    background:
        radial-gradient(circle at 88% 18%, rgba(52, 105, 255, .055), transparent 30%),
        #f5f5f7;
}

.sm-cinematic-frontend .ss-showcase-media {
    border-color: rgba(29, 29, 31, .06);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
}

.sm-cinematic-frontend .industry-showcase-panel {
    border: 1px solid rgba(255, 255, 255, .72);
    box-shadow: 0 34px 80px rgba(7, 26, 53, .17);
}

/* Real page-renderer components used across the current frontend. */
.sm-cinematic-frontend .template-player-wrap,
.sm-cinematic-frontend .media-image,
.sm-cinematic-frontend .testimonial-showcase,
.sm-cinematic-frontend .device-grid {
    position: relative;
    border-radius: clamp(18px, 2vw, 30px);
}

.sm-cinematic-frontend .template-player-wrap {
    box-shadow: 0 30px 80px rgba(7, 26, 53, .13);
}

.sm-cinematic-frontend .media-image {
    overflow: hidden;
}

.sm-cinematic-frontend .media-image img,
.sm-cinematic-frontend .media-image video,
.sm-cinematic-frontend .media-image iframe {
    border-radius: inherit;
}

.sm-cinematic-frontend .timeline-strip-item {
    background: var(--bg-secondary) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.sm-cinematic-frontend .timeline-strip-item,
.sm-cinematic-frontend .timeline-strip-number,
.sm-cinematic-frontend .device-grid-tile {
    transition: transform .42s var(--sm-cinematic-ease), box-shadow .42s var(--sm-cinematic-ease), border-color .25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .sm-cinematic-frontend .device-grid-tile:hover {
        transform: translateY(-5px);
        box-shadow: 0 22px 54px rgba(7, 26, 53, .12);
    }

    .sm-cinematic-frontend .timeline-strip-item:hover {
        background: transparent !important;
        box-shadow: none !important;
        transform: none;
    }

    .sm-cinematic-frontend .timeline-strip-item:hover .timeline-strip-number { transform: none; }
}

/* Cinematic component entrances use the existing reveal observer. */
.sm-cinematic-frontend.sm-motion-enabled .media-image.reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity .8s var(--sm-cinematic-ease),
                transform .8s var(--sm-cinematic-ease);
}

.sm-cinematic-frontend.sm-motion-enabled .media-image.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

.sm-cinematic-frontend.sm-motion-enabled .overlap-boxes.reveal .overlap-box-primary,
.sm-cinematic-frontend.sm-motion-enabled .overlap-boxes.reveal .overlap-box-secondary {
    opacity: 0;
    transition: opacity .72s var(--sm-cinematic-ease), transform .95s var(--sm-cinematic-ease);
}

.sm-cinematic-frontend.sm-motion-enabled .overlap-boxes.reveal .overlap-box-primary {
    transform: translate3d(0, 18px, 0);
}

.sm-cinematic-frontend.sm-motion-enabled .overlap-boxes.reveal .overlap-box-secondary {
    transform: translate3d(0, 14px, 0);
}

.sm-cinematic-frontend.sm-motion-enabled .overlap-boxes.reveal.is-visible .overlap-box-primary,
.sm-cinematic-frontend.sm-motion-enabled .overlap-boxes.reveal.is-visible .overlap-box-secondary {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.sm-cinematic-frontend.sm-motion-enabled .template-player-wrap.reveal {
    clip-path: inset(6% 5% round 30px);
    transform: translate3d(0, 36px, 0) scale(.96);
    transition: opacity .82s var(--sm-cinematic-ease),
                transform 1.05s var(--sm-cinematic-ease),
                clip-path 1.05s var(--sm-cinematic-ease);
}

.sm-cinematic-frontend.sm-motion-enabled .template-player-wrap.reveal.is-visible {
    clip-path: inset(0 round 0);
    transform: translate3d(0, 0, 0) scale(1);
}

.sm-cinematic-frontend.sm-motion-enabled .timeline-strip-item.reveal .timeline-strip-number {
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(.82);
}

.sm-cinematic-frontend.sm-motion-enabled .timeline-strip-item.reveal.is-visible .timeline-strip-number {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* Testimonial film stage: transparent showcase on a deep full-bleed background. */
.sm-cinematic-frontend .section-type-testimonials:not([style*="background"]) {
    color: #fff;
    background:
        radial-gradient(circle at 14% 18%, rgba(30, 111, 255, .2), transparent 32%),
        radial-gradient(circle at 88% 76%, rgba(169, 30, 94, .26), transparent 36%),
        linear-gradient(145deg, #061526 0%, #0b2744 52%, #161226 100%);
}

.sm-cinematic-frontend .section-type-testimonials:not([style*="background"]) .section-head h2,
.sm-cinematic-frontend .section-type-testimonials:not([style*="background"]) .section-head p,
.sm-cinematic-frontend .section-type-testimonials:not([style*="background"]) .testimonial-showcase-quote,
.sm-cinematic-frontend .section-type-testimonials:not([style*="background"]) .testimonial-showcase-person strong,
.sm-cinematic-frontend .section-type-testimonials:not([style*="background"]) .testimonial-showcase-person span,
.sm-cinematic-frontend .section-type-testimonials:not([style*="background"]) .testimonial-showcase-company {
    color: #fff;
}

.sm-cinematic-frontend .section-type-testimonials:not([style*="background"]) .testimonial-showcase {
    background: transparent;
    box-shadow: none;
}

.sm-cinematic-frontend .section-type-testimonials:not([style*="background"]) .testimonial-showcase-slide {
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(4, 17, 32, .58);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .32);
}

.sm-cinematic-frontend .section-type-testimonials:not([style*="background"]) .testimonial-showcase-content {
    background: linear-gradient(180deg, rgba(15, 43, 72, .94), rgba(6, 22, 40, .97));
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.sm-cinematic-frontend .section-type-testimonials:not([style*="background"]) .testimonial-showcase-slide::after {
    background: rgba(4, 12, 24, .45);
}

.sm-cinematic-frontend .section-type-testimonials:not([style*="background"]) .testimonial-showcase-nav {
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(6, 22, 40, .78);
    color: #fff;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.sm-cinematic-frontend .section-type-testimonials:not([style*="background"]) .testimonial-showcase-dot {
    background: rgba(255, 255, 255, .34);
}

.sm-cinematic-frontend .section-type-testimonials:not([style*="background"]) .testimonial-showcase-dot.is-active {
    width: 24px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2c8cff, #ea3a82);
}

.sm-cinematic-frontend .ss-showcase-item.is-active {
    border-color: rgba(29, 29, 31, .08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .045);
}

/* Professional feature matrix: editorial hierarchy, consistent cards and icons. */
.sm-cinematic-frontend .section-type-feature-grid {
    isolation: isolate;
}

.sm-cinematic-frontend .section-type-feature-grid .grid-2,
.sm-cinematic-frontend .section-type-feature-grid .grid-3,
.sm-cinematic-frontend .section-type-feature-grid .grid-4 {
    counter-reset: sm-feature-card;
    align-items: stretch;
    gap: clamp(16px, 1.7vw, 24px);
}

.sm-cinematic-frontend .section-type-feature-grid .card {
    counter-increment: sm-feature-card;
    isolation: isolate;
    position: relative;
    min-height: 238px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    padding: clamp(26px, 2.4vw, 34px);
    text-align: left;
    border: 1px solid rgba(15, 45, 78, .1);
    border-radius: clamp(18px, 1.7vw, 24px);
    background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(246, 249, 253, .92));
    box-shadow: 0 16px 42px rgba(7, 26, 53, .075);
    transform: none;
    transition: transform .48s var(--sm-cinematic-ease),
                box-shadow .48s var(--sm-cinematic-ease),
                border-color .28s ease,
                background-color .28s ease;
}

.sm-cinematic-frontend .section-type-feature-grid .card::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sm-cinematic-blue), #426be5 52%, var(--sm-cinematic-purple));
    opacity: .82;
}

.sm-cinematic-frontend .section-type-feature-grid .card::after {
    content: counter(sm-feature-card, decimal-leading-zero);
    position: absolute;
    top: 24px;
    right: 26px;
    color: rgba(7, 26, 53, .12);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .12em;
}

.sm-cinematic-frontend .section-type-feature-grid .icon-wrap {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    margin: 0 0 24px;
    border: 1px solid rgba(23, 88, 166, .14);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(234, 244, 255, .98), rgba(246, 236, 247, .92));
    box-shadow: 0 10px 26px rgba(6, 65, 120, .1);
    transition: transform .48s var(--sm-cinematic-ease), box-shadow .35s ease;
}

.sm-cinematic-frontend .section-type-feature-grid .feature-grid-icon-mask {
    width: 27px;
    height: 27px;
    background: var(--feature-icon-color, var(--sm-cinematic-blue));
}

.sm-cinematic-frontend .section-type-feature-grid .icon-wrap img {
    width: 30px;
    height: 30px;
}

.sm-cinematic-frontend .section-type-feature-grid .card h3 {
    max-width: calc(100% - 22px);
    margin: 0 0 11px;
    font-size: clamp(19px, 1.45vw, 23px);
    line-height: 1.2;
    letter-spacing: -.02em;
}

.sm-cinematic-frontend .section-type-feature-grid .card p {
    margin: 0;
    font-size: clamp(14px, 1.02vw, 16px);
    line-height: 1.58;
}

.sm-cinematic-frontend .section-type-feature-grid .card .badge-link {
    margin-top: auto;
    padding: 10px 17px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.sm-cinematic-frontend .has-media-bg.section-type-feature-grid .card,
.sm-cinematic-frontend .section.theme-dark.section-type-feature-grid .card {
    border-color: rgba(255, 255, 255, .16);
    border-top-color: rgba(255, 255, 255, .24);
    background: linear-gradient(145deg, rgba(5, 22, 41, .72), rgba(17, 25, 55, .58));
    box-shadow: 0 20px 54px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .1);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
}

.sm-cinematic-frontend .has-media-bg.section-type-feature-grid .card::after,
.sm-cinematic-frontend .section.theme-dark.section-type-feature-grid .card::after {
    color: rgba(255, 255, 255, .26);
}

.sm-cinematic-frontend .has-media-bg.section-type-feature-grid .icon-wrap,
.sm-cinematic-frontend .section.theme-dark.section-type-feature-grid .icon-wrap {
    border-color: rgba(255, 255, 255, .17);
    background: linear-gradient(145deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .07));
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.sm-cinematic-frontend .has-media-bg.section-type-feature-grid .feature-grid-icon-mask,
.sm-cinematic-frontend .section.theme-dark.section-type-feature-grid .feature-grid-icon-mask {
    background: var(--feature-icon-color, #fff);
}

@media (hover: hover) and (pointer: fine) {
    .sm-cinematic-frontend .section-type-feature-grid .card:hover {
        border-color: rgba(38, 100, 180, .24);
        box-shadow: 0 26px 64px rgba(7, 26, 53, .14);
        transform: translate3d(0, -7px, 0);
    }

    .sm-cinematic-frontend .section-type-feature-grid .card:hover .icon-wrap {
        transform: translate3d(0, -3px, 0) scale(1.04);
        box-shadow: 0 16px 34px rgba(6, 65, 120, .16);
    }

    .sm-cinematic-frontend .has-media-bg.section-type-feature-grid .card:hover,
    .sm-cinematic-frontend .section.theme-dark.section-type-feature-grid .card:hover {
        border-color: rgba(255, 255, 255, .3);
        border-top-color: rgba(255, 255, 255, .42);
        background: linear-gradient(145deg, rgba(5, 22, 41, .82), rgba(23, 30, 67, .68));
        box-shadow: 0 30px 72px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .15);
        transform: translate3d(0, -7px, 0);
    }
}

@media (max-width: 991px) {
    .sm-cinematic-frontend .section-type-feature-grid .grid-3,
    .sm-cinematic-frontend .section-type-feature-grid .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sm-cinematic-frontend .section-type-feature-grid .grid-2,
    .sm-cinematic-frontend .section-type-feature-grid .grid-3,
    .sm-cinematic-frontend .section-type-feature-grid .grid-4 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sm-cinematic-frontend .section-type-feature-grid .card {
        min-height: 0;
        padding: 24px 22px;
        border-radius: 18px;
    }

    .sm-cinematic-frontend .section-type-feature-grid .icon-wrap {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        margin-bottom: 18px;
        border-radius: 14px;
    }
}

/* Feature carousel follows the quiet, flat editorial treatment used on
   product pages; it intentionally opts out of the numbered grid treatment. */
.sm-cinematic-frontend .section-type-feature-grid .feature-grid-carousel {
    counter-reset: none;
    align-items: stretch;
}
.sm-cinematic-frontend .section-type-feature-grid .feature-grid-carousel-card {
    min-height: 0;
    height: auto;
    padding: clamp(34px, 2.7vw, 44px) clamp(30px, 2.5vw, 40px);
    border: 0;
    background: var(--card-bg);
    box-shadow: none;
    transition: none;
}
.sm-cinematic-frontend .section-type-feature-grid .feature-grid-carousel-card::before,
.sm-cinematic-frontend .section-type-feature-grid .feature-grid-carousel-card::after {
    content: none;
    display: none;
}
.sm-cinematic-frontend .section-type-feature-grid .feature-grid-carousel-card .icon-wrap {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    margin: 0 0 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.sm-cinematic-frontend .section-type-feature-grid .feature-grid-carousel-card .feature-grid-icon-mask {
    width: 43px;
    height: 43px;
    background: var(--feature-icon-color, var(--primary));
}
.sm-cinematic-frontend .section-type-feature-grid .feature-grid-carousel-card h3 {
    max-width: 100%;
    margin: 0 0 16px;
    font-size: clamp(25px, 2vw, 32px);
    line-height: 1.08;
}
.sm-cinematic-frontend .section-type-feature-grid .feature-grid-carousel-card p {
    font-size: clamp(16px, 1.22vw, 19px);
    line-height: 1.28;
}
.sm-cinematic-frontend .section-type-feature-grid .feature-grid-carousel-card .badge-link {
    margin: 22px 0 0;
    padding: 10px 17px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
}
@media (hover: hover) and (pointer: fine) {
    .sm-cinematic-frontend .section-type-feature-grid .feature-grid-carousel-card:hover {
        border-color: transparent;
        box-shadow: none;
        transform: none;
    }
    .sm-cinematic-frontend .section-type-feature-grid .feature-grid-carousel-card:hover .icon-wrap {
        border-color: transparent;
        background: transparent;
        box-shadow: none;
        transform: none;
    }
}
@media (max-width: 767px) {
    .sm-cinematic-frontend .section-type-feature-grid .feature-grid-carousel-card {
        min-height: 0;
        padding: 30px 26px;
        border-radius: 24px;
    }
}

/* Gallery, apps and business cards: quiet depth with no hover layout shift. */
@media (hover: hover) and (pointer: fine) {
    .sm-cinematic-frontend .card:not(.cta-band):not(.feature-grid-carousel-card),
    .sm-cinematic-frontend .sm-app-card,
    .sm-cinematic-frontend .industry-showcase-card,
    .sm-cinematic-frontend .gallery-card,
    .sm-cinematic-frontend .template-card {
        transition: border-color .28s ease, box-shadow .42s var(--sm-cinematic-ease), transform .42s var(--sm-cinematic-ease);
    }

    .sm-cinematic-frontend .card:not(.cta-band):not(.feature-grid-carousel-card):hover,
    .sm-cinematic-frontend .sm-app-card:hover,
    .sm-cinematic-frontend .gallery-card:hover,
    .sm-cinematic-frontend .template-card:hover {
        box-shadow: 0 24px 60px rgba(7, 26, 53, .12);
    }

    .sm-cinematic-frontend .card:not(.feature-grid-carousel-card) img,
    .sm-cinematic-frontend .gallery-card img,
    .sm-cinematic-frontend .template-card img {
        transition: transform .75s var(--sm-cinematic-ease);
    }

    .sm-cinematic-frontend .card:not(.feature-grid-carousel-card):hover img,
    .sm-cinematic-frontend .gallery-card:hover img,
    .sm-cinematic-frontend .template-card:hover img {
        transform: scale(1.025);
    }
}

/* Keep the selectable feature carousel flat and theme-aware even when the
   section uses the dark/media treatment above. */
.sm-cinematic-frontend .section-type-feature-grid .feature-grid-carousel-card,
.sm-cinematic-frontend .section-type-feature-grid .feature-grid-carousel-card:hover {
    border: 0;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}
.sm-cinematic-frontend .has-media-bg.section-type-feature-grid .feature-grid-carousel-card,
.sm-cinematic-frontend .section.theme-dark.section-type-feature-grid .feature-grid-carousel-card,
.sm-cinematic-frontend .has-media-bg.section-type-feature-grid .feature-grid-carousel-card:hover,
.sm-cinematic-frontend .section.theme-dark.section-type-feature-grid .feature-grid-carousel-card:hover {
    border: 0;
    background: var(--card-bg-dark);
    box-shadow: none !important;
}

.sm-cinematic-frontend .section-type-cta .card.cta-band {
    isolation: isolate;
    overflow: hidden;
    border: 0;
    box-shadow: none;
}

.sm-cinematic-frontend .section-type-cta .card.cta-band:not(.has-bg-image) {
    background: #f5f5f7;
}

.sm-cinematic-frontend .section-type-cta .card.cta-band::after {
    box-shadow: none;
    transition: opacity .35s ease;
}

.sm-cinematic-frontend .footer {
    background: linear-gradient(180deg, #f6f8fb 0%, #eef2f7 100%);
    border-top-color: rgba(21, 47, 80, .09);
}

.sm-cinematic-frontend .footer a {
    transition: color .2s ease, transform .28s var(--sm-cinematic-ease);
}

@media (hover: hover) and (pointer: fine) {
    .sm-cinematic-frontend .footer a:hover {
        transform: translateX(2px);
    }
}

/* Keep section geometry and paint state stable in both scroll directions.
   Safari can visibly hitch when content-visibility remounts tall sections. */
.sm-cinematic-frontend .section:not(.section-first) {
    content-visibility: visible;
    contain-intrinsic-size: none;
}

@media (max-width: 992px) {
    .sm-cinematic-frontend .hero .hero-grid,
    .sm-cinematic-frontend .hero-bg-media,
    .sm-cinematic-frontend .hero-media,
    .sm-cinematic-frontend .sm-scroll-depth {
        transform: none;
        will-change: auto;
    }

    .sm-cinematic-frontend .section-head {
        margin-bottom: clamp(30px, 8vw, 46px);
    }

    .sm-cinematic-frontend .section-head h2 {
        letter-spacing: -.028em;
    }
}

@media (max-width: 767px) {
    .sm-cinematic-frontend .nav-links > a::after,
    .sm-cinematic-frontend .nav-links > .has-menu > button.submenu-toggle::after {
        display: none;
    }

    .sm-cinematic-frontend .hero-actions {
        gap: 12px;
    }

    .sm-cinematic-frontend.sm-motion-enabled .sm-motion-item {
        transform: translate3d(0, 20px, 0);
        transition-duration: .62s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sm-cinematic-frontend *,
    .sm-cinematic-frontend *::before,
    .sm-cinematic-frontend *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .sm-cinematic-frontend.sm-motion-enabled .sm-motion-item,
    .sm-cinematic-frontend.sm-motion-enabled .hero .kicker,
    .sm-cinematic-frontend.sm-motion-enabled .hero h1,
    .sm-cinematic-frontend.sm-motion-enabled .hero p,
    .sm-cinematic-frontend.sm-motion-enabled .hero .hero-actions,
    .sm-cinematic-frontend.sm-motion-enabled .hero .hero-media {
        opacity: 1 !important;
        transform: none !important;
    }

    .sm-cinematic-frontend .hero .hero-grid,
    .sm-cinematic-frontend .hero-bg-media,
    .sm-cinematic-frontend .hero-media,
    .sm-cinematic-frontend .sm-scroll-depth {
        transform: none !important;
    }
}
