
:root {
  --main-cursor: url('img/cursor.png'), auto;
  --hover-cursor: url('img/cursorhover.png'), pointer;
}
/* ----------------------------------------------------------
   PRELOAD STATE (prevents scroll during loading)
---------------------------------------------------------- */
body.noscroll {
  overflow: hidden;
}
body.noscroll #menu-icon {
  display: none;
}

/* ---------------------.wrapper {
  max-width: 1920px;
  margin: 0 auto;
  width: 100%
-------------------------------------
   GENERAL STABILITY & FLICKER FIXES
---------------------------------------------------------- */
html, body {
  margin: 0;
  padding: 0;
 cursor: var(--main-cursor);
  font-family: 'CreatoDisplay', sans-serif;
  overflow-x: hidden;
  background: #ece6e6;
  backface-visibility: hidden;
}

/* Needed for some video flicker fixes */
body.loaded {
  transform: none; /* remove translateZ(0) — it's hurting fixed elements */
  backface-visibility: hidden;
}

/* ----------------------------------------------------------
   SCROLLBAR HIDE (cross-browser)
---------------------------------------------------------- */

/* Firefox */
html {
  scrollbar-width: none;
}

/* WebKit */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* ----------------------------------------------------------
   REMOVE OVERFLOW: hidden FROM BODY!
---------------------------------------------------------- */
/* Do NOT include this: */
/* overflow: hidden; */


video,
img {
  image-rendering: auto;
  backface-visibility: hidden;
}

/* BIG LOADER */
#bigload {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: #ece6e6;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
   cursor: url('../cursor/darkcursor.cur'), pointer !important;
}

#bigload-logo {
  height: 15vh;
  animation: rotateY 2s infinite ease-in-out;
  transform-style: preserve-3d;
  fill: #2f2e2e;
  color: #2f2e2e;
}

/* Y-axis rotation animation */
@keyframes rotateY {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}




/* LOGO */

#logo {
  position: fixed;
top: clamp(10px, 1.4vw, 20px);
left: clamp(10px, 1.4vw, 20px);
  width: clamp(56px, 2.9vw, 100px); /* 2.9vw ≈ 100px at 3840px width */
  height: clamp(75px, 3.5vw, 135px); /* 3.5vw ≈ 135px at 3840px width */
  z-index: 9999;
  pointer-events: auto;
cursor: var(--hover-cursor) !important;
  fill: #ece6e6;
  color: #e1dcdc;
  will-change: transform;
  filter: none !important;
  transition: fill 0.3s ease, transform 1s ease;
}

#logo path {
  fill: inherit !important;
  transition: fill 0.3s ease;
}

/* Rotation on hover */
#logo:hover {
  transform: rotateY(360deg);
}

#logo.dark {
  fill: #2f2e2e;
}

#logo a, 
#logo [style*="cursor:pointer"] {
  cursor: url('../cursor/cursorhover.cur'), pointer !important;
}



/* Cursors */
a, button, .clickable {
cursor: var(--hover-cursor) !important;
}

a {
  text-decoration: none;
  color: var(--color-link);
  outline: none;
}

a:hover {
  color: var(--color-link-hover);
  outline: none;
}





/* Slides */
.sliders {
  width: 100%;
  overflow: hidden;
}



/* Base slide */
.slide {
  position: relative;
  height: 100%;
  overflow: hidden; /* Consider overflow: visible if you want content to spill */
  z-index:0;
}

.slid2 {
  position: relative;
  min-height: 120vh;
  overflow: visible;
  transform: none !important;
  backface-visibility: hidden;
  will-change: auto;
  contain: layout;
  z-index: auto;
}

.slid4 {
  position: relative;
  height: 100vh;
  overflow: visible;
  transform: none !important;
  backface-visibility: hidden;
  will-change: auto;
  contain: layout;
  z-index: auto;
}

.slid4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* cover = fill the area while keeping aspect ratio */
}

/* Debugging background */
.slide:first-child {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e1dcdc;
}




.centered-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10; /* make sure it's above the background */
}

.centered-overlay img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Parallax Background */
.parallaxbig {
  position: relative;
  height: auto;
  transform: none !important;
  backface-visibility: hidden;
  will-change: auto;
  contain: layout;
  z-index: auto;
  pointer-events: auto;
}

.parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 0;
  pointer-events: none;
}

.parallax-bg video,
.parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slide Content */
.content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  font-size: 2rem;
  color: white;
  text-align: center;
  top: 40vh;
}



/* Horizontal Gallery Container */
.horizontal-gallery {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: black;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-backface-visibility: hidden;
}

/* Track that scrolls horizontally */
.gallery-track {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: max-content;
}

/* Each Level Block */
.level {
 flex: 0 0 auto;
  width: 100vw; /* one panel = 1 viewport width */
  aspect-ratio: 16 / 9; /* or whatever ratio your design is */
  min-width: 500px;
  position: relative;
  background-size: cover;
  background-position: center;
background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 0px;
  box-sizing: border-box;
}

/* Level Title */
.level-title {
  position: absolute;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 60px;
  font-weight: 800;
  top: -20px;
    left: 20px;
  text-align: left;
  text-shadow: 0 4px 10px rgba(0,0,0,0.7);
}

