/* === BASE & ROOT === */
* {box-sizing: border-box; padding: 0; margin: 0; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none;}
:root { --background-rgb: 0 0 0; --blue-rgb: 0 0 0; --primary-rgb: 50 50 50; }

body, html { width: 100vw; min-height: 100vh; overflow-x: hidden; overflow-y: auto; margin: 0; font-family:'Audemars', 'Darkella', "Inter", sans-serif; color: #000;background-color: transparent; cursor:none;}

a {text-decoration: none;}

@font-face { font-family:'Black'; src:url('./assets/BlackFlag.ttf') format('truetype'); font-display:swap; }
@font-face { font-family:'Flagmen'; src:url('./assets/Flagmen.ttf') format('truetype'); font-display:swap; }
@font-face { font-family: 'Devil'; src: url('./assets/Red\ Devil.otf') format('opentype'); font-display: swap; }
@font-face { font-family:'Darkella'; src:url('./assets/Darkella\ Demo.otf') format('opentype'); font-display:swap; }
@font-face { font-family:'Audemars'; src:url('./assets/JHCAudemars-Medium.otf') format('opentype'); font-display:swap; }

#grid-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.circleII {height: 24px; width: 24px; border-radius: 24px; background-color: black;position: fixed;top: 0; left: 0; pointer-events: none; z-index: 100; /* so that it stays on top of all other elements */} 
@media (max-width: 1000px) {.circleII{display: none;}}

/* ================= MARQUEE CONTAINER ================= */
.marquee-container { position: absolute; display: flex; align-items: center; top: 0; left: 0; z-index: 1; width: 100vw; overflow: hidden; background: transparent; background-color: #fff; /*backdrop-filter: blur(10px);*/ border-bottom: 2px solid #000; transform: translateY(-200px); } /* Main marquee wrapper */
/* ================= MARQUEE CONTENT ================= */
.marquee-content { display: flex; flex-direction: row; flex-wrap: nowrap; white-space: nowrap; will-change: transform; } /* Moving marquee track */
/* ================= MARQUEE ITEMS ================= */
.marquee-content span { display: block; padding: 0 40px; color: black; flex-shrink: 0; } /* Individual marquee item */
.ms {font-size: 4rem;font-family: 'Audemars', 'Darkella', "Inter", sans-serif;font-weight: lighter; text-transform: initial;}
.BF {font-family: 'Black','Audemars', 'Darkella', "Inter", sans-serif; font-size: 3rem; text-transform: initial;}
@media (max-width: 1000px) { .ms {font-size: 3rem;} .BF {font-size: 2rem;} }

/* === MAIN CONTAINER === */
.skull { position: relative; width: 100vw; height: 100vh; z-index: 10; display: flex; align-items: center; justify-content: center; /*cursor: pointer;*/ transform: scale(1.4);}
.skullcen { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); aspect-ratio: 1/1; width: 28%; height: auto; border-radius: 50%; z-index: 3; overflow: hidden;}
.skullcen video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); height: 100%; z-index: 1; pointer-events: none;}
.skullcen img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; z-index: 2; pointer-events: none;}
.VMwrap { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 33%; z-index: 2; pointer-events: none; }
.VMcen { width: 100%; height: auto; transform-origin: 50% 50%; display: block; }
.flameBW { position: absolute; top: 33%; left: 50%; transform: translate(-50%, -50%); width: 5%; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; }
.skullcen:hover ~ .flameBW { opacity: 1; }
@media (max-width: 1000px) {.VMwrap {width: 90%;} .skullcen {width: 70%;}}

/* === MORPH TEXT === */
.circular-text { position: absolute; top: 95%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; pointer-events: none; z-index: 11; display: flex; align-items: center; justify-content: center; opacity: 0; animation: fadeIn 1s ease forwards; }
.morph-text {  opacity: 0; font-family: 'Audemars', 'Darkella', "Inter", sans-serif; font-size: 3rem; font-weight: lighter; text-align: center; color: #000; letter-spacing: 2px; transition: opacity 0.5s ease, transform 0.5s ease; user-select: none; transform: translateY(100px);}
@keyframes fadeIn { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); filter: blur(8px); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); } }

