@font-face {
  font-family: 'Ma Shan Zheng';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/MaShanZheng-Regular.woff2') format('woff2');
}

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

html, body {
  background: #000;
}

#loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  z-index: 100;
}

.scroll-wrapper {
  height: 500vh;
}

.hero {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

#text-block {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: #fff;
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
}

#scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.line-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.line-track {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

.line-fill {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  animation: line-drop 1.8s ease-in-out infinite;
}

@keyframes line-drop {
  0%   { top: -100%; }
  60%  { top: 100%; }
  61%  { top: -100%; }
  100% { top: -100%; }
}

.names {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.15em;
}

.year {
  font-size: clamp(1.25rem, 2.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.3em;
}
