body.project02 {
  background: black;
  overflow-x: hidden;
  overflow-y: auto;
}

#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

body.project02::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
  pointer-events: none;
}

body.project02::after,
body.project02 #glitchOverlay {
  display: none !important;
}

#error-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

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

.error-window {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.error-window:active {
  cursor: grabbing;
  opacity: 1;
  z-index: 5;
}

.error-window img {
  display: block;
  max-width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.7));
}

.ghost-error {
  position: absolute;
  opacity: 0.12;
  filter: blur(2px);
}

.ghost-error img {
  display: block;
  max-width: 100%;
  height: auto;
}

main,
.system-status,
nav,
h1,
h2,
p,
.title-container,
.enquiry-container,
.project-gallery,
#scrollTopBtn {
  position: relative;
  z-index: 3;
}

.title-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

#project-video-btn {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.6);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  cursor: pointer;
}

#project-video-btn:hover {
  background: rgba(255,255,255,0.15);
}

.enquiry-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.enquiry-container p {
  flex: 1 1 420px;
  margin: 0;
  line-height: 1.7;
}

.enquiry-video {
  flex: 1 1 500px;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border: 3px solid #000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.project-gallery {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-container {
  position: relative;
  z-index: 21;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.gallery-container img {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 22;
}

.arrow {
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  position: relative;
  z-index: 30;
}

.arrow:hover {
  color: #ff00cc;
  transform: scale(1.1);
}

#scrollTopBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
  background: rgba(0,0,0,0.7);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  cursor: pointer;
  z-index: 10;
}

#scrollTopBtn:hover {
  background: rgba(255,0,204,0.8);
}

@media (max-width: 768px) {
  .title-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .enquiry-container {
    flex-direction: column;
  }

  .enquiry-container p,
  .enquiry-video {
    width: 100%;
    max-width: 100%;
  }

  .project-gallery {
    gap: 0.5rem;
  }

  .gallery-container img {
    max-height: 350px;
  }

  .arrow {
    font-size: 2rem;
  }

  #scrollTopBtn {
    bottom: 1rem;
    right: 1rem;
  }
}

.error-window {
  position: absolute;
  touch-action: none;
  user-select: none;
}

.error-window img {
  pointer-events: none;
  user-select: none;
}