 /* Modern Loader Styles */
  #loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #F9F7F3; /* Soft, warm beige to match your header */
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
  }

  .loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Minimalist Logo Animation */
  .modern-spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 24px;
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-top-color: #1A1A1A; /* Charcoal black */
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  /* Typography */
  .loader-brand-name {
    font-size: 1.5rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #1A1A1A;
    margin-bottom: 12px;
    font-weight: 400;
  }

  .loader-brand-name span {
    font-weight: 600;
  }

  .loader-brand-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #6B7280; /* Soft grey */
    margin-bottom: 30px;
  }

  /* Sleek Progress Line */
  .modern-progress-container {
    width: 150px;
    height: 1px;
    background-color: rgba(26, 26, 26, 0.1);
    position: relative;
    overflow: hidden;
  }

  .modern-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #1A1A1A;
    animation: indeterminateProgress 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
  }

  /* Animations */
  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  @keyframes indeterminateProgress {
    0% { left: -35%; right: 100%; width: 35%; }
    60% { left: 100%; right: -90%; width: 90%; }
    100% { left: 100%; right: -90%; width: 90%; }
  }

  /* Add this class via JS when loading is done to fade it out */
  #loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
  }