* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth; /* Smooth anchor scrolling */
}

body {
    background: #120d0b;
    color: #f0e8e0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    touch-action: manipulation;
}

.safe-top {
    padding-top: env(safe-area-inset-top);
}

.safe-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Grain overlay - subtle */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: .15;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* Hero fade-in animation */
.hero-fade-in {
    animation: heroFade 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-shadow {
    text-shadow: 0 2px 20px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.8);
}

.text-shadow-lg {
    text-shadow: 0 4px 30px rgba(0,0,0,0.7), 0 2px 6px rgba(0,0,0,0.9);
}

.glass-card {
    background: rgba(18, 13, 11, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(240, 232, 224, 0.1);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    will-change: transform, opacity;
}

.glass-list {
    background: rgba(18, 13, 11, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(240, 232, 224, 0.08);
    border-radius: 16px;
    padding: 10px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    will-change: transform, opacity;
}

.glass-frame {
    background: rgba(18, 13, 11, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(240, 232, 224, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    will-change: transform, opacity;
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #b08d6e;
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform .1s;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(176, 141, 110, .5);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width .3s, height .3s, border-color .3s;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: rgba(176, 141, 110, .8);
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
    z-index: 0;
    overflow: hidden;
    background: #120d0b;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* No filter — video stays crisp */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(18, 13, 11, 0.15) 0%, 
        rgba(18, 13, 11, 0.05) 30%,
        rgba(18, 13, 11, 0.05) 70%,
        rgba(18, 13, 11, 0.3) 100%);
    pointer-events: none;
}

.scroll-content {
    position: relative;
    z-index: 10;
}

section {
    scroll-margin-top: 88px;
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}

.nav-link {
    position: relative;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #f0e8e0;
    text-decoration: none;
    padding: 8px 16px;
    transition: color .3s;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    width: 0;
    height: 1px;
    background: #b08d6e;
    transition: width .4s;
}

.nav-link:hover::after {
    width: calc(100% - 32px);
}

.section-label {
    font-size: 11px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: #b08d6e;
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.magnetic-btn {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid rgba(240, 232, 224, .4);
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #f0e8e0;
    background: transparent;
    cursor: pointer;
    transition: background .4s, border-color .4s, color .4s;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.magnetic-btn:hover {
    background: #b08d6e;
    border-color: #b08d6e;
    color: #120d0b;
    text-shadow: none;
}

.menu-item {
    border-bottom: 1px solid rgba(240, 232, 224, .08);
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color .4s;
    will-change: transform, opacity;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    border-color: rgba(176, 141, 110, .5);
}

.menu-item .menu-name {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    transition: transform .4s;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.menu-item:hover .menu-name {
    transform: translateX(12px);
}

.menu-item .menu-desc {
    font-size: 13px;
    color: rgba(240, 232, 224, .8);
    max-width: 250px;
    text-align: right;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    #hero {
        min-height: 100svh;
        padding-left: 20px;
        padding-right: 20px;
    }

    #hero h1 {
        font-size: clamp(2.5rem, 12vw, 4rem) !important;
        line-height: 0.98;
    }

    #hero p {
        max-width: 30ch;
    }

    .menu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .menu-item .menu-desc {
        text-align: left;
        max-width: 100%;
    }
    
    .glass-card {
        padding: 24px;
    }
    
    .glass-list {
        padding: 8px 20px;
    }

    .glass-card, .glass-list {
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
}

@media (hover: none), (pointer: coarse) {
    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    .magnetic-btn {
        transform: none !important;
    }
}

body.mobile-menu-open {
    overflow: hidden;
}

.footer-gradient {
    background: linear-gradient(to top, rgba(18, 13, 11, 0.8) 0%, rgba(18, 13, 11, 0.4) 50%, transparent 100%);
}