/* Preview Video */
.level-preview {
  width: 500px;
  height: 335px;
  object-fit: cover;
  border: 0px solid white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  margin-bottom: 30px;
}


/* Scrollbar hidden */
.horizontal-gallery::-webkit-scrollbar {
  display: none;
}
.horizontal-gallery {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-track::before,
.gallery-track::after {
  content: "";
  flex: 0 0 30vw; /* 30% of viewport width */
}

.video-overlay-image {
  position: absolute;
  top: 45%; /* adjust for slight overhang at the top */
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 70%;  /* control size */
  height: auto;
  z-index: 2; /* above the video */
  pointer-events: none;
}

.level-preview {
  position: relative;
  z-index: 1;
}

/* Skill Module */

.skills-module {
  position: absolute;
  top: 50%;
  left: 66.66%;
  transform: translateY(-50%);
  width: 350px;
  display: flex;
  flex-direction: column;
  gap: 38px;
  z-index: 9999; /* Ensure it sits above background */
}

.skill-title {
  font-family: 'CreatoDisplay', sans-serif;
  font-weight: 400; /* SemiBold */
  font-size: 11pt;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
  text-indent: 10px;
  letter-spacing: 1px; /* space between letters */
  z-index: 9999; /* Ensure it sits above background */
}

.skill-line {
  position: relative;
  width: 350px;
  height: 1px;
  background-color: white;
opacity:0.6;
  z-index: 9999; /* Ensure it sits above background */
}

.skill-line-fill {
  position: absolute;
  top: 4px;
  left: 0;
  height: 4px;
  background-color: white;
  width: 0;
  transition: width 2s ease-out;
  z-index: 9999; /* Ensure it sits above background */
}


.screen-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82%;
  height: 82%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

/* WITH LINES */


.divider-lines {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  pointer-events: none; /* so they don't interfere with interactions */
  z-index: 1; /* adjust depending on your content */
}

.vline {
  position: absolute;
  top: 0;
  height: 100%;
  width: 1px;
  opacity: 0.5;
  background-color: rgba(255, 255, 255, 0.5);
}

/* Positioning the two dividing lines */
.vline:nth-child(1) {
  left: 30%;
}
.vline:nth-child(2) {
  left: 70%;
}


/* Small Video */
.center-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.film-container {
  width: 50vw;
  aspect-ratio: 16 / 9;
  /* No need for flex here unless you want to center something inside film-container */
    z-index: 9999;
}

.film {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
    z-index: 9999;
}





@keyframes slideIn {
  from {
    transform: translateX(20vw);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}



#slide3 {
  position: relative;
  height: auto; /* or use JS to set it dynamically */
  overflow: hidden;
}


/* Social Icon */
#social-icon {
  position: fixed;
   bottom: clamp(10px, 1.4vw, 20px);
   bottom: clamp(10px, 1.4vw, 20px);
  width: clamp(50px, 2.6vw, 100px);
  height: clamp(50px, 2.6vw, 100px);
  z-index: 99999;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#social-icon img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1); /* makes it white */
  transition: transform 0.2s ease;
}

#social-icon:hover img {
  transform: scale(0.75); /* 40px → 30px (approx) */
}



.center-wrapper {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

/* Shared styles for the container */
.image-module {
  position: relative;
  width: 50vw;
  height: auto;
  pointer-events: auto;
  
  overflow: visible;
  z-index: 1;
}

/* Base image styling */
.base-image {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease, filter 0.6s ease;
  will-change: transform, filter;
  position: relative;
  z-index: 1;
}

/* Hover effect for images only */
.image-module:not(.is-video) .base-image:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Overlay styling */
.overlay-image {
  position: absolute;
  width: 110%;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
cursor: var(--hover-cursor) !important;
  z-index: 2;
}

/* Video styling */
.media-video {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  object-fit: cover;
  pointer-events: none; /* or auto if interaction needed */
}


/* Creation Blocks */

.creations {
  width: 100%;
  padding: 50px 0;
  position: relative;
  z-index: 2;
}

.creation-item {
  width: 64vw;
  margin-bottom: 5vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.creation-video {
  width: 64vw;
    height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: none;
  cursor: url('../cursor/cursorwhite.cur'), pointer !important;


  /* Important for stability */
  position: relative;
  z-index: 5;

  /* Avoid forcing 3D layers */
  transform: translateZ(0);
  will-change: auto;
}

.creation-item.left .minitext {
  text-align: right;
  align-self: flex-end;
}

.creation-item.right .minitext {
  text-align: left;
  align-self: flex-start;
}

.creation-item.left {
  margin-left: 0;
  margin-right: auto;
}

.creation-item.right {
  margin-left: auto;
  margin-right: 0;
}

/* Or on hover */

.minitext {
  font-size: 12px;
  line-height: 13px;
  font-weight: 300;
  color: #1d1d1d;
  transition: none;
  pointer-events: none;
opacity:0.8;
}

/* spacing */
.minitext.top {
  margin-bottom: 20px;
}

.minitext.bottom {
  margin-top: 20px;
}

/* align right regardless of left/right image */

.creation-artwork {
  width: 64vw;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: none;

  /* Important for stability */
  position: relative;
  z-index: 0;

  /* Avoid forcing 3D layers */
  transform: translateZ(0);
  will-change: auto;

  /* Optional: smoother loading for images */
  image-rendering: auto;
  -webkit-user-drag: none;
  user-select: none;
}

/* CREATION LINES */
.creation-guides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  pointer-events: none; /* allows clicks through */
  z-index: 1;
}

.guide-line {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: black;
  opacity: 0.1;
}

.left-line {
  left: 64vw; /* end of left-aligned item */
}

.right-line {
  left: 36vw; /* start of right-aligned item */
}




/* Social Footer */

.social-footer {
  position: absolute;
  bottom: 30px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 1000;
    display: flex;
cursor: var(--hover-cursor) !important;
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
cursor: var(--hover-cursor) !important;
  
}

.hitbox {
  padding: 10px 10px 0 10px; /* bigger clickable zone */
  display: flex;
  align-items: center;
  justify-content: center;
cursor: var(--hover-cursor) !important;
}

.hitbox img {
  height: 1.6vh;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  transform-origin: center center;
cursor: var(--hover-cursor) !important;
}

.hitbox:hover img {
  transform: scale(0.8);
  opacity: 0.6;
cursor: var(--hover-cursor) !important;
}


#page-transition-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ece6e6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  z-index: 99999999999;
}

