/* --- HIDE ALL MODULE SCROLLBARS (Isolated to Scope Container) --- */
#visual-universe-diorama-container,
#visual-universe-info-section,
#visual-universe-diorama-container *,
#visual-universe-info-section * {
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

#visual-universe-diorama-container::-webkit-scrollbar, 
#visual-universe-info-section::-webkit-scrollbar,
#visual-universe-diorama-container *::-webkit-scrollbar,
#visual-universe-info-section *::-webkit-scrollbar {
  display: none; 
}

/* --- THE 3D WINDOW --- */
#visual-universe-diorama-container {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 120vh;
  overflow: hidden;
  background-color: #1a221d;
  z-index: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #e0e5df;
}

/* --- SCENE & LAYER SETTINGS --- */
.visual-universe-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.visual-universe-scene.visual-universe-active {
  opacity: 1;
  pointer-events: auto;
}

.visual-universe-layer {
  position: absolute;
  top: -2%;
  left: -2.5%;
  width: 105%;
  height: 105%;
  object-fit: cover;
  object-position: center 30%;
}

.visual-universe-z-bg    { z-index: 1; }
.visual-universe-z-mid   { z-index: 2; }
.visual-universe-z-front { z-index: 3; }

/* --- DASHBOARD FOOTER --- */
#visual-universe-dashboard-footer {
  position: relative;
  z-index: 10;
  margin-top: -25vh;
  padding: 30px 50px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  background-color: #5b6f63 !important; /* Block master site bleed */
}

.visual-universe-footer-header {
  margin-bottom: 15px;
}

.visual-universe-footer-header h2 {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
  letter-spacing: 1px;
  font-weight: 600;
  color: #ffffff;
}

.visual-universe-footer-header p {
  margin: 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.visual-universe-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 0 25px 0;
}

/* --- THE NAVIGATION BUTTONS --- */
.visual-universe-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.visual-universe-nav-item {
  flex: 1;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08); 
  padding: 30px 10px; 
  min-height: 180px;  
  display: flex;
  flex-direction: column;
  align-items: center;  
  justify-content: center; 
  text-align: center;
  cursor: pointer;
  transition: background 0.3s, opacity 0.3s;
  opacity: 0.6; 
}

.visual-universe-nav-item:last-child {
  border-right: none; 
}

.visual-universe-nav-item:hover, 
.visual-universe-nav-item.visual-universe-active-btn {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}

.visual-universe-nav-item .visual-universe-icon {
  font-size: 3.8rem; 
  font-weight: 100;  
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1;
}

.visual-universe-nav-item .visual-universe-title {
  font-size: 0.75rem;
  font-weight: 400; 
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px; 
  margin-bottom: 8px;
}

.visual-universe-nav-item .visual-universe-subtitle {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* --- INFORMATION SECTION --- */
#visual-universe-info-section {
  position: relative;
  z-index: 10;
  width: 100%;
  background-color: #2c3831; 
  padding: 50px;
  box-sizing: border-box;
  flex-grow: 1; 
  flex-shrink: 0;
}

.visual-universe-info-panel {
  display: none; 
  animation: visualUniverseFadeUp 0.5s ease-out forwards;
}

.visual-universe-info-panel.visual-universe-active {
  display: block; 
}

.visual-universe-info-panel h3 {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 1.5px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.visual-universe-info-panel p {
  font-size: 0.9rem;
  line-height: 1.8;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  max-width: 800px;
  margin: 0;
}

@keyframes visualUniverseFadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- YOUTUBE POPUP BUTTON CONFIGURATION --- */
.visual-universe-video-trigger-zone {
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto !important;
}

.visual-universe-youtube-trigger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 85px;
  transform: translateY(-290%) !important; 
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.visual-universe-youtube-trigger-btn:hover {
  transform: translateY(-290%) scale(1.2) !important; 
  filter: drop-shadow(0 12px 25px rgba(255, 0, 0, 0.25));
}

.visual-universe-youtube-svg-icon {
  width: 100%;
  height: 100%;
  fill: #DBBC8B; 
  transition: fill 0.3s ease;
}

.visual-universe-youtube-trigger-btn:hover .visual-universe-youtube-svg-icon {
  fill: #92B0A4; 
}

/* --- MODAL WINDOW ARCHITECTURE --- */
#visual-universe-video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 15, 12, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

#visual-universe-video-modal-overlay.visual-universe-modal-open {
  opacity: 1;
  pointer-events: auto;
}

.visual-universe-modal-window {
  position: relative;
  width: 90%;
  max-width: 1200px;
  background: #1a221d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  padding: 5px;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

#visual-universe-video-modal-overlay.visual-universe-modal-open .visual-universe-modal-window {
  transform: scale(1);
}

.visual-universe-modal-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #e0e5df;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.visual-universe-modal-close-btn:hover {
  color: #EADCB5;
}

.visual-universe-video-responsive-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
}

.visual-universe-video-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- AUTO-ADAPTING MAGAZINE EDITORIAL SECTIONS --- */
.visual-universe-editorial-magazine-layout {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 25px;
}

