/**
 * Site-wide UX polish
 */

/* --- Navigation: menu / close button (readable on every section) --- */
.bold-nav-full__bar {
    mix-blend-mode: normal;
}

.bold-nav-full__logo {
    mix-blend-mode: normal !important;
    filter: none;
    width: auto !important;
    height: auto !important;
}

.bold-nav-full__logo.w--current {
    mix-blend-mode: normal !important;
}

.bold-nav-full__logo-img {
    display: block;
    width: auto;
    height: 2.75em;
    max-width: min(16rem, 52vw);
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 767px) {
    .bold-nav-full__logo-img {
        height: 2.25em;
        max-width: min(12rem, 48vw);
    }
}

.bold-nav-full__hamburger {
    background: none !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 4em !important;
    min-width: unset !important;
    height: 2.5em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

/* Original Menu/Close typography from main.min.css */
.bold-nav-full__hamburger {
    color: #f4f4f4;
}

.nav-menu-btn-text,
.nav-close-btn-text {
    color: var(--_theme---headings);
    font-weight: var(--_typography---font--secondary-regular);
    mix-blend-mode: normal;
    background: none !important;
}

[data-theme="light"] .bold-nav-full__hamburger {
    color: #0b0b0b;
}

[data-theme="light"] .nav-menu-btn-text,
[data-theme="light"] .nav-close-btn-text {
    color: var(--_theme---headings);
}

/* Menu open: simple black Menu / Close text */
[data-navigation-status="active"] .bold-nav-full__hamburger,
[data-navigation-status="active"] .nav-menu-btn-text,
[data-navigation-status="active"] .nav-close-btn-text {
    color: #0b0b0b !important;
    mix-blend-mode: normal !important;
    text-shadow: none !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

[data-navigation-status="active"] .bold-nav-full__logo {
    color: #0b0b0b;
    mix-blend-mode: normal;
}

/* --- Hover: smooth underline slide + lift instead of bold --- */
:root {
    --_theme---text-link--text-hover: var(--_theme---text-link--text);
    --_theme---text-link--border-hover: var(--_theme---text-link--border);
}

.highlight-item:hover {
    color: inherit !important;
    opacity: 1 !important;
}

.highlight-column.left .highlight-item:hover {
    transform: translateX(-6px);
}

.highlight-column.right .highlight-item:hover {
    transform: translateX(6px);
}

.highlight-item:hover::after,
.highlight-item:hover::before {
    background: currentColor !important;
    opacity: 1 !important;
}

.u-text a {
    position: relative;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.u-text a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.u-text a:hover {
    color: inherit !important;
    opacity: 1;
}

.u-text a:hover::after {
    width: 100%;
}

/* --- Get Started: continuous motion background (all CTAs) --- */
@keyframes ma-gs-gradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes ma-gs-shimmer {
    0% { transform: translateX(-120%) skewX(-12deg); }
    100% { transform: translateX(220%) skewX(-12deg); }
}

.button_main_wrap:has(a[href*="get-started"]) .button_main_element {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: inherit;
}

.button_main_wrap:has(a[href*="get-started"]) .button_main_element::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        105deg,
        #c9920a 0%,
        #f0c040 18%,
        #fff4c8 38%,
        #f0c040 58%,
        #d4a017 78%,
        #f0c040 100%
    );
    background-size: 200% 100%;
    animation: ma-gs-gradient 3.5s linear infinite;
}

.button_main_wrap:has(a[href*="get-started"]) .button_main_element::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 0;
    width: 45%;
    height: 140%;
    z-index: 1;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.45),
        transparent
    );
    animation: ma-gs-shimmer 2.8s ease-in-out infinite;
    pointer-events: none;
}

.button_main_wrap:has(a[href*="get-started"]) .button_main_text,
.button_main_wrap:has(a[href*="get-started"]) .button_main_icon,
.button_main_wrap:has(a[href*="get-started"]) .u-svg {
    position: relative;
    z-index: 2;
}