/* CTA */





/* CTA STYLES */



/* Wrapper */
.cta-wrapper {
left: 36%;
top: 64%;
  width: 282px;
  height: 45px;
  position: absolute;
  background-color: #ebe6e6;
    overflow: hidden;
  border-bottom: 2px solid #2f2f2d;
cursor: var(--hover-cursor) !important;
  font-family: 'Creato Display', sans-serif;
    z-index: 99999999;
}

.cta-wrapperin {
left: 5%;
  width: 282px;
  height: 45px;
  position: relative;
  background-color: #ebe6e6;
    overflow: hidden;
  border-bottom: 2px solid #2f2f2d;
cursor: var(--hover-cursor) !important;
  font-family: 'Creato Display', sans-serif;
    z-index: 99999999;
}

/* Text */
.cta-text {
  position: absolute;
    text-transform: uppercase;
  font-family: 'CreatoDisplay', sans-serif;
  font-weight: 500;
  left: 0px;
  top: 51%;
  transform: translateY(-50%);
  font-size: 13pt;
  color: #2f2f2d;
  z-index: 2;
  transition: all 0.3s ease;
}

/* Arrow image */
.cta-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 16px;
  z-index: 2;
  transition: opacity 0.3s ease;
  color: #2f2f2d;
  pointer-events: none;
}

/* Hover layer (diagonal cover) */
.cta-hover-layer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 250px;
  height: 100%;
  background-color: #2f2f2d;
  transform: skewX(25deg) translateX(-20px);
  transform-origin: top left;
  z-index: 1;
  transition: left 0.3s ease;
  pointer-events: none;
  
}
/* Hover effects */
.cta-wrapper:hover .cta-hover-layer {
  left: -50px; /* ✅ Fix: was missing px */
}

.cta-wrapper:hover .cta-text {
  transform: translateY(-50%) translateX(20px);
  color: #ebe6e6;
}

.cta-wrapper:hover .cta-arrow {
  opacity: 0.5;
}

.cta-hover-layer {
  pointer-events: none;
}
.cta-wrapper:hover .cta-hover-layer {
  left: 0;
}

@media screen and (min-width: 3000px) and (min-height: 1900px) {
  .cta-wrapper {
    transform: scale(2);
    transform-origin: top left;
  }
}

/* === ALTERNATIVE CTA (relative, left: 5%) === */

/* Wrapper */
.cta-alt-wrapper {
  position: relative;      /* relative, not absolute */
  margin-left: 4%;         /* 5% from the left border */
  width: 282px;
  height: 45px;
  background-color: #ebe6e6;
  overflow: hidden;
  border-bottom: 2px solid #2f2f2d;
  cursor: var(--hover-cursor) !important;
  font-family: 'Creato Display', sans-serif;
  z-index: 9999;
}

/* Text */
.cta-alt-text {
  position: absolute;
  text-transform: uppercase;
  font-family: 'CreatoDisplay', sans-serif;
  font-weight: 500;
  left: 0px;
  top: 51%;
  transform: translateY(-50%);
  font-size: 13pt;
  color: #2f2f2d;
  z-index: 2;
  transition: all 0.3s ease;
}

/* Arrow */
.cta-alt-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 16px;
  z-index: 2;
  transition: opacity 0.3s ease;
  color: #2f2f2d;
  pointer-events: none;
}

/* Hover layer */
.cta-alt-hover-layer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 250px;
  height: 100%;
  background-color: #2f2f2d;
  transform: skewX(25deg) translateX(-20px);
  transform-origin: top left;
  z-index: 1;
  transition: left 0.3s ease;
  pointer-events: none;
}

/* Hover effects */
.cta-alt-wrapper:hover .cta-alt-hover-layer {
  left: 0;
}

