/* Reset & Base Full-Screen Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #05070f; /* Deep midnight fallback */
    color: rgba(255, 255, 255, 0.78);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    user-select: none;
  }
  
  /* 3D Canvas */
  #webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 1;
  }
  
  /* Fixed UI Overlay (lets clicks pass through except on interactive buttons) */
  .ui-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.5rem, 3.5vw, 2.75rem);
  }
  
  /* Top-Left Title: Cormorant Garamond */
  .site-header {
    display: flex;
    align-items: center;
  }
  
  .site-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(240, 244, 255, 0.68);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  }
  
  /* Bottom-Right Controls: Inter */
  .site-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  
  .ui-button {
    pointer-events: auto;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 0.5rem 1.05rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: rgba(240, 244, 255, 0.65);
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background-color: rgba(8, 12, 24, 0.25);
    transition: color 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
  }
  
  .ui-button:hover,
  .ui-button:focus-visible {
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.32);
    background-color: rgba(14, 20, 38, 0.45);
    outline: none;
  }

  /* Cinematic Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background-color: #05070f;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(240, 244, 255, 0.68);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: opacity 1.5s ease, visibility 1.5s ease;
  }
  
  .loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
  }
  
  /* Mobile & Button Adjustments */
  .site-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
  }
  
  @media (max-width: 600px) {
    .site-footer {
      flex-direction: column;
      align-items: flex-end;
    }
  }