.bold-nav-full__link[href*="get-started"] {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    border-radius: 999px;
    padding: 0.35em 1em !important;
    isolation: isolate;
}

.bold-nav-full__link[href*="get-started"]::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(105deg, #c9920a, #f0c040, #fff4c8, #f0c040, #c9920a);
    background-size: 200% 100%;
    animation: ma-gs-gradient 3.5s linear infinite;
}

.bold-nav-full__link[href*="get-started"]::after {
    content: '';
    position: absolute;
    top: -30%;
    left: 0;
    width: 50%;
    height: 160%;
    z-index: 1;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: ma-gs-shimmer 2.8s ease-in-out infinite;
    pointer-events: none;
}

.bold-nav-full__link[href*="get-started"] .bold-nav-full__link-text {
    position: relative;
    z-index: 2;
    color: #0b0b0b !important;
}

@media (prefers-reduced-motion: reduce) {
    .button_main_wrap:has(a[href*="get-started"]) .button_main_element::before,
    .button_main_wrap:has(a[href*="get-started"]) .button_main_element::after,
    .bold-nav-full__link[href*="get-started"]::before,
    .bold-nav-full__link[href*="get-started"]::after {
        animation: none;
    }
}

/* --- About Us section (redesigned) --- */
#about-us.ma-about-section {
    position: relative;
}

#about-us .ma-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: stretch;
}

#about-us .ma-about-visual {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#about-us .about-3d-iframe-wrap {
    position: relative;
    width: 100%;
    min-height: clamp(280px, 42vw, 520px);
    flex: 1;
    border-radius: clamp(16px, 2vw, 24px);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#about-us .about-3d-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#about-us .ma-about-360-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    font-size: clamp(0.75rem, 1.8vw, 0.9rem);
    font-style: italic;
    opacity: 0.65;
    letter-spacing: 0.04em;
}

#about-us .ma-about-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    min-height: 100%;
}

#about-us .ma-about-eyebrow {
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.55;
    margin: 0 0 0.75rem;
}

#about-us .ma-about-title {
    font-family: 'Space Grotesk', var(--_typography---font--primary-family), sans-serif;
    font-size: clamp(2.25rem, 6vw, 4.25rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
}

#about-us .ma-about-lead {
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    line-height: 1.45;
    font-weight: 500;
    opacity: 0.92;
    margin: 0 0 0.65rem;
    max-width: 36ch;
}

#about-us .ma-about-lead--accent {
    color: var(--swatch--brand-500, #f0c040);
    font-style: italic;
    font-weight: 600;
}

#about-us .ma-about-body {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.75;
    opacity: 0.78;
    max-width: 48ch;
    margin: 0;
}

#about-us .ma-about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.5rem;
}

#about-us .ma-about-stat {
    font-size: clamp(0.7rem, 1.6vw, 0.8rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(240, 192, 64, 0.35);
    background: rgba(240, 192, 64, 0.08);
}

#about-us .ma-about-cta-row {
    margin-top: auto;
    padding-top: 0.5rem;
}

@media (max-width: 991px) {
    #about-us .ma-about-grid {
        grid-template-columns: 1fr;
    }

    #about-us .ma-about-visual {
        order: 1;
    }

    #about-us .ma-about-copy {
        order: 2;
    }

    #about-us .about-3d-iframe-wrap {
        min-height: clamp(260px, 55vw, 400px);
    }
}

@media (max-width: 479px) {
    #about-us .ma-about-stats {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Latest Work band marquee (full width) --- */
.ma-latest-work-band {
    display: block;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: clamp(2.5rem, 6vw, 4rem);
    padding: clamp(0.85rem, 2.5vw, 1.35rem) 0;
    text-decoration: none;
    color: #0a0a0a;
    background: #0a0a0a;
    border-block: 1px solid rgba(240, 192, 64, 0.35);
    overflow: hidden;
    position: relative;
    transition: background 0.35s ease;
}

.ma-latest-work-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    z-index: 0;
}