.cta-alt-wrapper:hover .cta-alt-text {
  transform: translateY(-50%) translateX(20px);
  color: #ebe6e6;
}

.cta-alt-wrapper:hover .cta-alt-arrow {
  opacity: 0.5;
}

.slid2,
.txtsince {
  overflow: visible;
  pointer-events: auto;
}

#logo,
#menu-icon {
  position: fixed;
  z-index: 999999;
  pointer-events: auto;
}

#menu-icon.dark path,
#menu-icon.dark circle {
  fill: #2f2e2e !important;
  stroke: #2f2e2e !important;
}


/* SLIDE HORIZON */

.slide.horizon {
  overflow: hidden;
  position: relative;
}

.slide.horizon .horizontal-gallery {
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  display: flex;
  align-items: center;
  height: 100vh;
  scroll-behavior: smooth;
  pointer-events: auto;
}

.gallery-track {
  display: flex;
  height: 100%;
}

.gallery-track .level {
  scroll-snap-align: center;
}

.slide.horizon {
  cursor: ew-resize;
}
.gallery-track {
  min-width: 500vw;
}
.level {
  border: 2px solid red;
}



/* --------------------------- */
/* SKILLMAP */
/* --------------------------- */

.skillmap {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.skillmap-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.skillmap-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 6000px; /* this will be overwritten by JS to match baseW */
  height: 6000px;
  transform-origin: top left;
}

.skillmap-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.skillmap-arrows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.arrow {
  position: absolute;
  width: 30px;
  height: auto;
}

.arrow-top {
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
}

.arrow-bottom {
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
}

.arrow-left {
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
}

.arrow-right {
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
}


/* --------------------------- */
/* SKILLPOINTS */
/* --------------------------- */

.skillpoints-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 6000px;
  height: 6000px;
  pointer-events: none;
  z-index: 5;
}


.skillpoint {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}


.skillpoint img {
  width: 180px;
  height: 180px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.skillpoint:hover img {
  transform: scale(0.85);
  opacity: 0.5;
}

.skilldescription {
  text-transform: uppercase;
  font-family: 'CreatoDisplay', sans-serif;
  text-align: center;
  font-weight: 600;
  font-size: clamp(30px, 0.6vw, 120px); 
  line-height: clamp(33px, 0.8vw, 132px); 
  color: #ece6e6;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  width: 100%;
  display: block;
}

.skillpoint.active .skilldescription {
  opacity: 1;
}


/* --------------------------- */
/* TRYPTIQUE */
/* --------------------------- */

#triptych {
  position: relative; 
  display: flex;
  justify-content: center;
  width: 100vw;
  box-sizing: border-box;
  gap: 0; /* no space between blocks */
  
z-index:99999999999;
}

.triptych-block {
  width: 30vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
    background-color: #ece6e6; /* ← solid fill behind the image */
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5);
  opacity: 0.6;
  transform: scale(1);
  transition: all 0.5s ease-in-out;
  will-change: filter, opacity, transform;
    gap: 0; /* no space between blocks */
z-index:99999999999;
}

.image-container:hover img {
  filter: saturate(1);
  opacity: 1;
  transform: scale(1.1);
}

.legend {
  margin-top: 1.6vw;
  margin-left: 0px;
  font-family: 'Creato Display', sans-serif;
  color: #2f2e2e;
font-size: clamp(10px, 0.5208vw, 20px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0px;
  text-align: left;
}


/* --------------------------- */
/* MENU ICON */
/* --------------------------- */


#menu-icon {
  position: fixed;
  top: clamp(10px, 1.4vw, 20px);
right: clamp(10px, 1.4vw, 20px);
  width: clamp(56px, 2.9vw, 100px); /* 2.9vw ≈ 100px at 3840px width */
  height: clamp(75px, 3.5vw, 135px); /* 3.5vw ≈ 135px at 3840px width */
  z-index: 999999;
  cursor: pointer;
  cursor: var(--hover-cursor) !important;
  opacity: 1;
}

/* --------------------------- */
/* IMAGE INSIDE ICON */
/* --------------------------- */


#menu-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
    transform-origin: top right;
  cursor: var(--hover-cursor) !important;

  /* ✅ Transform and transition applied here */
  transform: scale(1) rotate(0deg);
 transform-origin: top right; /* ✅ critical fix */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-icon:hover img {
  transform: scale(1); /* no scaling on hover */
  opacity: 0.5;
}


.spacer {
  height: 5vw;       /* vertical space */
  width: 100%;       /* span across the slide */
  background: none;  /* stays transparent */
}



/* --------------------------- */
/* WEAPONERY */
/* --------------------------- */



.slide.weaponery { position: relative; height: 100vh; overflow: hidden; }

/* This takes whatever padding your slide normally has and keeps it. */
.weapon-wrap {
  height: 100%;
  width: 100%;             /* full available width */
  box-sizing: border-box;
  padding-left: var(--slide-pad, 0px);
  padding-right: var(--slide-pad, 0px);
  overflow: hidden;
     cursor: url('../cursor/darkcursor.cur'), pointer !important;
}

