/* === 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;}

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 { display: flex; flex-direction: row; flex-wrap: nowrap; white-space: nowrap; will-change: transform; } /* Moving marquee track */
.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; display: flex;flex-direction: column;align-items: center; 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); } }

.mt {position: relative;width: fit-content; margin-top: 100px; color:#000;text-align:center;font-family: 'Black', 'Audemars', 'Darkella', "Inter", sans-serif;font-size:8rem;font-weight:lighter;}
.content-marquee { display: flex;align-items: center; position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width: 100%;height:min-content; overflow: hidden; pointer-events: none; z-index: 1;  background-color: #fff; border: 2px solid #000;}
.content-marquee-track {  display: flex;align-items: center; white-space: nowrap; animation: contentMarquee 40s linear infinite;}
.content-marquee span { font-family: 'Audemars', 'Darkella', "Inter", sans-serif; font-size: 2rem; line-height: 1; 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;} }

/* === 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;}}

/* ================= WORK SECTION ================= */
.work-section { position: relative; width: 100%; padding: 0vh 0vw; display: flex;flex-direction: column;align-items: center; }
.wt {top:-10%;}
@media (max-width: 1000px) {.wt {top:-12%;}}
/* ================= BLOCK ================= */
.block { padding: 1rem 5rem .5rem 5rem; display: flex; justify-content: space-between; align-items: center; width: 100vw; height: fit-content; border-top: 1px solid #000; border-bottom: 1px solid #000; background-color: #fff; } /* Main block row */
/* ================= TITLE & LINK ================= */
.block__title, .block a { position: relative; font-size: 10rem; margin: 0 0 0 0; padding: 0; cursor: pointer; font-family: 'Audemars', 'Darkella', "Inter", sans-serif; font-weight: lighter; color: #000; text-align: center; line-height: 1; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; } /* Heading and links */
/* ================= PLAY LINK ================= */
.PLAY { position: relative; display: inline-block; font-size: 4rem; font-weight: bold; color: #000; text-decoration: none; overflow: hidden; } /* Play button style */
/* ================= TITLE HOVER ================= */
.block__title:hover { color: #000; } /* Maintain title color on hover */
/* ================= TITLE LETTERS ================= */
.block__title span { display: inline-block; white-space: pre; } /* Individual animated characters */
/* ================= UNDERLINE EFFECT ================= */
.block[data-fx="6"] a::after, a.content__text-link[data-fx="6"]::after { content: ''; z-index: -1; width: 100%; bottom: .25rem; left: 0; position: absolute; height: 2px; background: currentColor; transform: scale3d(0,1,1); transform-origin: 100% 50%; transition: transform .7s cubic-bezier(.860,0,.070,1); } /* Animated underline */
a.content__text-link[data-fx="6"]::after { bottom: 0; } /* Text-link underline position */
.block[data-fx="6"] a:hover::after, a.content__text-link[data-fx="6"]:hover::after { transform: scale3d(1,1,1); } /* Reveal underline */
/* ================= HOVER REVEAL ================= */
.hover-reveal { position: fixed; width: 250px; height: 150px; top: 0; left: 0; pointer-events: none; opacity: 0; } /* Floating preview container */
/* ================= HOVER REVEAL INNER ================= */
.hover-reveal__inner, .hover-reveal__img { width: 100%; height: 100%; position: relative; } /* Preview wrappers */
/* ================= HOVER DECORATION ================= */
.hover-reveal__deco { width: 100%; height: 100%; position: absolute; top: 0; left: 0; background-color: #000; } /* Background layer */
/* ================= HOVER IMAGE ================= */
.hover-reveal__img { background-size: cover; background-position: 50% 50%; } /* Preview image */

.visit-btn { display: flex; align-items: center; gap: 12px; padding: 2px 18px; background: transparent; border: 1px solid rgba(0, 0, 0, 0); color: #000; cursor: pointer; position: relative; transition: 0.3s ease; }
.visit-btn:hover { transform: translateY(-2px); }
.text { font-family: 'Audemars', 'Darkella', "Inter", sans-serif; font-size: 3rem; letter-spacing: 1px; }
.arrows { display: flex; gap: 3px; }
.arrow { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid #000; opacity: 0.3; transform-origin: center; animation: pulseArrow 1.2s infinite; }
.arrow:nth-child(2) { animation-delay: 0.15s; }
.arrow:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulseArrow { 0% { opacity: 0.2; transform: translateX(0) scale(1); } 50% { opacity: 1; transform: translateX(4px) scale(1.1); } 100% { opacity: 0.2; transform: translateX(0) scale(1); } }
.visit-btn::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, transparent, Black, transparent); transform: translateX(-120%); transition: 0.6s ease; }
.visit-btn:hover::after { transform: translateX(120%); }

/* ================= DESKTOP LAYOUT ================= */
@media screen and (min-width:53em){
  .block { align-items: center; } /* Center block content */
  .content { position: relative; display: flex; flex-direction: column; justify-content: start; align-items: center; gap: 20px; margin: 0 auto; padding-top: 0vh; min-width: 80vw; height: fit-content; text-align: left; } /* Content wrapper */
}
/* ================= MOBILE HOVER REVEAL ================= */
@media (max-width:1000px){
  .hover-reveal { left: 50% !important; transform: translateX(-50%) !important; top: auto !important; bottom: 20px !important; position: fixed !important; } /* Center preview on mobile */
}
/* ================= SMALL DEVICES ================= */
@media only screen and (max-device-width:1000px){
  .title { font-size: .5rem; } /* Small title */
  .block { flex-direction: column; margin-top: 2vh;} /* Stack block content */
  .block__title { font-size: 5rem; } /* Smaller heading */
  .block a { font-size: 4rem; } /* Smaller link */
  .content { padding-top: 0vh; } /* Reset spacing */
  .text {font-size: 2rem;}
}

/* ================= 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; display: flex;flex-direction: column;align-items: center; text-align: center; max-width: 1200px; } /* Centered content */
.transmission-label { display: inline-block; margin-bottom: 2rem; letter-spacing: 8px; font-size: 2rem; text-decoration: underline;} /* Small label text */
.transmission-content h2 { font-family: 'Black'; font-size: 8rem; line-height:1.4; margin-bottom: 2rem; font-weight: lighter; } /* Main title */
.artzone { position: relative;width:fit-content; display: flex;align-items: center;justify-content: center;text-align: center; margin-bottom: 5rem; color: #000;font-size: 5rem;line-height: 1;  overflow: hidden !important;cursor: pointer;} /* Description text */
.artzone::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, transparent, Black, transparent); transform: translateX(-120%); transition: 0.6s ease; }
.artzone:hover::after { transform: translateX(120%); }

/* ================= 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 */
.artzone  {font-size: 3rem;}
}

/* === 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; mix-blend-mode: difference;}
.footer-tagline { font-size: 3rem; margin-top: 10px; }
.text-draw__box { color: #fff; width: 18%; 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%;}}