body {
  margin: 0;
  font-family: Arial, sans-serif;
  padding-top: 0;
  overflow-x: hidden;
}

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

/* NAV */
nav {
  background: #cbc8c8;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  width: 100%;
  left: 0;
  z-index: 10;
  transition: background 5.4s ease;
}

nav.nav-scrolled {
  background: #860404;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  background:  #cbc8c8;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  width: 70vw;
  max-width: 320px;
  height: calc(100vh - 80px);
  padding: 0 20px;
  gap: 20px;
  margin: 0;
  color: #333;
  z-index: 11;
  max-height: 100vh;
  opacity: 0;
  overflow: hidden;
  transform: translateX(100%);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, padding 0.25s ease;
}

.nav-links.is-open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  padding: 20px;
}

.menu-toggle {
  display: block;
  cursor: pointer;
  font-size: 24px;
}

.logo h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

/* Fade-in section */
.fade-in {
  opacity: 0;
  animation: fadeIn 3.5s ease forwards;
  font-family: 'Times New Roman', Times, serif;
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
    opacity: 1;
  }
}

.hero {
  padding: 40px 20px;
}

.page-content {
  padding: 40px 20px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.scroll-spacer {
  height: 140vh;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Box */
.box {
  width: 100px;
  height: 100px;
  background: rgb(212, 206, 206);
  position: relative;
  margin: 20px;
}

/* Image */
.zoom-img {
  display: block;
  width: 300px;
  height: auto;
  margin: 20px auto;
  transition: transform 0.4s ease;
  transform-origin: top center;
}

.zoomed {
  transform: translateY(32px) scale(1.3);
}
.ticker {
  height: 50px;           /* visible area */
  overflow: hidden;
  position: relative;
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
  color:#860404;
  font-weight: 500;
  letter-spacing: 5px;
}

.ticker-text {
  position: absolute;
  width: 100%;
}

.ticker-text p {
  margin: 0;
  height: 40px;
  line-height: 40px;
  font-size: 1.5rem;
}