.weapon-track {
  display: flex;
  gap: 0;
  height: 100%;
  width: max-content;
    position: relative;
  isolation: isolate;        /* one shared context so z-index works predictably */
}


.weapon {
  flex: 0 0 auto;
  height: 100vh;
  margin: 0;
  padding: 0;
   z-index: auto !important;  /* ⬅️ critical: remove any z-index on panels */
  /* key bits */
  background-size: 100% auto;      /* full width, preserve aspect */
  background-position: left center; /* align the slice’s left edge to the block’s left */
  background-repeat: no-repeat;
    position: relative;
  overflow: visible; /* keeps video clipped inside */
      cursor: url('../cursor/cursorwhite.cur'), pointer !important;
}



/* Assign each background */
.weapon.w1 { background-image: url('../img/weapons/weaponbg_01.webp'); }
.weapon.w2 { background-image: url('../img/weapons/weaponbg_02.webp'); }
.weapon.w3 { background-image: url('../img/weapons/weaponbg_03.webp'); }
.weapon.w4 { background-image: url('../img/weapons/weaponbg_04.webp'); }
.weapon.w5 { background-image: url('../img/weapons/weaponbg_05.webp'); }


.weapon.w6 { background-image: url('../img/weapons/weaponbrand_01.webp'); }
.weapon.w7 { background-image: url('../img/weapons/weaponbrand_02.webp'); }
.weapon.w8 { background-image: url('../img/weapons/weaponbrand_03.webp'); }
.weapon.w9 { background-image: url('../img/weapons/weaponbrand_04.webp'); }
.weapon.w10 { background-image: url('../img/weapons/weaponbrand_05.webp'); }

.weapon.w11 { background-image: url('../img/weapons/weapongame_01.webp'); }
.weapon.w12 { background-image: url('../img/weapons/weapongame_02.webp'); }
.weapon.w13 { background-image: url('../img/weapons/weapongame_03.webp'); }
.weapon.w14 { background-image: url('../img/weapons/weapongame_04.webp'); }
.weapon.w15 { background-image: url('../img/weapons/weapongame_05.webp'); }
.weapon.w16 { background-image: url('../img/weapons/weapongame_06.webp'); }


/* overlay sits above the gallery */
.slide.weaponery { position: relative; } /* you already have this */
.dekutree {
  position: absolute;
  top: 50%;
  left: 0;                     /* stick to left edge */
  transform: translateY(-50%); /* vertically centered */
  width: 100vw;
 height: 100vw;  
  pointer-events: none;
  z-index: 5;
        cursor: url('../cursor/cursorwhite.cur'), pointer !important;
}

.dekutree img {
  display: block;
  width: 100vw;
  height: 100vw;
}

.dekutree-mask {
  clip-path: inset(0 100% 0 0); /* right=100% (hidden), left=0 */
  will-change: clip-path;
}

.slide { position: relative; z-index: 0; }
.slide.weaponery.is-top { z-index: 9999; }

.weapon-obj { 
  z-index: 999999999; 
  pointer-events: none; 
  position: absolute;
      left: 5%;
  top: 22%;
  max-width: 35vw;          /* optional: keep it reasonable; tweak as you like */
  height: auto;
  pointer-events: none;      /* never block scroll/hover */
  will-change: transform;
    transform: translateZ(0);  /* force its own layer (prevents flicker) */
      cursor: url('../cursor/cursorwhite.cur'), pointer !important;
  
}






/* small videos always scale with background */
.weapon-video {
  position: absolute;
  object-fit: cover;
  z-index: 20;           /* above bg, below the .weapon-obj */
  pointer-events: none;
  will-change: transform, width, height, top, left;
      cursor: url('../cursor/cursorwhite.cur'), pointer !important;
}



/* --------------------------- */
/* VINYL */
/* --------------------------- */

:root {
  --vrm-box-width: 28vw;
  --vrm-box-min: 220px;
  --vrm-box-max: 960px;

  --vrm-record-slide: 50%;
  --vrm-spin-duration: 3.5s;
  --vrm-move-duration: 700ms;
  --vrm-move-ease: cubic-bezier(.22,.61,.36,1);
  --vrm-caption-gap: 7vw;

  /* Typography scaling (1920→3840 = 4x) */
  --title-size: clamp(20px, calc(20px + (100vw - 1920px) * 0.01875), 50px);
  --title-line: clamp(22px, calc(22px + (100vw - 1920px) * 0.01875), 54px); /* just a bit taller than font size for close lines */

  /* Body: ~14px @1080p → ~30px @4K */
  --body-size: clamp(14px, calc(14px + (100vw - 1920px) * 0.0109375), 30px);
  --body-line: clamp(16px, calc(16px + (100vw - 1920px) * 0.0109375), 34px);
  --txt-color: #2f2e2e;

  /* Stacking: artwork & line behind record/box, text above */
--vrm-z-art: 1;     /* artwork stays behind record/box */
--vrm-z-line: 0;    /* line now under everything */
--vrm-z-text: 0;    /* caption now under everything */
--vrm-z-record: 2;
--vrm-z-box: 3;

  /* Set via JS at open */
  --vrm-art-width: 0px;
}

