    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    #mobile-blocker {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100dvw;
      height: 100dvh;
      background-color: #000;
      z-index: 9999;
      color: white;
      /*font-family: sans-serif;*/
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }
    
    #mobile-blocker.active {
      display: flex;
      flex-direction: column;
    }
    
    .mobile-content img.sad-sun {
      max-width: 150px;
      margin-bottom: 20px;
    }
    
    
    
    .mobile-blocker-content {
      padding: 2em;
    }
    /*
    @media (max-width: 600px), (max-height: 600px) {
      #mobile-blocker {
        display: block;
      }
    
      #app-container {
        display: none;
      }
    }
    */

    html, body {
      height: 100dvh;
      width: 100%;
      max-width: 100dvw;
      font-family: "Bungee Hairline", sans-serif;
      overflow:hidden;
      margin: 0;
      padding: 0;
      background-color: black;
    
    }

    .stars {
      z-index: 0; position: absolute; /* width: 420em; height: 70em; */
      background-image: url( images/hori.png ), url( images/stars_5.png ); background-repeat: repeat-x,repeat-x repeat-y;
      transform:translate3D(0em, 0em, 0); animation: stars 21s ease; transform-style: preserve-3d;
    }

    #app-container {
      display: flex;
      flex-direction: column;
      height: 100dvh;
    }

    /* --------------- Top 75% --------------- */


    #main-content {
      position: relative;
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }

    #polling-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    pointer-events: none;
  }

  #polling-overlay img {
    width: 180px;
    opacity: 0.8;
    filter: drop-shadow(0 0 20px gold);
  }

  /****************** NAVIGATION BAR ******************/
  

    #navbar {
      height: 100px;
      color: white;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      padding: 0 20px;
      position: relative;
      column-gap: 20px;

    }
    
    .nav-side {
      display: flex;
      align-items: center;
      gap: 50px;
    }
    
    .nav-left {
      justify-self: start;
      padding-left: 90px;
    }
    
    .nav-right {
      justify-self: end;
      padding-right: 90px;
    }
    
    #nav-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
      text-align: center;
    }
    
    #nav-title {
      font-weight: bold;
      font-size: min(4vw, 50px);
      line-height: 1;
    }
    
    #nav-tagline {
      margin-top: 6px;
      font-size: min(1.2vw, 15px);
      opacity: 0.8;
      letter-spacing: 2px;
      text-transform: uppercase;
      font-weight: bolder;
    }
   

  .nav-icon,
#email-trigger {
  height: 40px;
  width: auto;
  display: block;
  cursor: pointer;
}

#email-trigger-container {
  display: flex;
  align-items: center;
}

/* Overlay */
#email-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.email-overlay-hidden {
  display: none !important;
}

/* Popup box */
#email-box {
  width: min(90vw, 520px);
  background: rgba(20, 24, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 30px 28px 24px;
  box-shadow:
    0 0 28px rgba(255, 170, 50, 0.10),
    0 18px 45px rgba(0, 0, 0, 0.45);
  animation: emailFadeIn 0.28s ease;
}

@keyframes emailFadeIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#email-box h3 {
  margin: 0 0 20px 0;
  text-align: center;
  font-family: "Bungee Hairline", sans-serif;
  font-size: 1rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #ffffff;
}

/* Form layout */
#email-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#email-box input,
#email-box textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#email-box textarea {
  min-height: 150px;
  resize: vertical;
}

#email-box input::placeholder,
#email-box textarea::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

