/* tolax.me home page only. Builds on site.css (colours, header, buttons, cards, FAQ, footer). */

/* ---------------------------------------------------------------- hero */

.home-hero {
  padding: 96px 0 72px;
}

/* A faint grid that fades out from the middle, drifting slowly. */
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 35%, #000, transparent 75%);
  mask-image: radial-gradient(60% 70% at 50% 35%, #000, transparent 75%);
  opacity: 0.45;
  animation: grid-drift 30s linear infinite;
  pointer-events: none;
}

@keyframes grid-drift {
  to {
    background-position: 48px 48px, 48px 48px;
  }
}

.home-hero .wrap {
  z-index: 1;
  grid-template-columns: 1.3fr 0.7fr;
}

.home-hero .eyebrow {
  margin-bottom: 22px;
}

.home-hero h1 {
  font-size: clamp(40px, 5.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.home-hero h1 span {
  display: block;
  text-wrap: balance;
  background: linear-gradient(90deg, var(--text-3), var(--text-2), var(--text-3));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 6s ease-in-out infinite;
}

@keyframes sheen {
  0%,
  100% {
    background-position: 0% 0;
  }
  50% {
    background-position: 100% 0;
  }
}

.home-hero .lead {
  max-width: 460px;
}

/* Hero items come in one after another. */
.home-hero .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.home-hero .reveal:nth-child(3) {
  transition-delay: 160ms;
}

.home-hero .reveal:nth-child(4) {
  transition-delay: 240ms;
}

.home-hero .hero-art {
  transition-delay: 120ms;
}

/* ---------------------------------------------------------------- logo strip */

.logos {
  position: relative;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* Two identical lists side by side; moving the track by half its width lines the second list up
   exactly where the first began, so the loop has no jump. */
.logos-track {
  display: flex;
  width: max-content;
  animation: logos-run 45s linear infinite;
}

.logos ul {
  display: flex;
  gap: 52px;
  margin: 0;
  padding: 0 52px 0 0;
  list-style: none;
}

.logos li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 15.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 200ms var(--ease);
}

.logos li:hover {
  color: var(--text);
}

.logos svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: currentColor;
}

@keyframes logos-run {
  to {
    transform: translateX(-50%);
  }
}

/* ---------------------------------------------------------------- sections */

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.faq.center {
  margin-right: auto;
  margin-left: auto;
}

/* Cards come in one after another. */
.stagger > .reveal:nth-child(2) {
  transition-delay: 90ms;
}

.stagger > .reveal:nth-child(3) {
  transition-delay: 180ms;
}

.stagger .card .icon {
  transition: transform 250ms var(--ease);
}

.stagger .card:hover .icon {
  transform: translateY(-2px) scale(1.06);
}

#waris .checks li {
  align-items: center;
}

/* ---------------------------------------------------------------- small screens */

@media (max-width: 900px) {
  .home-hero {
    padding: 44px 0 56px;
    text-align: center;
  }

  .home-hero .wrap {
    grid-template-columns: 1fr;
  }

  .home-hero .lead {
    margin-right: auto;
    margin-left: auto;
  }

  .home-hero .cta {
    justify-content: center;
  }

  .logos {
    padding: 24px 0;
  }

  .logos ul {
    gap: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 520px) {
  .home-hero h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .logos li {
    font-size: 14.5px;
  }

  .logos svg {
    width: 20px;
    height: 20px;
  }
}
