/* Typography System */
@font-face {
    font-family: 'NewYork';
    src: url('assets/font/NewYork.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Base Resets & Layout */
html {
    -ms-overflow-style: none;
    scrollbar-width: none;
    background-color: #F5F2EB;
}

::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    background-color: #F5F2EB;
    color: #362417;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-width: 320px;
}

/* Hardware Acceleration Classes for Performance */
.gpu-accelerate {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* Disable heavy SVG noise filter on mobile to improve scroll performance */
@media (max-width: 768px) {
    .mix-blend-multiply.gpu-accelerate {
        display: none !important;
    }
}

/* Smooth Scroll Core */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* High-Performance Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-text-container.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Split Text Animation */
.split-line {
    overflow: hidden;
    display: inline-block;
    padding-bottom: 0.25em;
    margin-bottom: -0.25em;
    vertical-align: top;
}

.split-word {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.5s ease-out;
    will-change: transform;
}

.is-visible .split-word {
    transform: translateY(0);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cinematic Scroll Text */
.cinematic-word {
    display: inline-block;
    margin-right: 0.25em;
    will-change: color;
    transition: color 0.4s ease-out;
}

/* Modern Button Hovers */
.btn-modern {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, color 0.4s ease !important;
    will-change: transform, box-shadow;
    display: inline-flex;
    transform: translateZ(0);
}

.btn-modern:hover {
    transform: translateY(-4px) scale(1.02);
}

.btn-shadow-hover:hover {
    box-shadow: 0 15px 35px -10px rgba(54, 36, 23, 0.25);
}

/* Header Transitions */
#scrolled-header {
    transition: background-color 0.4s ease, transform 0.7s ease;
}

.header-logo-text,
.header-nav a,
.header-menu-btn,
#scrolled-header img {
    transition: all 0.4s ease;
}

/* CardSwap Component */
.swap-card {
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, z-index;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

/* FAQ Expansion */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease-out;
}

.faq-answer>div {
    overflow: hidden;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
}

.faq-item.is-open .ph-plus,
.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

/* Horizontal Scroll Specifics (PC ONLY) */
.execute-section-container {
    height: 500vh;
}

.h-scroll-wrapper {
    width: 100vw;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
}

.h-scroll-container {
    display: flex;
    height: 100%;
    width: 400vw;
    will-change: transform;
}

.h-panel {
    width: 100vw;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.h-img-wrap {
    width: 35vw;
    height: 60vh;
    flex: 0 0 35vw;
    position: relative;
    will-change: transform;
    border-radius: 1rem !important;
    overflow: hidden !important;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Premium Mobile Curtain Menu Animations */
#mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s ease;
    visibility: hidden;
}

#mobile-menu.open {
    transform: translateY(0);
    visibility: visible;
}

.menu-item {
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

#mobile-menu.open .menu-item {
    transform: translateY(0);
    opacity: 1;
}
