body {
      margin: 0;
      padding: 0;
      min-height: 100vh;
      background: linear-gradient(-45deg, #b1d3dc, #fdfdfd, #9abac7, #f7f9fc);
      background-size: 600% 600%;
      animation: backgroundFlow 30s ease infinite;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      font-family: 'Inter', sans-serif;
      color: #889396;
      user-select: none;
      line-height: 2.5;
    }

    @keyframes backgroundFlow {
      0% { background-position: 0% 50%; }
      50% { background-position: 75% 50%; }
      100% { background-position: 0% 50%; }
    }

    .fade {
      opacity: 0;
      transition: opacity 4s ease-in-out;
    }

    .fade.show {
      opacity: 1;
    }

    .stillness-text {
      font-size: 1.5rem;
      letter-spacing: .1em;
      font-weight: 200;
    }

    .stillness-text span {
      opacity: 0;
      display: inline-block;
      transform: translateY(10px) translateZ(0); /* GPU kick */
      will-change: opacity, transform;           /* hint Safari to prep */
      animation: fadeIn 0s ease-out forwards;
      line-height: 3;
    }

    @keyframes fadeIn {
      0% { opacity: 0; transform: translateY(10px); }
      100% { opacity: 1; transform: translateY(0); }
    }
    
    span {
  animation: fadeIn 1.5s ease-out forwards;
}

    .infinity-frame {
      padding: 4rem;
      border-radius: 9999px;
      overflow: hidden;
    }

    .glow-border {
      background: radial-gradient(circle at center, rgba(255,255,255,0.05), rgba(255,255,255,0));
      filter: blur(30px);
      animation: dissolveGlow 8s ease-in-out infinite;
    }

    @keyframes dissolveGlow {
      0% { transform: scale(1); opacity: 0.25; }
      50% { transform: scale(1.1); opacity: 0.05; }
      100% { transform: scale(1); opacity: 0.2; }
    }

    .button {
      padding: .5rem 1rem;
      font-size: 1rem;
      font-family: 'Playfair Display', serif;
      border-radius: 2px;
      transition: all 10s ease;
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
      text-decoration: none;
      cursor: pointer;
      background-color: #5a7b7f;
      color: #ffffff;
      border: 1px solid rgba(65, 87, 93, .35);
      opacity: 0;
      pointer-events: none;
    }
    
    .button:hover {
    background-color: #668a92;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(29, 123, 127, 0.2);
    }

    .button.show {
      opacity: .9;
      pointer-events: auto;
    }
    
    @-webkit-keyframes fadeIn {
  0% { opacity: 0; -webkit-transform: translateY(10px); }
  100% { opacity: 1; -webkit-transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

    
#controls {
  display: none;                /* hidden until recorder stops */
  justify-content: center;
  align-items: center;
  gap: 1rem;                     /* space between buttons */
  margin-top: 1.5rem;
}

#controls button {
    transition: all 10s ease;
  padding: .6rem 1.2rem;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
  border-radius: 4px;
  background-color: #5a7b7f;
  color: #fff;
  border: 1px solid rgba(65,87,93,.35);
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease, transform 0.3s ease;
}

#controls button:hover {
  background-color: #668a92;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(29,123,127,0.2);
}

#controls.show button {
  opacity: .95;
  pointer-events: auto;
}

.cool {
    
}

video {
  filter: grayscale(80%) contrast(1.2) blur(0px);
}
