/* Homepage: slowly scrolling photo collage behind a tinted overlay */

body.collage-page {
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

.collage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #fff;
}

.collage-track {
  display: flex;
  padding: 0 var(--margin, 10px);
  height: 100%;
}

.collage-col {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.collage-col-inner {
  will-change: transform;
  animation: collage-scroll var(--duration, 60s) linear infinite;
}

.collage-item {
  display: block;
  width: 100%;
}

@keyframes collage-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(-1 * var(--shift, 0px))); }
}

@media (prefers-reduced-motion: reduce) {
  .collage-col-inner { animation: none; }
}

.collage-tint {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 31, 0.55);
}

/* Header sits on top of the collage */
.collage-page header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.collage-page .brand,
.collage-page header nav a { color: #fff; }

/* Centered text over the collage */
.collage-hero {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  max-width: none;
  color: #fff;
}

.collage-hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 88px);
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  line-height: 1.05;
}

.collage-hero p {
  margin: 18px 0 0;
}

.collage-tagline {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
}