/* === RESPONSIVE SCALING MORPH === */
@media (max-width: 2000px) { .morph-text { font-size: 3rem; } }
@media (max-width: 1000px) { .circular-text { top: 90%; } .morph-text { font-size: 2rem; } }
@media (max-width: 600px) and (max-height: 800px) { .morph-text { font-size: 3rem; } }

.skull,
.morph-text {
  opacity: 0;
}

/* === CONTENT SECTION === */
.content-section { position: relative; width: 100%; padding: 10vh 2vw; background: transparent; z-index: 20; overflow: hidden !important; }
.content-wrapper { max-width: 2000px; margin: 0 auto; color: #000; animation: contentBreath 6s ease-in-out infinite; }
@keyframes contentBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.01); } }

.content-marquee { position: relative; left: 40%; width: 20%; margin-bottom: 100px; overflow: hidden; pointer-events: none; z-index: 1;  background-color: #fff; border: 2px solid #000;}
.content-marquee.top { /*top: 20%; left: -10%;*/ transform: rotate(0deg) translateY(-50%); }
.content-marquee-track { display: inline-block; white-space: nowrap; animation: contentMarquee 40s linear infinite;}
.mt {position:absolute;top:0%;left:50%;transform:translate(-50%,0%);color:#000;text-align:center;font-family: 'Black', 'Audemars', 'Darkella', "Inter", sans-serif;font-size:8rem;font-weight:lighter;}
.content-marquee span { font-family: 'Audemars', 'Darkella', "Inter", sans-serif; font-size: 2rem; color: rgb(0, 0, 0); letter-spacing: 10px; }
@keyframes contentMarquee { from { transform: translateX(0%); } to { transform: translateX(-50%); } }
@media (max-width: 1000px) {.mt{font-size: 4rem;top:2%;} .mtm{top:0.5%;} .content-marquee {width: 50%;left: 25%;}}

/* === INVERSION LENS === */
.inversion-lens{position:relative; /*top:50%;left:50%;transform:translate(-50%,-50%);*/ left: 0; width:100%; height: 88vh; object-fit:cover;overflow:hidden;border:4px solid transparent;box-shadow:0 0 0 2px #fff;backdrop-filter:blur(8px);border-radius:0px;}
.inversion-lens img{display:none; pointer-events: none;}
.story { font-size: 5.5rem; line-height: 1.3; text-align: center; filter:url(#minFilter); color: #000; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; position:absolute;top:50%;left:50%;transform:translate(-50%,-50%); user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -webkit-user-drag: none;}
@media (orientation: portrait) {.rotate-on-portrait {transform: rotate(90deg); transform-origin: center center;}}
@media screen and (max-width:2000px){ .story { font-size: 4.2rem;} .chaos { font-size: 4.8rem; line-height: 1.1; } }
@media screen and (max-width:1500px){ .chaos { font-size: 4.8rem; line-height: .6; } }
@media screen and (max-width:1000px){ .story { font-size: 1.8rem;} .chaos { font-size: 3rem; line-height: .6; } }
@media (max-width: 500px) and (max-height: 800px) { .chaos { font-size: 2.5rem; line-height: .6; } }

/* === CARDS === */
.cards {position:relative;width:100vw; min-height:100vh; overflow-x: hidden !important;}
h1{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;text-align:center;font-size:5vw;font-weight:lighter;line-height:100%;}
.card{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:20vw;aspect-ratio: 1/1.5;height:auto;perspective:1000px;}
.card p{color:#000;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;font-size:3rem;font-weight:500;font-family: 'Black','Audemars', 'Darkella', "Inter", sans-serif; }
.card-wrapper{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;animation:floating 3s infinite ease-in-out;}
#card-1 .card-wrapper{animation-delay:0;}
#card-2 .card-wrapper{animation-delay:.2s;}
#card-3 .card-wrapper{animation-delay:.4s;}
#card-4 .card-wrapper{animation-delay:.6s;}
.flip-card-inner{position:relative;width:100%;height:100%;transform-style:preserve-3d;}
.flip-card-front,.flip-card-back{position:absolute;width:100%;height:100%;backface-visibility:hidden;border:1px solid #fff;border-radius:0em;overflow:hidden;}
.flip-card-front img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%); pointer-events:none; height: 100%;}
.flip-card-back{background-color:#000;transform:rotateY(180deg);overflow:hidden;}
.fcbttl {position:absolute;width:96%;height:88%;top:46%;left:50%;transform:translate(-50%,-50%);background-color:#fff;padding:1em;}
.flip-card-back span {color:#fff;text-align: left;font-size: 1.5rem;letter-spacing: 2px;text-transform: uppercase; position:absolute;width:96%;height:10%;top:98%;left:50%;transform:translate(-50%,-50%);}
@keyframes floating{0%{transform:translate(-50%,-50%);}50%{transform:translate(-50%,-60%);}100%{transform:translate(-50%,-50%);}}
html.lenis,html.lenis body{height:auto;}
.lenis.lenis-smooth{scroll-behavior:auto!important;}
.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain;}
.lenis.lenis-stopped{overflow:hidden;}
.lenis.lenis-smooth iframe{pointer-events:none;}
@media (max-width: 1000px) {.card{width:20vw;aspect-ratio: 1/5;} .card p {font-size: 1rem;} .flip-card-back span {font-size: 1rem;}}

/* ================= ARCHIVE ================= */
.archive-section { position: relative; width: 100%; padding: 0vh 0vw; } /* Archive section wrapper */
.archive-grid { display: flex; flex-direction: column; gap: 2rem; margin-top: 8rem; } /* Archive entries layout */
.archive-entry { display: flex; justify-content: space-between; align-items: flex-start; border: 1px solid rgb(0, 0, 0); padding: 3rem 0; transition: 0.4s ease; backdrop-filter: blur(8px); } /* Single archive item */
.archive-entry:hover { transform: translateX(20px); } /* Hover movement */
.archive-index { font-size: 1rem; letter-spacing: 4px; color: #000; } /* Entry number */
.archive-content { width: 70%; } /* Content container */
.archive-content h2 { font-family: 'Black'; font-size: 5rem; margin-bottom: 1rem; font-weight: lighter; } /* Archive title */
.archive-content p { font-size: 1.5rem; line-height: 1.5; max-width: 900px; } /* Archive description */


/* ================= TRANSMISSION ================= */
.transmission-section { position: relative; width: 100%; min-height: 80vh; overflow: hidden; padding: 0vh 0vw; display: flex; align-items: center; justify-content: center; } /* Main transmission section */
.transmission-overlay { position: absolute; inset: 0; } /* Overlay layer */
.transmission-content { position: relative; z-index: 2; text-align: center; max-width: 1200px; } /* Centered content */
.transmission-label { display: inline-block; margin-bottom: 2rem; letter-spacing: 8px; font-size: 1rem; } /* Small label text */
.transmission-content h2 { font-family: 'Black'; font-size: 8rem; line-height: 0.95; margin-bottom: 2rem; font-weight: lighter; } /* Main title */
.transmission-content p { font-size: 1.5rem; line-height: 1.6; } /* Description text */

/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {
.archive-entry { flex-direction: column; gap: 2rem; } /* Stack archive content */
.archive-content { width: 100%; } /* Full width content */
.archive-content h2 { font-size: 3rem; } /* Smaller archive title */
.transmission-content h2 { font-size: 4rem; } /* Smaller transmission title */
.manifest-grid { grid-template-columns: 1fr; } /* Single column cards */
}

/* === FOOTER === */
.footer { position: relative; padding: 2vh 5vw; color: #fff; overflow: hidden; background-color: #000; /*background: linear-gradient(to bottom,rgba(0,0,0,0) 0%,rgba(0,0,0,0.4) 20%,rgba(0,0,0,0.6) 40%,rgba(0,0,0,0.8) 60%,rgba(0,0,0,1) 100%);*/}
/*.footer video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; z-index: 0; pointer-events: none;}*/
.footer-marquee { position: absolute; width: 300%; top: 0%; left: -50%; transform: translateY(-50%) rotate(-10deg); z-index: 1; pointer-events: none; }
.footer-marquee-track { white-space: nowrap; animation: footerMarquee 60s linear infinite; }
.footer-marquee span { font-family: 'Black', 'Nortune', 'American'; font-size: 10rem; color: rgba(255, 255, 255, 0.15); letter-spacing: 10px; }
@keyframes footerMarquee { from { transform: translateX(0%); } to { transform: translateX(-50%); } }
.footer-content { position: relative; z-index: 2; display: flex; justify-content: space-evenly; align-items: center; gap: 4rem; flex-wrap: wrap; animation: footerBreath 6s ease-in-out infinite; /*mix-blend-mode: screen;*/}
/*.footer-logo { font-family: 'Black', 'Nortune', 'American'; font-size: 10rem; letter-spacing: 10px; }*/
.footer-left {width: 50%; mix-blend-mode: lighten;}
.motorlivered {width: 50%; height: auto; z-index: 4;}
.footer-tagline { font-size: 3rem; margin-top: 10px; }
.text-draw__box { color: #fff; width: 22%; height: .625em; position: relative; }
.text-draw__box-svg { width: 100%; height: 100%; position: absolute; overflow: visible !important; }
/*
.footer-center { display: flex; flex-direction: column; gap: 0px; }
.footer-center a { text-decoration: none; color: #fff; font-family: 'Nortune', 'American'; font-size: 8rem; line-height: 1; transition: 0.3s; cursor: pointer;}
.footer-center a:hover { transform: translateX(10px); color: #fff; }
*/
.footer-socials { display: flex;justify-content: space-between;align-items: center; gap: 1rem; font-size: 3rem; }
.footer-socials i { cursor: pointer; transition: 0.3s; color: #fff;}
.footer-socials i:hover { transform: scale(1.2) rotate(10deg); color: #fff; }
.footer-copy { font-size: 2.5rem; margin-top: 10px; }
@keyframes footerBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@media (max-width: 2000px) {.text-draw__box {width: 30%;}}
@media (max-width: 1000px) { .footer-marquee { top: 20%} .footer-left {width: 100%;}.footer-tagline { font-size: 2rem;}.motorlivered {width: 80%;filter: drop-shadow(0 0 1px #fff);} .footer-center { width: 100%; text-align: center; }.footer-center a {font-size: 4rem;} .footer-right {width: 100%;}.footer-socials {justify-content: space-evenly;gap: 0;} .footer-copy {text-align: center;}}
@media (max-width: 600px) and (max-height: 800px) {.footer-center a {font-size: 3.3rem;}}


/* === LOADER CSS === */
.loading { display: flex; align-items: center; justify-content: center; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 110; background: #000; opacity: 0; transition: 0.5s; }
.before-load .loading { opacity: 1; }
.load-counter { position: absolute;bottom: 0;left: 0;width: 100%; /* ✅ full width */ display: flex;justify-content: center;gap: 10px; /* ✅ true centering */ font-family: 'Audemars', 'Darkella', "Inter", sans-serif; font-size: clamp(9rem, 15vw, 18rem); font-weight: lighter; color: #fff;text-shadow: 0 0 0.02em #fff; letter-spacing: 10px;text-align: center; z-index: 50;pointer-events: none; }
@media (max-width: 2000px) { .load-counter{font-size: 15vw;}}
@media (max-width: 1000px) { .load-counter{font-size: 10rem;bottom:20%;}}