#email-box input:focus,
#email-box textarea:focus {
  border-color: rgba(80, 200, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(80, 200, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.email-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.email-buttons button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #35cfff;
  border-radius: 12px;
  padding: 10px 16px;
  font-family: "Bungee Hairline", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.email-buttons button:hover {
  background: rgba(53, 207, 255, 0.12);
  border-color: rgba(53, 207, 255, 0.45);
  transform: translateY(-1px);
}

.email-buttons button:active {
  transform: translateY(0);
}

.human-check {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.human-check label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  color: #ffffff;
}

.email-error {
  min-height: 20px;
  color: #ff8f8f;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  line-height: 1.4;
}

.required { color: #ff6b6b; }
    

@keyframes pulse-orange {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 168, 38, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(249, 168, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 168, 38, 0);
  }
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(57, 255, 20, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0);
  }
}

    .pulse-glow {
      animation: pulse 2s infinite;
      border-radius: 50%;
      box-shadow: 0 0 0 rgba(255, 255, 255, 0.7);
    }

    .pulse-glow-box {
      animation: pulse 2s infinite;
      box-shadow: 0 0 0 rgba(255, 255, 255, 0.7);
    }
    
    @keyframes pulse {
      0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
      }
      70% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
      }
      100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
      }
    }
    
 
  /****************** MAIN SECTION ******************/
    #main-panels {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    #panel-wrapper {
      display: flex;
      flex: 1;
      gap: 10px;
      height: 65dvh;
      justify-content: center;
      align-items: center;
      padding-bottom: 60px;
      padding-left: 100px;
      padding-right: 100px;

    }

        .column {
        flex: 1;
        border-radius: 8px;
        padding: 10px;
        justify-content: center;
  align-items: center;
    }

        .panel-label {
       padding: 6px 10px;
        border: 1px solid #ccc;
        border-bottom: none;
        border-radius: 8px 8px 0 0;
        background-color: #2e3440 !important;
        color: #f9a826;
        border-color: #3c3f46;
        font-size: 9px;
        letter-spacing: 1px;
        text-align: center;
    }

    .tab-btn-about-container {
      display: flex;            /* Changed from inline-flex to fill parent width */
      justify-content: center;  /* Aligns children along the main axis (horizontal) */
      align-items: center;      /* Aligns children along the cross axis (vertical) */
      gap: 8px;
      margin-left: 0;           /* Removed the 20px offset to ensure true centering */
      vertical-align: middle;
    }
    
    .tab-btn-about {
      background-color: #3c3f46;
      color: #00D1FF; /* cyan or futuristic blue*/
      border: 1px solid #555;
      padding: 4px 10px;
      font-size: 18px;
      font-weight: bolder;
      font-family: "Bungee Hairline", sans-serif;
      border-radius: 4px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
    
    .tab-btn-about:hover {
      background-color: #555;
    }
    
    .tab-btn-about.active {
      background-color: #00D1FF; /* cyan or futuristic blue*/
      color: #1f2329; 
    }

.tab-btn-works-container {
  display: flex;            /* Changed from inline-flex to fill parent width */
  justify-content: center;  /* Aligns children along the main axis (horizontal) */
  align-items: center;      /* Aligns children along the cross axis (vertical) */
  gap: 8px;
  margin-left: 0;           /* Removed the 20px offset to ensure true centering */
  vertical-align: middle;
}

.tab-btn-works {
  background-color: #3c3f46;
  color: #00D1FF; /* cyan or futuristic blue*/
  border: 1px solid #555;
  padding: 4px 10px;
  font-size: 18px;
  font-weight: bolder;
  font-family: "Bungee Hairline", sans-serif;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tab-btn-works:hover {
  background-color: #555;
}

.tab-btn-works.active {
  background-color: #00D1FF; /* cyan or futuristic blue*/
  color: #1f2329; 
}


    .panel {
        justify-content: center;
  align-items: center;
        color: #ffffff;
      box-sizing: border-box;
      object-fit: contain;

    }

    .container {
      position: relative;
      
    }


    #panelBackgroundImage {

      max-width: 100%;
        object-fit: contain;
        display: block;
        margin: 0 auto;
        box-shadow: 0 0 12px rgba(249, 168, 38, 0.3);
        border-radius: 6px;
    }


.backgroundOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  padding: 0;               /* Set to 0 to allow PDF to fill the edges */
  z-index: 10;
  pointer-events: auto;
  border-radius: 8px;
  margin: 0;
  overflow: hidden;         /* Prevents double scrollbars */
}