/* Safer defaults inside embeds */
.vrm, .vrm * { box-sizing: border-box; }
.vrm img { display: block; max-width: 100%; height: auto; }

/* Module box */
.vrm {
  inline-size: min(max(var(--vrm-box-width), var(--vrm-box-min)), var(--vrm-box-max));
  aspect-ratio: 1 / 1;
  position: relative;
  isolation: isolate;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  /* Strong centering even inside grids/flex/blocks */
  margin-inline: auto;
  place-self: center;
}

/* Stage */
.vrm__stage { position: absolute; inset: 0; overflow: visible; }

/* Artwork panel (behind everything), grows from vinyl center to the right */
/* Artwork panel: fixed full height, revealed by a horizontal mask */
.vrm__artwork {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 85%;
  width: var(--vrm-art-width);      /* set by JS: vinyl center -> viewport right */
  transform: translateY(-50%);      /* vertically centered */
  z-index: var(--vrm-z-art);
  overflow: visible;                 /* mask handles clipping */
  pointer-events: none;

  /* MASK: start fully hidden (right side = 100%) and animate to 0% */
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--vrm-move-duration) var(--vrm-move-ease);
     cursor: url('../cursor/cursorplay.cur'), pointer !important;
}

/* The image stays full height/size; no transforms, no transitions */
.vrm__art-img {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 100%;           /* <-- ensure it reaches the far edge */
  object-fit: cover;
  object-position: left center; /* reverse variant sets this to right center */
  transform: none; 
  transition: none;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.35));
   cursor: url('../cursor/cursorplay.cur'), pointer !important;
}

/* Box art (on top) */
.vrm__box {
  position: absolute; inset: 0;
  z-index: var(--vrm-z-box);
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.45));
  cursor: url('../cursor/cursorplay.cur'), pointer !important;
}

/* Record (centered perfectly) */
.vrm__record-wrap {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--vrm-z-record);
  width: 100%; aspect-ratio: 1 / 1;
  transition: transform var(--vrm-move-duration) var(--vrm-move-ease);
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.55));
  cursor: url('../cursor/cursorplay.cur'), pointer !important;
}
.vrm__record {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  transform-origin: 50% 50%;
  animation: vrm-spin var(--vrm-spin-duration) linear infinite;
  animation-play-state: paused;
  cursor: url('../cursor/cursorplay.cur'), pointer !important;
}
@keyframes vrm-spin { to { rotate: 360deg; } }

/* Thin horizontal line (behind record, above artwork) */
.vrm__line {
  position: absolute;
  top: 50%;
  right: 96%;                    /* grow toward text */
  height: 1px;
  background: rgba(0,0,0,0.4);
  z-index: var(--vrm-z-line);
  transform: translateY(-50%) scaleX(0);
  transform-origin: right center;
  transition: transform var(--vrm-move-duration) var(--vrm-move-ease);
opacity:0.4;
}

/* Caption (to the left of the box, right-aligned) */
.vrm__caption {
  position: absolute; top: 50%; right: 100%;
  transform: translate(120%, -50%);
  z-index: var(--vrm-z-text);
  width: 28vw;
  text-align: right;
  color: var(--txt-color);
  pointer-events: none;
  opacity: 0;
  transition: transform var(--vrm-move-duration) var(--vrm-move-ease), opacity 420ms var(--vrm-move-ease);
}
.vinyltitle {
  font-family: 'Creato Display', sans-serif;
  font-weight: 500; text-transform: uppercase;
  font-size: var(--title-size); line-height: var(--title-line);
  margin: 0;
}
.vinyltitle + .vinyltitle { margin-top: calc(var(--title-line) * 0.6); }
.vinyltxt {
  font-family: 'Creato Display', sans-serif;
  font-weight: 300; text-transform: uppercase;
  font-size: var(--body-size); line-height: var(--body-line);
  margin: calc(var(--body-line) * 0.8) 0 0;
}

/* Open state */
.vrm[aria-expanded="true"] .vrm__record-wrap {
  transform: translate(calc(-50% + var(--vrm-record-slide)), -50%);
}
.vrm[aria-expanded="true"] .vrm__record { animation-play-state: running; }
.vrm[aria-expanded="true"] .vrm__caption {
  transform: translate(calc(-1 * var(--vrm-caption-gap)), -50%);
  opacity: 1;
}
.vrm[aria-expanded="true"] .vrm__line {
  transform: translateY(-50%) scaleX(1);
}
/* Artwork width is set from JS (vinyl center → viewport right) */
/* Open state: purely horizontal reveal */
/* Open state: unmask horizontally (left -> right), no scaling */
.vrm[aria-expanded="true"] .vrm__artwork {
  clip-path: inset(0 0 0 0);
}
/* Make sure no other rule re-adds scaling during open */
.vrm[aria-expanded="true"] .vrm__art-img {
  transform: none !important;
  transition: none !important;
}

/* === REVERSE VARIANT (deploy to LEFT, caption+line to RIGHT) === */

/* Record slides LEFT when open */
.vrm.vrm--reverse[aria-expanded="true"] .vrm__record-wrap {
  transform: translate(calc(-50% - var(--vrm-record-slide)), -50%);
}

