.center { display: block; margin-left: auto; margin-right: auto; width: 50%; }
 
body {
  background-color: white;
  color: black;
  text-align: center;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
}

@font-face { 
	font-family: "VCR"; 
	src: url("vcr.ttf") format("truetype"); 
	font-weight: normal;
	font-style: normal; 
	font-display: swap; 
}

.vhs-text {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  text-align: center;
  padding: 0 20px;
  font-family: "VCR", serif;
}

.vcr-button {
    display: inline-block;
    padding: 2px 40px;

    color: white;
    background: transparent;

    font-family: "VCR", serif;
    font-size: 50px;
    text-decoration: none;

    cursor: pointer;
}

.vcr-button:hover {
    color: #000000;
    background: white;
}

.vcr-selected {
    display: inline-block;
    padding: 2px 40px;

    color: #000000;
    background: white;

    font-family: "VCR", serif;
    font-size: 50px;
    text-decoration: none;
}

.projects {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 30px;

  width: 1400px;
  max-width: 90%;

  margin: 40px auto;
}

.project-box {
  height: 400px;

  border: 6px solid white;

  display: flex;
  align-items: center;

  padding: 15px;

  box-sizing: border-box;

  color: white;
  text-decoration: none;

  font-family: "VCR", serif;

  transition: background-color 0.15s, color 0.15s;
}

.project-info {
  flex: 1;
}

.project-box h2 {
  font-size: 50px;
  margin: 0 0 25px 0;
}

.project-box p {
  font-size: 20px;
  margin: 0;
}

.project-box img {
  width: 300px;
  max-height: 360px;
  object-fit: contain;
  margin-left: 20px;
}


/* HOVER */

.project-box:hover {
  background-color: white;
  color: black;
}

.project-box:hover h2,
.project-box:hover p {
  color: black;
}
 
/* -------- THE GRID ITSELF -------- */
.grid-bg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #000014;
}
 
.grid-bg::before,
.grid-bg::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  bottom: -50px;
  left: -50px;
  background-size: 48px 48px;
  animation: gridScroll 6s linear infinite;
}
 
/* top-of-page color: rgb(0, 38, 255) */
.grid-bg::before {
  background-image:
    linear-gradient(to right, rgba(0, 38, 255, 0.5) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(0, 38, 255, 0.5) 2px, transparent 2px);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}
 
/* bottom-of-page color: rgb(0, 255, 255) */
.grid-bg::after {
  background-image:
    linear-gradient(to right, rgba(0, 255, 255, 0.5) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(0, 255, 255, 0.5) 2px, transparent 2px);
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 100%);
}
 
@keyframes gridScroll {
  0%   { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}
#root {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
.bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  width: 100%;
}
#root {
  position: relative;
  width: 100%;   /* changed from 100vw */
  height: 100%;  /* changed from 100vh */
  overflow: hidden;
}
.inner-headings {
  border: 0px solid #ddd;
  height: 70px;
  line-height: 60px;
  overflow:hidden;
}
.inner-headings span{
  position: relative;
  animation: animation 10s
  ease infinite;
}
@keyframes animation {
 0%,
 100% {
  top: 0; 
 }
 10% {
  top: 0; 
 }
 15% {
  top: -60px; 
 }
 25% {
  top: -60px; 
 }
 30% {
  top: -120px; 
 }
 40% {
  top: -120px; 
 }
 45% {
  top: -180px; 
 }
 55% {
  top: -180px; 
 }
 60% {
  top: -240px; 
 }
 70% {
  top: -240px; 
 }
 75% {
  top: -300px; 
 }
 85% {
  top: -300px; 
 }
}
.glass-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  top: 25%;
}

/* -------- INTRO ANIMATION -------- */
#root {
  opacity: 0;
  transition: opacity 0.6s ease;
}
#root.visible {
  opacity: 1;
}

#intro-overlay {
  position: fixed;
  background: #000014; /* matches .grid-bg so the cut to the real page isn't jarring */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease;
}
#intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

#intro-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 500px;
  height: auto;
  transform: translate(-50%, -50%);
  transition:
    top 0.9s cubic-bezier(.2, .8, .2, 1),
    left 0.9s cubic-bezier(.2, .8, .2, 1),
    width 0.9s cubic-bezier(.2, .8, .2, 1),
    height 0.9s cubic-bezier(.2, .8, .2, 1);
}

      .vcr-volume-widget {
        display: none;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 999;
        font-family: 'VCR', monospace;
        color: #fff;
      }

      .vcr-volume-widget.visible {
        display: block;
      }

      .vcr-volume-btn {
        font-family: 'VCR', monospace;
        font-size: 26px;
        letter-spacing: 2px;
        background: none;
        border: none;
        padding: 0;
        color: inherit;
        cursor: pointer;
      }

      .vcr-volume-popover {
        display: none;
      }

      .vcr-volume-popover.open {
        display: block;
      }

      .vcr-volume-track {
        cursor: pointer;
        user-select: none;
        touch-action: none;
      }

      .vcr-volume-bar {
        font-size: 22px;
        letter-spacing: 0;
        white-space: pre;
        line-height: 1.2;
      }

.vcr-now-playing {
  position: fixed;
  top: 90px;      /* sits below the volume control — nudge to taste */
  left: 20px;
  z-index: 998;
  font-family: 'VCR', monospace;
  color: #fff;
  font-size: 22px;
  line-height: 1.6;
  pointer-events: none;
  text-align: left;
}

.vcr-now-playing-spin {
  position: fixed;
  top: 170px;     /* nudge so it lines up under the text */
  left: -60px;    /* half the image's width, so it's cut off by the edge */
  width: 150px;
  height: 150px;
  z-index: 997;
  animation: vcr-now-playing-spin 6s linear infinite;
  pointer-events: none;
}

@keyframes vcr-now-playing-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.vcr-now-playing,
.vcr-now-playing-spin {
  display: none;
}

.vcr-now-playing.visible,
.vcr-now-playing-spin.visible {
  display: block;
}