.backgroundOverlay embed {
  display: block;           /* Removes inline spacing */
  width: 100%;
  height: 100%;
  border-radius: 8px;       /* Match the container's rounding */
}

    .backgroundOverlay::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }

    .backgroundOverlay::-webkit-scrollbar-thumb {
      background: #888;
      border-radius: 6px;
    }

    .video-placeholder2 video {
        flex: 1;
        max-width: 100%;
        max-height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
        box-shadow: 0 0 12px rgba(249, 168, 38, 0.3);
        border-radius: 6px;
    }

    #controls {
      margin-top: 10px;
      flex-shrink: 0;
      text-align: center;
      padding: 10px;
    }
    #controls button {
        padding: 6px 12px;
        font-size: 14px;
        background-color: #f9a826;
        color: #000;
        border: none;
        border-radius: 5px;
        transition: 0.3s;
        margin-right: 10px;
    }
    #controls button:hover {
        background-color: #ffc733;
    }


/* =========================================================
   600 x 600 responsive layout
   ========================================================= */

/* stop blocking mobile */
@media (max-width: 600px) and (max-height: 600px),
       (max-width: 600px) {
  #mobile-blocker {
    display: none !important;
  }

  #app-container {
    display: flex !important;
    height: auto;
    min-height: 100dvh;
  }

  html,
  body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100dvh;
  }

  .stars {
    position: relative;
    min-height: 100dvh;
  }

  /* ---------------- NAVBAR ---------------- */
  #navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    height: auto;
    padding: 18px 16px 10px;
  }

  .nav-side {
    gap: 14px;
  }

  .nav-left,
  .nav-right {
    padding: 0;
  }

  .nav-left {
    order: 1;
  }

  .nav-right {
    order: 2;
  }

  #nav-center {
    order: 3;
    width: 100%;
    margin-top: 2px;
  }

  #nav-title {
    font-size: clamp(24px, 6vw, 34px);
    line-height: 1.05;
    text-align: center;
  }

  #nav-tagline {
    font-size: 12px;
    letter-spacing: 3px;
    text-align: center;
    color: white;
  }

  .nav-icon,
  #email-trigger {
    height: 34px;
  }

  /* ---------------- MAIN PANELS ---------------- */
  #main-content {
    min-height: auto;
  }

  #main-panels {
    display: block;
    width: 100%;
    padding: 0 14px 22px;
  }

  #panel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 22px;
    height: auto;
    padding: 0;
  }

  .column {
    width: 100%;
    padding: 0;
  }

  .panel-label {
    padding: 8px 10px;
    border-radius: 12px 12px 0 0;
  }

  .tab-btn-about-container,
  .tab-btn-works-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .tab-btn-about,
  .tab-btn-works {
    font-size: 13px;
    padding: 6px 10px;
    letter-spacing: 1px;
  }

  .panel {
    width: 100%;
  }

  .container {
    width: 100%;
  }

  #panelBackgroundImage {
    width: 100%;
    height: auto;
    display: block;
  }

  .backgroundOverlay {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 0 0 8px 8px;
  }

  /* left content panel height */
  #bio-tab .container,
  #outreach-tab .container,
  #media-tab .container,
  #shop-tab .container {
    aspect-ratio: 1 / 1.15;
  }

  /* right panel slightly taller for CV/PDF */
  #cv-tab .container,
  #science-tab .container,
  #software-tab .container,
  #policy-tab .container {
    aspect-ratio: 1 / 1.25;
  }

  #bio-tab iframe,
  #outreach-tab iframe,
  #media-tab iframe,
  #shop-tab iframe,
  #cv-tab iframe,
  #science-tab iframe,
  #software-tab iframe,
  #policy-tab iframe {
    width: 100%;
    height: 100%;
    display: block;
  }

  /* ---------------- EMAIL MODAL ---------------- */
  #email-box {
    width: min(92vw, 520px);
    padding: 22px 18px 18px;
    border-radius: 20px;
  }

  #email-box h3 {
    font-size: 0.9rem;
    letter-spacing: 4px;
  }

  #email-box input,
  #email-box textarea {
    font-size: 0.95rem;
    padding: 12px 14px;
  }

  .email-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .email-buttons button {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }
}