/* Caption sits on the RIGHT side; left-aligned text */
.vrm.vrm--reverse .vrm__caption {
  left: 100%; right: auto;
  text-align: left;
  transform: translate(-120%, -50%); /* start hidden */
}
.vrm.vrm--reverse[aria-expanded="true"] .vrm__caption {
  transform: translate(var(--vrm-caption-gap), -50%); /* slide in to the right */
}

/* The thin line grows to the RIGHT side */
.vrm.vrm--reverse .vrm__line {
  left: 100%; right: auto;
  transform-origin: left center;
  transform: translateY(-50%) scaleX(0);
}
.vrm.vrm--reverse[aria-expanded="true"] .vrm__line {
  transform: translateY(-50%) scaleX(1);
}

/* Artwork strip anchored at vinyl center, revealed toward the LEFT via mask */
.vrm.vrm--reverse .vrm__artwork {
  /* same top/left positioning; width set by JS */
  clip-path: inset(0 0 0 100%);                /* hidden from LEFT side */
  transition: clip-path var(--vrm-move-duration) var(--vrm-move-ease);
}
.vrm.vrm--reverse[aria-expanded="true"] .vrm__artwork {
  clip-path: inset(0 0 0 0);                   /* unmask to the left */
}
/* Image shows its RIGHT side first when revealing leftward */
.vrm.vrm--reverse .vrm__art-img {
  object-position: right center;
}

/* Reverse: anchor the artwork so it grows LEFT from the vinyl center */
.vrm.vrm--reverse .vrm__artwork {
  left: 50%;
  transform: translate(-100%, -50%); /* right edge at center, width extends left */
  /* mask: start hidden from the LEFT side and unmask to the left */
  clip-path: inset(0 0 0 100%);
  transition: clip-path var(--vrm-move-duration) var(--vrm-move-ease);
}

/* On open: fully revealed */
.vrm.vrm--reverse[aria-expanded="true"] .vrm__artwork {
  clip-path: inset(0 0 0 0);
}

/* Show the right side of the image first (since we’re revealing leftward) */
.vrm.vrm--reverse .vrm__art-img {
  object-position: right center;
}


/* ===== Exhibition Module ===== */

/* ===== Exhibition Module (multi-instance, module-anchored) ===== */
:root {
  --exhibition-width: 80vw;
  --exhibition-max-h: 86vh;
  --exhibition-fade-ms: 700ms;
  --exhibition-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Vars (arrows kept for compatibility, but we hide them) */
.exhibition {
  --arrow-size: clamp(56px, 4.6vw, 140px);
  --arrow-offset: 2vw;
  --arrow-icon-scale: 52%;
}

/* Container */
.exhibition.exhibition-module {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: visible;
  z-index: 1;
}

/* Stage (80% width visual area) */
.exhibition .exhibition-stage {
  position: relative;
  width: var(--exhibition-width);
  max-width: 2000px;
  aspect-ratio: 16 / 9;
  max-height: var(--exhibition-max-h);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;   /* mask image/bump edges */
  z-index: 1;
  cursor: pointer;    /* <-- user can click to advance */
    cursor: url('../cursor/cursorhover.cur'), pointer !important;
}

/* Remove the center baseline line */
.exhibition.exhibition-module::before { content: none !important; }

/* Crossfade layers */
.exhibition .exhibition-image {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity var(--exhibition-fade-ms) var(--exhibition-ease);
  will-change: opacity;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 1;
     cursor: url('../cursor/cursorhover.cur'), pointer !important;
}
.exhibition .exhibition-image.active { opacity: 1; }

/* Bump overlay (CLIPPED to active image; box sized via JS) */
.exhibition .exhibition-bump {
  position: absolute; /* JS sets left/top/width/height */
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 240ms var(--exhibition-ease);
  overflow: hidden;   /* hard mask */
  --mx: 50%;
  --my: 50%;
  background:
    radial-gradient(
      circle at var(--mx) var(--my),
      rgba(255,255,255,0.25) 0%,
      rgba(255,255,255,0.15) 10%,
      rgba(255,255,255,0.0) 60%
    );
  mix-blend-mode: overlay;
  will-change: opacity, background, left, top, width, height;
}
.exhibition .exhibition-stage:hover .exhibition-bump { opacity: 1; }

/* ---- Arrows: fully hidden (HTML can remain for compatibility) ---- */
.exhibition .exhibition-arrow { display: none !important; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .exhibition .exhibition-image { transition: opacity 0ms linear; }
  .exhibition .exhibition-bump   { transition: none; }
}

/* Interaction call overlay (same sizing as the artworks) */
.exhibition .exhibition-interactcall {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;                 /* matches your images */
  z-index: 90;                          /* above images + bump */
  pointer-events: none;                /* never blocks clicks */
  opacity: 1;
  transition: opacity 300ms var(--exhibition-ease);
}
.exhibition .exhibition-interactcall.is-hidden {
  opacity: 0;
}



.scrolldown {
  position: absolute;
  left: 50%;
  bottom: 15%;              /* a bit higher on the page */
  transform: translateX(-50%);
  pointer-events: none;     /* won’t block clicks */
  z-index: 5;               /* raise if it sits behind content */
}

/* Use a sensible desktop size; 1% can be microscopic on big screens */
.scrolldown img {
  width: clamp(50px, 3.9vw, 150px);
  height: auto;
  animation: scrolldown-bounce 2s infinite ease-in-out;
  will-change: transform;
}

@keyframes scrolldown-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
} /* <-- these two braces were missing */

