html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background:#000;
}

.fixed-bg {
  position: fixed;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:100vw;
  height:100vh;
}

.text-img {
  display:none;
}

canvas {
  position: absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);  
  aspect-ratio: 1;
  width: 100%;
  height: auto;
}

@media (max-aspect-ratio: 1) {
  canvas {
    width: auto;
    height: 100%;
  }
}

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400&display=swap');

/* ── Navigation ── */

.nav {
  position: fixed;
  top: clamp(20px, 4vh, 44px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

.nav-link {
  position: relative;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: clamp(0.7rem, 1.4vw, 0.9rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding-bottom: 6px;
  transition: color 0.3s ease;
}

/* The underline track (always visible, very dim) */
.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

/* The animated underline */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(180, 220, 255, 0.9) 40%,
    rgba(255, 255, 255, 1) 50%,
    rgba(180, 220, 255, 0.9) 60%,
    transparent
  );
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  opacity: 0;
  box-shadow: 0 0 8px rgba(140, 200, 255, 0.6);
}

.nav-link:hover {
  color: rgba(255, 255, 255, 1);
}

.nav-link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* ── Frost Button ── */

.frost-btn {
  position: fixed;
  bottom: clamp(24px, 5vh, 52px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.75em 2.6em;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(140, 200, 255, 0.06);
  cursor: pointer;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, transform 0.2s ease;
}

.frost-btn__text {
  position: relative;
  z-index: 1;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.35s ease;
}

.frost-btn__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.13) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: none;
}

.frost-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(180, 220, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07) inset,
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(140, 200, 255, 0.14);
  transform: translateX(-50%) translateY(-2px);
}

.frost-btn:hover .frost-btn__text {
  color: rgba(255, 255, 255, 1);
}

.frost-btn:hover .frost-btn__shimmer {
  transform: translateX(100%);
  transition: transform 0.55s ease;
}

.frost-btn:active {
  transform: translateX(-50%) translateY(0px) scale(0.97);
}
