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

html,
body {
  width: 100%;
  height: 100%;
  background-color: #000000;
  color: #f5f5f7;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

#cas-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  display: block;
  background-color: #000000;
  z-index: 0;
  touch-action: none;
}

.identity {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  pointer-events: none;
  user-select: none;
}

.identity-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem);
  animation: surface-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Soft pure-black atmospheric vignette behind text for effortless legibility */
.identity-inner::before {
  content: "";
  position: absolute;
  inset: -48% -42%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.56) 46%,
    rgba(0, 0, 0, 0) 78%
  );
  pointer-events: none;
  z-index: -1;
}

.brand {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 6.2vw, 4.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: #f5f5f7;
  text-shadow: 0 0 32px rgba(0, 0, 0, 0.9);
}

.contact {
  position: relative;
  margin-top: clamp(1rem, 2.2vh, 1.5rem);
  padding-bottom: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
  font-weight: 300;
  letter-spacing: 0.045em;
  color: rgba(245, 245, 247, 0.66);
  text-decoration: none;
  pointer-events: auto;
  user-select: text;
  transition: color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(125, 211, 252, 0.85) 0%,
    rgba(245, 245, 247, 0.75) 50%,
    rgba(245, 183, 210, 0.85) 100%
  );
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.contact:hover,
.contact:focus-visible {
  color: #ffffff;
  outline: none;
}

.contact:hover::after,
.contact:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

@keyframes surface-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .identity-inner {
    animation: none;
  }

  .contact,
  .contact::after {
    transition: none;
  }
}