/* (Optional) respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scrolldown img { animation: none; }
}
/* A wrapper just for this kind of centered video */
.video-wronger {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;  /* horizontal center */
  align-items: center;      /* vertical center */
  position: relative;       /* stays inside the slide */
  z-index: 1;               /* above parallax background if needed */
}

.wronger-video {
  width: 70vw;       /* 70% of viewport width */
  max-height: 70vh;  /* don’t exceed 70% of viewport height */
  object-fit: contain;  /* scale without cropping */
}

/* ===== DEBUG: make it OBVIOUS first ===== */
/* Fullscreen overlay stays fixed; only the background moves */
#reflection-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483647;
  overflow: hidden;
  isolation: isolate;
  /* optional for extra pop */
  /* mix-blend-mode: screen; */
}

#reflection-overlay::before{
  content: "";
  position: absolute;

  left: -30%;
  width: 160%;
  top: -80%;
  height: 260%;

  background: linear-gradient(
    -20deg,
    rgba(255,255,255,0) 36%,
    rgba(255,255,255,0.40) 50%, /* keep band strength; we reduce with opacity below */
    rgba(255,255,255,0) 64%
  );

  -webkit-mask-image: linear-gradient(to right,
    rgba(0,0,0,0) 0%,
    #000 12%,
    #000 88%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(to right,
    rgba(0,0,0,0) 0%,
    #000 12%,
    #000 88%,
    rgba(0,0,0,0) 100%
  );

  transform: translateY(-140%) rotate(-2deg);
  opacity: 0;

  /* period: 8s, slower sweep inside */
  animation: reflection-sheen-vertical 8s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes reflection-sheen-vertical{
  0%         { transform: translateY(-140%) rotate(-2deg); opacity: 0; }
  12%        { opacity: 0.32; }                                           /* softer peak */
  76%        { transform: translateY(140%) rotate(-2deg); opacity: 0.32; }/* ~5.25s sweep (~66% of cycle) */
  86%        { opacity: 0; }                                               /* fade out */
  100%       { transform: translateY(140%) rotate(-2deg); opacity: 0; }
}


/* ===== GRID ===== */


/* ===== Artygrid (no separations) ===== */
.artygrid{
  width:84.9vw;           /* exactly your spec */
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:0;                   /* no gutters */
  grid-auto-flow:row dense;
z-index:9999999999999999999999;
}

/* cells */
.ag-item{
  margin:0;                /* remove figure default margin */
  position:relative;
  grid-column:var(--col)/span var(--span,1);
  grid-row:var(--row)/span 1;
  overflow:hidden;
}

/* make the media fill the cell perfectly (no white lines) */
.ag-media{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; display:block;
  scale:1.01;
  z-index:9999999999999999999999;
    cursor: url('../cursor/cursorwhite.cur'), pointer !important;
}

/* shapes control the row height using aspect-ratio */
.ag-square{ aspect-ratio:1 / 1; }   /* 1x1 */
.ag-rect  { aspect-ratio:2 / 1; }   /* 2 columns wide, 1 row tall */

/* Optional: responsive columns; remove if you want 3 cols everywhere */
@media (min-width: 901px){
  .artygrid{
    width:84vw;       /* was 84.9vw */
    margin:0 0 0 8vw; /* left offset so cuts land at 36vw & 64vw */
  }
}

@media (max-width: 900px){
  .artygrid{ grid-template-columns: repeat(2, minmax(0,1fr)); margin:0 auto; width:92vw; }
}
@media (max-width: 560px){
  .artygrid{ grid-template-columns: 1fr; margin:0 auto; width:92vw; }
}

/* smooth zoom hover effect */
.ag-item {
  overflow: hidden; /* keep zoomed image inside the block */
}

.ag-item .ag-media {
  transition: transform 0.6s ease; /* smooth + slow */
  will-change: transform;          /* hint for performance */
}

.ag-item:hover .ag-media {
  transform: scale(1.05); /* ~5% zoom */
}



/* Make videos behave like your images */
.ag-video{
  width:100%; height:100%;
  object-fit:cover;       /* fills the cell, crops as needed */
  display:block;
}

/* Disable hover zoom on specific cells */
.no-zoom .ag-media{ transform:none !important; }
.ag-item.no-zoom:hover .ag-media{ transform:none !important; }

/* (optional) keep the same reveal animation */
.ag-reveal .ag-video{
  /* same transition as images */
  transition: transform 700ms ease, opacity 700ms ease;
}
/* Diaporama sits behind your UI */
.diaporama {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Each image fills and crossfades */
.diapo-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 800ms ease;
  will-change: opacity;
}

.diapo-item.is-on { opacity: 1; }



/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .diapo-item { transition: none; }
}