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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  background: #111110;
  min-height: 100vh;
}

main {
  width: 100%;
}

/* Each page is a full-viewport slide */
.slide {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  padding: 16px 44px 44px 16px;
}

.slide img {
  max-width: 100%;
  max-height: calc(100vh - 60px);
  aspect-ratio: 1920 / 1071;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Video link slide */
.slide-video {
  position: relative;
  cursor: pointer;
}

.slide-video img {
  transition: filter 0.3s ease, transform 0.3s ease;
}

.slide-video:hover img {
  filter: brightness(0.75);
  transform: scale(1.01);
}

/* Play button overlay */
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.play-overlay svg {
  width: 32px;
  height: 32px;
  fill: white;
  margin-left: 4px;
}

.slide-video:hover .play-overlay {
  background: rgba(255, 0, 0, 0.85);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Caption under video */
.video-caption {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
  transition: color 0.3s ease;
}

.slide-video:hover .video-caption {
  color: rgba(255, 255, 255, 0.9);
}

/* Page counter (now inside footer) */
.page-counter {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* Nav dots */
.nav-dots {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.nav-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.4);
}

.nav-dot.active {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.3);
}

/* Scroll hint on first page */
.scroll-hint {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 10;
  transition: opacity 0.5s;
}

.scroll-hint svg {
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Visually hidden but readable by search engines and screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer bar */
.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 28px;
  z-index: 10;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.footer-bar a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bar a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bar .page-counter {
  text-align: right;
}

@media (max-width: 640px) {
  .slide { padding: 12px 12px 44px 12px; }
  .slide img { max-height: calc(100vh - 56px); }
  .nav-dots { display: none; }
  .footer-bar { padding: 8px 16px; font-size: 11px; }
}