.ma-latest-work-band:hover {
    background: #111;
}

.ma-latest-work-band:hover .ma-latest-work-band__label {
    color: #f0c040;
}

.ma-latest-work-band__track {
    display: flex;
    width: max-content;
    animation: ma-lw-marquee 28s linear infinite;
    position: relative;
    z-index: 1;
}

.ma-latest-work-band:hover .ma-latest-work-band__track {
    animation-play-state: paused;
}

.ma-latest-work-band__content {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-right: clamp(1.5rem, 4vw, 3rem);
    flex-shrink: 0;
}

.ma-latest-work-band__label {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-size: clamp(0.8rem, 2.8vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #f4f4f4;
    transition: color 0.3s ease;
}

.ma-latest-work-band__dot {
    color: var(--swatch--brand-500, #f0c040);
    font-size: 0.65em;
    opacity: 0.9;
}

@keyframes ma-lw-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .ma-latest-work-band__track {
        animation-duration: 22s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ma-latest-work-band__track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        padding: 0.5rem 1rem;
    }

    .ma-latest-work-band__content[aria-hidden='true'] {
        display: none;
    }
}

.footer_bottom_link_wrap:hover .footer_bottom_link_text {
    opacity: 1;
    color: inherit !important;
}

.footer_link_wrap {
    position: relative;
    transition: opacity 0.3s ease;
}

.footer_link_wrap:hover {
    opacity: 1 !important;
}

.card_process_wrap:hover .card_process_title,
.card_process_wrap:hover .card_process_text {
    color: inherit !important;
}

.card_process_wrap {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.card_process_wrap:hover {
    transform: translateY(-4px);
}

/* Custom cursor targets */
.featured_works_element-link[data-cursor-marquee-text],
.stacking-cards__item[data-cursor-marquee-text] {
    cursor: none;
}

@media (max-width: 767px) {
    .featured_works_element-link[data-cursor-marquee-text],
    .stacking-cards__item[data-cursor-marquee-text] {
        cursor: pointer;
    }
}

/* --- Team section: one line, flush left --- */
.team-section {
    padding-left: var(--site--margin) !important;
    padding-right: var(--site--margin) !important;
}

.team-section > .u-container {
    max-width: none !important;
    margin: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: visible;
}

.team-section-title.u-heading,
.team-section-title.u-heading h2 {
    font-family: var(--_typography---font--primary-family);
    font-size: var(--_typography---font-size--h2);
    line-height: var(--_typography---line-height--small);
    font-weight: var(--_typography---font--primary-medium);
    letter-spacing: var(--_typography---letter-spacing--normal);
    text-transform: var(--_typography---text-transform--uppercase);
    text-wrap: normal !important;
    text-align: left !important;
    margin-top: 0;
    margin-bottom: var(--_spacing---space--4-40px);
    width: 100%;
}

.team-section-title h2 {
    text-align: left !important;
    white-space: normal;
}

@media (max-width: 900px) {
    .team-section-title h2 {
        white-space: normal;
        font-size: clamp(1.75rem, 7vw, var(--_typography---font-size--h2)) !important;
    }
}

.team-section-title .team-accent {
    color: inherit;
    font-weight: inherit;
}

.team-content {
    text-align: left !important;
}

/* Custom cursor hover style change from yellow to black */
.cursor-marquee__card {
    background-color: #0b0b0b !important;
}

.cursor-marquee__text-span {
    color: #ffffff !important;
}

/* --- Featured works: stable images --- */
.featured_works_element-link .u-image-wrapper {
    aspect-ratio: 2 / 1;
    min-height: 200px;
    contain: layout style paint;
    overflow: hidden;
}

.featured_works_element-link .u-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: none;
    will-change: auto;
}

.featured_works_element-link:hover .u-image {
    transform: none;
}

/* Services section: stable video panels */
#services .bunny-bg {
    aspect-ratio: 1 / 1.2;
    min-height: 280px;
    width: 100%;
    overflow: hidden;
    contain: layout style paint;
}

