*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #060505;
  color: #d9d1c4;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#poster {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#poster.hidden {
  opacity: 0;
}

#webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  cursor: default;
}

/* Screen reader and search engine indexing container */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Small, elegant normal text email at the bottom of the screen (matches .contact in global.css) */
.site-footer {
  position: fixed;
  bottom: clamp(14px, 3.2vh, 28px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.footer-email {
  pointer-events: auto;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  color: rgb(217 209 196 / 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgb(217 209 196 / 0.28);
  padding: 2px 4px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: text;
}

.footer-email:hover,
.footer-email:focus-visible {
  color: rgb(217 209 196 / 1.0);
  border-bottom-color: rgb(217 209 196 / 0.75);
  text-shadow: 0 0 10px rgba(217, 209, 196, 0.35);
  outline: none;
}

@media (max-width: 600px) {
  .footer-email {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    padding: 2px 3px;
  }
}

/* Subtle copied notification */
#copy-toast {
  position: fixed;
  bottom: clamp(50px, 7.5vh, 66px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 20;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f1d4ad;
  background: rgba(14, 11, 9, 0.88);
  border: 1px solid rgba(200, 149, 107, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

#copy-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
