*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #000000; 
    color: #ffffff;
    margin: 0;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

input, textarea, select {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    user-select: text !important;
}

img, svg, video {
    -webkit-user-drag: none;
    user-drag: none;
}

button, a, input, select, textarea, .video-card {
    touch-action: manipulation;
}

.hero-full-height {
    height: 100vh;
    height: 100dvh;
    min-height: 520px;
}

#kyura-custom-cursor {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    * {
        cursor: none !important;
    }
    #kyura-custom-cursor {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 64px; 
        height: 64px; 
        pointer-events: none; 
        z-index: 99999999;
        background-image: url('Assets/Mouse/Mouse Normal.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top left;
        will-change: transform, opacity;
        transform: translate3d(-100px, -100px, 0);
        transition: opacity 0.15s ease;
    }
    #kyura-custom-cursor.clicking {
        background-image: url('Assets/Mouse/Mouse Clicado.svg');
    }
}

#dynamic-logo {
    position: fixed; 
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    z-index: 100;
    transition: top 0.8s cubic-bezier(0.22, 1, 0.36, 1), width 0.8s cubic-bezier(0.22, 1, 0.36, 1), max-width 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
    will-change: top, width, max-width, opacity;
    pointer-events: none;
}

.logo-hero {
    top: 50%;
    width: 82vw;
    max-width: 700px;
}

.logo-header {
    top: 48px; 
    width: 140px;
    max-width: 140px;
}

@media (max-width: 640px) {
    .logo-header {
        top: 40px;
        width: 110px;
        max-width: 110px;
    }
}

#main-header {
    transition: background-color 0.4s ease, border-color 0.4s ease;
}
.header-scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes infinite-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-100%, 0, 0); }
}
.animate-infinite-scroll {
    animation: infinite-scroll 35s linear infinite;
    will-change: transform;
}
.marquee-container:hover .animate-infinite-scroll {
    animation-play-state: paused;
}

.video-mask {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='1819' height='1258' viewBox='0 0 1819 1258' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.664459 1222L143.164 1234L190.164 1234L213.164 1232.5L268.164 1236.5L391.164 1231L480.164 1226L543.664 1226L629.664 1231.5L722.664 1231.5C759.664 1232.33 834.364 1234.1 837.164 1234.5C839.965 1234.9 926.664 1238 969.664 1239.5L1038.16 1239.5L1112.16 1245L1186.66 1245L1448.66 1257.5L1677.16 1251.5L1801.16 1230.5L1803.16 1219.5L1791.66 1210.5L1803.16 1115.5L1817.66 953.5L1812.66 875L1805.16 763L1810.16 596.5L1812.66 484L1803.66 398L1790.16 245L1790.16 62.0005L1790.16 20.0005L1618.16 26.0005L1400.66 12.0005L1174.66 6.50049L953.164 0.500488L704.164 14.0005L457.664 19.5005L7.66444 12.5005L25.6644 203L17.6644 358L14.1644 508L22.1644 609.5L25.6644 701.5L13.1644 812L8.66444 852.5L8.66444 967L21.6644 1123L23.1644 1150.5L0.664459 1222Z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg width='1819' height='1258' viewBox='0 0 1819 1258' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.664459 1222L143.164 1234L190.164 1234L213.164 1232.5L268.164 1236.5L391.164 1231L480.164 1226L543.664 1226L629.664 1231.5L722.664 1231.5C759.664 1232.33 834.364 1234.1 837.164 1234.5C839.965 1234.9 926.664 1238 969.664 1239.5L1038.16 1239.5L1112.16 1245L1186.66 1245L1448.66 1257.5L1677.16 1251.5L1801.16 1230.5L1803.16 1219.5L1791.66 1210.5L1803.16 1115.5L1817.66 953.5L1812.66 875L1805.16 763L1810.16 596.5L1812.66 484L1803.66 398L1790.16 245L1790.16 62.0005L1790.16 20.0005L1618.16 26.0005L1400.66 12.0005L1174.66 6.50049L953.164 0.500488L704.164 14.0005L457.664 19.5005L7.66444 12.5005L25.6644 203L17.6644 358L14.1644 508L22.1644 609.5L25.6644 701.5L13.1644 812L8.66444 852.5L8.66444 967L21.6644 1123L23.1644 1150.5L0.664459 1222Z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transform: translateZ(0);
}

.video-mask-vertical {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='1080' height='1920' viewBox='0 0 1080 1920' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25 50L35 150L32 300L38 600L33 900L35 1200L28 1500L35 1800L50 1895L150 1890L300 1905L600 1898L900 1902L1050 1885L1035 1800L1045 1500L1042 1200L1048 900L1043 600L1047 300L1040 150L1055 45L950 32L800 25L500 38L200 28L50 35L25 50Z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg width='1080' height='1920' viewBox='0 0 1080 1920' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25 50L35 150L32 300L38 600L33 900L35 1200L28 1500L35 1800L50 1895L150 1890L300 1905L600 1898L900 1902L1050 1885L1035 1800L1045 1500L1042 1200L1048 900L1043 600L1047 300L1040 150L1055 45L950 32L800 25L500 38L200 28L50 35L25 50Z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transform: translateZ(0);
}

.video-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

@media (hover: hover) {
    .video-card:hover {
        transform: translate3d(0, -8px, 0) scale(1.02);
    }
}

#video-grid iframe,
#video-modal iframe {
    pointer-events: none !important;
}

#video-modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
#video-modal.active {
    opacity: 1;
    visibility: visible;
}
#modal-content {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.92);
}
#video-modal.active #modal-content {
    transform: scale(1);
}