#services .bunny-bg__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none !important;
    position: absolute;
    inset: 0;
}

/* Testimonial cards */
.testimonial_card_element {
    padding: 2rem 1.5rem !important;
}

.testimonial_card_element::before {
    font-size: 3.5rem !important;
    top: 6px !important;
    left: 14px !important;
}

.testimonial_card_element h4.u-text,
.testimonial_card_element h4,
.testimonial_card_element .testimonial-quote {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    margin-bottom: 1.35rem !important;
    line-height: 1.65 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-style: normal !important;
}

.testimonial_card_element h4 strong,
.testimonial-quote strong {
    font-weight: 700 !important;
    font-family: inherit !important;
    color: inherit;
}

.testimonial_card_profile {
    width: 5.5rem !important;
    height: 5.5rem !important;
    margin-bottom: 1rem !important;
    border-width: 2px !important;
}

.testimonial_card_name {
    font-size: 0.95rem !important;
    font-weight: 600;
}

.testimonial_card_company {
    font-size: 0.8rem !important;
}

@media (min-width: 992px) {
    .testimonial_card_element h4,
    .testimonial_card_element .testimonial-quote {
        font-size: 1.35rem !important;
        line-height: 1.7 !important;
    }

    .testimonial_card_profile {
        width: 7.5rem !important;
        height: 7.5rem !important;
        margin-bottom: 1.25rem !important;
    }

    .testimonial_card_name {
        font-size: 1.2rem !important;
    }

    .testimonial_card_company {
        font-size: 1rem !important;
    }
}

/* Get Started buttons: cursor marquee text on hover */
.button_main_wrap[data-cursor-marquee-text] {
    cursor: none;
}

@media (max-width: 767px) {
    .button_main_wrap[data-cursor-marquee-text] {
        cursor: pointer;
    }
}

/* Back to Home on work / service showcase pages */
.page .nav-back {
    max-width: 1100px;
    margin: 0 auto 30px;
}

.page .nav-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.page .nav-back a:hover {
    color: #000;
}

/* --- Work & service page heroes: no size glitch --- */
.work-hero-image-wrap,
.page-hero-image-wrap {
    width: min(100%, 820px);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    contain: layout style paint;
}

.work-hero-image-wrap {
    min-height: 260px;
    aspect-ratio: auto;
}

.page-hero-image-wrap {
    aspect-ratio: 16 / 9;
    min-height: 240px;
    max-height: min(50vh, 400px);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
}

.work-hero-image-wrap img,
.page-hero-image-wrap img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transform: none !important;
    transition: none !important;
}

.work-hero-image-wrap img {
    max-height: min(52vh, 420px);
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    height: auto;
}

.page-hero-image-wrap img {
    object-fit: cover;
    border-radius: inherit;
    height: 100%;
}

/* Showcase grid cards: stable hover (no JS transform glitch) */
.page .card {
    transform-style: flat;
}

.page .card img {
    transform: none;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.page .card:hover img {
    transform: scale(1.04);
}

@media (max-width: 767px) {
    .work-hero-image-wrap {
        min-height: 200px;
    }

    .work-hero-image-wrap img {
        max-height: 40vh;
    }

    .page-hero-image-wrap {
        min-height: 180px;
        max-height: 36vh;
    }

    #services .bunny-bg {
        min-height: 220px;
    }
}

/* Mobile Footer Organization */
@media screen and (max-width: 768px) {
    .footer_layout { display: flex !important; flex-direction: column !important; gap: 2.5rem !important; text-align: center !important; }
    .footer_group_wrap { display: flex; flex-direction: column; items-align: center; gap: 0.5rem; }
    .footer_group_list { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
    .u-grid { display: flex !important; flex-direction: column !important; gap: 2rem !important; }
    .footer_bottom_layout { flex-direction: column !important; gap: 1.5rem !important; text-align: center !important; padding-top: 1.5rem !important; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 1rem; }
    .footer_bottom_list { justify-content: center !important; }
}
