/* Import Sackers Gothic from Local Files */
@font-face {
    font-family: 'Sackers Gothic';
    src: url('Sackers Gothic Light.woff2') format('woff2'),
        url('Sackers Gothic Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Sackers Gothic';
    src: url('Sackers Gothic Medium.woff2') format('woff2'),
        url('Sackers Gothic Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Sackers Gothic';
    src: url('Sackers Gothic Heavy.woff2') format('woff2'),
        url('Sackers Gothic Heavy.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* --- Video Background Styles --- */
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    /* Keeps it behind the UI and noise overlay */

    /* Setup for the JS zoom-in entrance animation */
    transform: scale(1.15);
    transition: transform 2.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Triggered by your GSAP/JS script on load */
.video-wrapper.zoomed-in {
    transform: scale(1);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crucial: Ensures the video fills the screen without stretching */
    pointer-events: none;
    /* Prevents users from accidentally right-clicking or pausing the video */
}

/* Global Reset & Hide Default Cursor */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: auto;
}

body,
html {
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    /* Visible immediately — do not blank the page while assets load */
    visibility: visible;
}

.main-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 1; /* show UI immediately; video can catch up */
}

/* --- Custom Dynamic Cursor --- */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 70px;
    height: 70px;
    background-color: transparent;
    border: 1px solid rgba(17, 17, 17, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(2px);
    will-change: width, height, background-color, border-color, transform, backdrop-filter;
}

.cursor-text {
    font-family: 'Sackers Gothic', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #111;
    transition: color 0.3s ease;
}

.cursor-dot.view-mode {
    width: 90px;
    height: 90px;
    background-color: #111;
    border-color: #111;
    backdrop-filter: blur(0px);
}

.cursor-dot.view-mode .cursor-text {
    color: #FFF;
}

.cursor-dot.click-mode {
    width: 15px;
    height: 15px;
    background-color: #111;
    border-color: #111;
}

@media (hover: none) and (pointer: coarse) {
    .cursor-dot {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- UI OVERLAY --- */
.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 4vh 2vw;
    pointer-events: none;
}

.brand-logo {
    position: absolute;
    top: 5vh;
    left: 0;
    right: 0;
    margin: 0 auto;
    pointer-events: auto;
    width: 100%;
    max-width: 180px;
    display: block;
    opacity: 1;
    z-index: 10;
    mix-blend-mode: difference;
}

.brand-logo img {
    width: 100%;
    height: auto;
    display: block;
    filter: invert(1);
}

.nav-bar {
    pointer-events: auto;
    margin-bottom: 2vh;
    display: flex;
    width: auto;
}

.nav-bar ul {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
}

.nav-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0px;
    opacity: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-item a {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 12px 20px;
    text-decoration: none;
    color: #000;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    text-align: center;
}

.nav-item:hover {
    background-color: #ffffff;
    border-color: #111111;
}

.nav-item:hover a,
.nav-item:hover .BMO-script-logo {
    color: #000000;
}

.special-icon {
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.4);
}

.special-icon a {
    padding: 10px 16px;
}

.BMO-script-logo {
    color: #111;
    font-size: 14px;
    line-height: 1;
    font-family: 'Playball', cursive;
    text-transform: none;
    letter-spacing: normal;
    text-align: center;
    display: inline-block;
    transition: color 0.4s ease;
}

.audio-toggle-container {
    position: absolute;
    bottom: 6vh;
    right: 2vw;
    pointer-events: auto;
}

.audio-toggle {
    padding: 12px 20px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    transition: background 0.4s cubic-bezier(.22, 1, .36, 1), border-color 0.4s cubic-bezier(.22, 1, .36, 1), box-shadow 0.4s cubic-bezier(.22, 1, .36, 1), transform 0.4s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
    display: flex;
    align-items: center;
}

.audio-toggle.active {
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    border-color: white;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.2), 0 15px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

.hover-quote {
    position: fixed;
    width: max-content;
    max-width: 280px;
    padding: 16px 20px;
    background: rgba(70, 70, 70, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.02em;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -100%);
    pointer-events: none;
    z-index: 99999;
    transition: opacity 0.45s, visibility 0.45s;
}

.hover-quote.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-toggle {
    display: none;
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    z-index: 50;
    pointer-events: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.mobile-menu-toggle .bar {
    width: 18px;
    height: 1.5px;
    background-color: #111;
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(230, 225, 220, 0.4);
    backdrop-filter: blur(35px) saturate(140%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 6vh 8vw 4vh 8vw;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu-links {
    list-style: none;
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
    pointer-events: auto;
}

.mobile-menu-links li {
    margin: 2.2vh 0;
    overflow: hidden;
}

.mobile-menu-links a {
    display: inline-block;
    color: #111111;
    text-decoration: none;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 500;
    opacity: 0;
    transform: translateY(100%);
    transition: color 0.3s ease;
}

.mobile-menu-info {
    color: #222222;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    font-weight: 400;
    max-width: 320px;
    margin-bottom: 3vh;
    opacity: 0;
    transform: translateY(15px);
}

.mobile-menu-close {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.mobile-menu-close svg {
    width: 14px;
    height: 14px;
    fill: #111;
}

.brand-logo img {
    filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    transition: filter 0.3s ease;
}

.bulb-glow-ambient {
    animation: bulbHum 4s infinite alternate;
}

@keyframes bulbHum {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(255, 245, 230, 0.4));
    }

    50% {
        opacity: 0.92;
        filter: drop-shadow(0 0 4px rgba(255, 245, 230, 0.2));
    }

    53% {
        opacity: 0.98;
        filter: drop-shadow(0 0 6px rgba(255, 245, 230, 0.35));
    }

    54% {
        opacity: 0.88;
        filter: drop-shadow(0 0 2px rgba(255, 245, 230, 0.1));
    }

    56% {
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(255, 245, 230, 0.4));
    }
}

.nav-item.bulb-glow-ambient a,
.nav-bar .special-icon.bulb-glow-ambient .BMO-script-logo {
    animation: textBulbHum 4s infinite alternate;
}

@keyframes textBulbHum {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(255, 245, 230, 0.5), 0 0 2px rgba(255, 245, 230, 0.3);
    }

    50% {
        opacity: 0.90;
        text-shadow: 0 0 3px rgba(255, 245, 230, 0.2), 0 0 1px rgba(255, 245, 230, 0.1);
    }

    53% {
        opacity: 0.96;
        text-shadow: 0 0 6px rgba(255, 245, 230, 0.4), 0 0 2px rgba(255, 245, 230, 0.2);
    }

    54% {
        opacity: 0.85;
        text-shadow: none;
    }

    56% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(255, 245, 230, 0.5), 0 0 2px rgba(255, 245, 230, 0.3);
    }
}

/* Performance & Animation Optimizations */
.nav-item,
.audio-toggle {
    will-change: transform, backdrop-filter;
}

.mobile-menu-toggle,
.mobile-menu-close {
    will-change: backdrop-filter, transform;
}

.mobile-menu-overlay {
    will-change: opacity, visibility, backdrop-filter;
}

.hover-quote {
    will-change: transform, opacity, backdrop-filter;
    top: 0;
    left: 0;
    /* Reposition for transform-based animation */
    transform: translate(-50%, -100%);
    /* Center and position above cursor */
    transition: opacity 0.45s ease, visibility 0.45s ease;
    /* Removed !important as it should now be the primary transition */
}

/* Mobile Responsive Adjustments */
@media (max-width: 1100px) {
    .ui-overlay {
        padding: 4vh 6vw;
        justify-content: flex-end;
    }

    .brand-logo {
        max-width: 150px;
        top: 4vh;
    }

    .nav-bar {
        display: none !important;
    }

    .hover-quote {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .audio-toggle-container {
        bottom: auto;
        top: 4vh;
        right: 6vw;
        z-index: 110;
    }

    .audio-toggle {
        padding: 8px 14px;
        font-size: 8px;
        border-radius: 0;
    }
}

/* BMO safe fixes: cursor + nav */

/* Custom cursor removed */
.cursor-dot, #cursor-dot, .cursor-text, #cursor-text {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
html, body { cursor: auto !important; }
a, button, .click-target, .hover-view, .nav-item, .magnet-target, .tab-btn, label {
  cursor: pointer !important;
}


/* ===== Header nav redesign ===== */
.nav-bar {
  pointer-events: auto;
  margin-bottom: 2.5vh;
  display: flex;
  width: auto;
}
.nav-bar ul {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
  padding: 6px;
  background: rgba(10, 10, 12, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.nav-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  opacity: 1 !important;
  overflow: hidden;
  transition: background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-item a {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 11px 18px !important;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88) !important;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-1px);
}
.nav-item:hover a,
.nav-item:hover .BMO-script-logo {
  color: #ffffff !important;
}
.nav-item.special-icon {
  background: rgba(196, 165, 116, 0.18) !important;
  border-color: rgba(196, 165, 116, 0.45) !important;
  border-radius: 999px !important;
}
.nav-item.special-icon a { padding: 10px 16px !important; }
.nav-item.special-icon .BMO-script-logo,
.BMO-script-logo {
  color: #e8d5b0 !important;
  font-size: 15px !important;
  font-family: 'Playball', cursive !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
}
.nav-item.special-icon:hover {
  background: #c4a574 !important;
  border-color: #c4a574 !important;
  box-shadow: 0 8px 24px rgba(196, 165, 116, 0.35);
}
.nav-item.special-icon:hover .BMO-script-logo {
  color: #0c0c0c !important;
}
.nav-item:last-child {
  background: #f2efe8 !important;
  border-color: #f2efe8 !important;
}
.nav-item:last-child a {
  color: #0c0c0c !important;
  font-weight: 700 !important;
}
.nav-item:last-child:hover {
  background: #c4a574 !important;
  border-color: #c4a574 !important;
  box-shadow: 0 8px 24px rgba(196, 165, 116, 0.4);
}
.nav-item:last-child:hover a { color: #0c0c0c !important; }
/* light section / dark-mode pills */
.nav-item.dark-mode a { color: rgba(17, 17, 17, 0.8) !important; }
.nav-item.dark-mode:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
.nav-item.dark-mode:hover a,
.nav-item.dark-mode:hover .BMO-script-logo { color: #111 !important; }
.nav-item.dark-mode .BMO-script-logo { color: #111 !important; }
.nav-item.dark-mode.special-icon {
  background: rgba(196, 165, 116, 0.15) !important;
  border-color: rgba(196, 165, 116, 0.4) !important;
}
.nav-item.dark-mode:last-child {
  background: #0c0c0c !important;
  border-color: #0c0c0c !important;
}
.nav-item.dark-mode:last-child a { color: #f2efe8 !important; }
.nav-item.dark-mode:last-child:hover {
  background: #c4a574 !important;
  border-color: #c4a574 !important;
}
.nav-item.dark-mode:last-child:hover a { color: #0c0c0c !important; }
@media (max-width: 980px) {
  .nav-bar ul {
    gap: 4px;
    padding: 4px;
    max-width: 94vw;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-item a {
    padding: 10px 12px !important;
    font-size: 9px !important;
  }
}

/* NO CUSTOM CURSOR — force system pointer */
.cursor-dot,
#cursor-dot,
.cursor-text,
#cursor-text,
.custom-cursor,
#custom-cursor {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}
html, body, body * {
  cursor: auto !important;
}
a, button, [role="button"], .nav-item, .nav-item a, .menu-toggle,
.mobile-menu-toggle, .mobile-menu-close, .tab-btn, .btn, label,
input[type="submit"], .click-target, .hover-view, .magnet-target {
  cursor: pointer !important;
}



/* Mobile tablet 1100 */
@media (max-width: 1100px) {
  .nav-bar { display: none !important; }
  .mobile-menu-toggle { display: flex !important; }
  .hover-quote { display: none !important; }
  .mobile-menu-overlay.is-open .mobile-menu-links a,
  .mobile-menu-overlay.is-open .mobile-menu-info {
    opacity: 1 !important;
    transform: none !important;
  }
}