/* Row 1 Grid: Forces the image cleanly to the RIGHT SIDE */
.visual-universe-editorial-row.visual-universe-text-image-split {
  display: flex;
  flex-direction: row;
  gap: 50px;
  align-items: center; 
  width: 100%;
}

.visual-universe-editorial-paragraph {
  font-size: 0.95rem;
  line-height: 1.85;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  text-align: justify;
  margin: 0;
  flex: 1 1 auto; 
}

.visual-universe-editorial-paragraph.visual-universe-lead-text {
  font-size: 1.25rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
}

.visual-universe-drop-cap {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 4.2rem;
  float: left;
  line-height: 0.75;
  padding-top: 8px;
  padding-right: 12px;
  padding-left: 2px;
  color: #ffffff;
  font-weight: bold;
}

/* Universal Crystalline Photo Framing Block */
.visual-universe-magazine-image-frame {
  background: #1a221d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  flex: 0 0 42%; 
  max-width: 45%;
  height: auto; 
}

/* Column Wrapper for the second image */
.visual-universe-editorial-col.visual-universe-img-col-center {
  flex: 0 0 42%;
  max-width: 45%;
  height: auto;
}

/* FIXED MASTER OVERRIDE: Prevent inner image frame from compounding percentage limits when nested */
.visual-universe-editorial-col.visual-universe-img-col-center .visual-universe-magazine-image-frame {
  flex: 1 1 100% !important;
  max-width: 100% !important;
}

.visual-universe-magazine-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10; 
  object-fit: cover; 
  filter: grayscale(15%) contrast(105%);
  opacity: 0.85;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.visual-universe-magazine-image-frame:hover .visual-universe-magazine-img {
  opacity: 1;
  filter: grayscale(0%) contrast(100%);
}

.visual-universe-image-caption {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 6px;
}

/* Row 2 Grid: Forces the middle illustration container directly to the LEFT SIDE */
.visual-universe-editorial-grid-three-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 50px;
  align-items: center;
}

.visual-universe-editorial-col {
  display: flex;
  flex-direction: column;
}

/* Layout Engine Remapping: Shifts column indices cleanly */
.visual-universe-editorial-grid-three-col > :nth-child(2) {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.visual-universe-editorial-grid-three-col > :nth-child(1) {
  grid-column: 2;
  grid-row: 1;
}
.visual-universe-editorial-grid-three-col > :nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

/* =========================================
   RESPONSIVE DESIGN INTERFACE HOOKS
   ========================================= */
@media (min-width: 769px) {
  .visual-universe-info-panel {
    max-width: 76% !important; 
    margin: 0 auto !important;
  }

  /* Swaps image layout side for row index 3 dynamically to alternate left/right */
  .visual-universe-editorial-magazine-layout .visual-universe-editorial-row.visual-universe-text-image-split:has(.visual-universe-magazine-image-frame):nth-of-type(3),
  .visual-universe-editorial-magazine-layout .visual-universe-editorial-row.visual-universe-text-image-split:has(.visual-universe-editorial-col):nth-of-type(3) {
    flex-direction: row-reverse;
  }
}

@media (max-width: 1024px) {
  .visual-universe-info-panel {
    max-width: 100% !important;
    margin: 0 !important;
  }
}

@media (max-width: 768px) {
  .visual-universe-footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 0; 
    margin-top: 20px;
  }

  .visual-universe-nav-item {
    padding: 25px 10px;
    min-height: 140px;
    border-right: 1px solid rgba(255, 255, 255, 0.08); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
  }
    
  .visual-universe-nav-item:nth-child(even) {
    border-right: none; 
  }
  
  .visual-universe-nav-item:nth-last-child(-n+2) {
    border-bottom: none; 
  }

  .visual-universe-nav-item .visual-universe-icon {
    font-size: 3.2rem; 
  }

  .visual-universe-nav-item .visual-universe-subtitle {
    display: block; 
  }

  #visual-universe-diorama-container {
    height: 90vh;
  }
  
  #visual-universe-dashboard-footer {
    margin-top: -25vh;
    height: auto;
    min-height: 60vh;
    padding: 20px;
    justify-content: flex-start;
    background-color: #5b6f63 !important; 
  }    

  .visual-universe-youtube-trigger-btn {
    width: 65px;
    height: 46px;
    transform: translateY(-210%) !important;
  }

  .visual-universe-youtube-trigger-btn:hover {
    transform: translateY(-210%) scale(1.15) !important;
  }

  .visual-universe-modal-close-btn {
    top: -40px;
    right: 10px;
  }

  .visual-universe-editorial-row.visual-universe-text-image-split {
    flex-direction: column !important;
    gap: 30px;
  }

  .visual-universe-magazine-image-frame,
  .visual-universe-editorial-col.visual-universe-img-col-center {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .visual-universe-editorial-grid-three-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .visual-universe-editorial-grid-three-col > :nth-child(1),
  .visual-universe-editorial-grid-three-col > :nth-child(2),
  .visual-universe-editorial-grid-three-col > :nth-child(3) {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .visual-universe-editorial-paragraph {
    text-align: left;
  }
}