@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&display=swap');

.afs {
  --green: #83e509;
  --ink: #0a0a0a;
  --start: 0;
  --step: 45;
  position: relative;
  padding: 0;
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: 'Inter', 'Space Grotesk', system-ui, Arial, sans-serif;
  overflow: clip;
}
.afs *,
.afs *:after,
.afs *:before {
  box-sizing: border-box;
}

.afs-sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 28px 5rem;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.afs-title {
  margin: 0;
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.05;
}

.afs-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0 5rem 25vh;
  max-width: 1100px;
}

.afs-step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vh 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 1;
}
.afs-step:last-child {
  border-bottom: none;
}

.afs-num {
  font-family: 'Space Grotesk', monospace;
  font-size: clamp(40px, 7vw, 92px);
  font-weight: 700;
  line-height: 1;
  color: var(--green);
}

.afs-word {
  font-size: clamp(44px, 10vw, 130px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0.15em 0 0.25em;
  color: oklch(80% 0.3 calc(var(--start) + (var(--step) * var(--i, 0))));
}

.afs-desc {
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 680px;
  margin: 0 0 1.4em;
}

.afs-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.afs-tags li {
  font-size: 13px;
  color: #fff;
  border: 1px solid rgba(131, 229, 9, 0.5);
  background: rgba(131, 229, 9, 0.07);
  padding: 7px 14px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

@supports (animation-timeline: view()) {
  .afs-step {
    animation: afs-brighten linear both;
    animation-timeline: view();
    animation-range: cover 30% cover 70%;
  }
}
@keyframes afs-brighten {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
    filter: brightness(1.2);
  }
}

@media (max-width: 760px) {
  .afs-sticky {
    padding: 20px 24px;
  }
  .afs-steps {
    padding: 0 24px 25vh;
  }
  .afs-step {
    min-height: 80vh;
  }
}
