/* Layout + background kept intentionally sparse to let the wordmark carry the page */
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: white;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden; /* avoid vertical scrollbar from transforms on mobile */
}

/* Marquee */
.ticker {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none; /* avoids accidental text selection */
}

.track {
  display: inline-flex;
  align-items: center;
  gap: 6vw; /* spacing scales with viewport */
  will-change: transform; /* smoother composited animation */
  animation: scroll var(--speed, 18s) linear infinite;
}

/* Fallback for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .track {
    animation: none;
  }
}

/* “circa” word styling */
.word {
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.1em;
  font-size: clamp(48px, 12vw, 180px);
  line-height: 1;
  color: black;
  user-select: none;
  white-space: nowrap;
  opacity: 0.9; /* slightly softened */
}

/* Exactly one active at a time */
.word.active {
  color: #938aff; /* Circa purple */
  opacity: 1;
}

/* Keyframes scroll half the content width; we duplicate content to loop seamlessly */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Footer */
.footer-left,
.footer-center,
.footer-right {
  position: fixed;
  bottom: calc(10px + env(safe-area-inset-bottom));
  font-size: 0.9rem;
  font-weight: 300;
  user-select: none;
  color: black;
  text-decoration: none;
  pointer-events: auto; /* re-enable for footer links */
}

.footer-left {
  left: 20px;
  cursor: pointer;
}
.footer-center {
  left: 50%;
  transform: translateX(-50%);
}
.footer-right {
  right: 20px;
}

.word {
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.1em;
  font-size: clamp(28px, 8vw, 120px); /* smaller */
  line-height: 1;
  color: gray;
  user-select: none;
  white-space: nowrap;
  opacity: 0.4;
  transition: color 0.6s ease, opacity 0.6s ease; /* smooth fade */
}

.word.active {
  color: #938aff; /* Circa purple */
  opacity: 1;
}
