/*
  Features 22 — standalone HTML/CSS/JS implementation.
  No build step, no framework, no external dependency: copy these three
  files into any project and open index.html as-is.
*/

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

:root {
  --white: #ffffff;
  --slate-500: #64748b;
  --slate-900: #0f172a;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate-900);
  background-color: var(--white);
  line-height: 1.5;
}

.features {
  padding: clamp(4rem, 3.5rem + 2vw, 6rem) clamp(1rem, 0.3rem + 3vw, 2rem);
}

.features__grid {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
}

.media {
  overflow: hidden;
  border-radius: 1rem;
}

.media img {
  display: block;
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

.quote-block {
  display: flex;
  gap: 1.5rem;
}

.line {
  flex-shrink: 0;
  width: 0.25rem;
  border-radius: 999px;
  background-color: var(--rose-500);
  transform-origin: top;
}

.kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--rose-600);
}

.quote {
  margin: 0.75rem 0 0;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--slate-900);
}

.attribution__name {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.attribution__role {
  margin: 0;
  font-size: 0.875rem;
  color: var(--slate-500);
}

@media (min-width: 640px) {
  .media img {
    height: 24rem;
  }

  .quote {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  .media img {
    height: 26rem;
  }
}

/* Motion — disabled entirely under reduced motion; the line already
   renders at full height and the quote is fully visible outside this
   media query. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-features22-line {
    from {
      transform: scaleY(0);
    }
    to {
      transform: scaleY(1);
    }
  }

  @keyframes al-features22-fade {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .line.grow {
    animation: al-features22-line 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .content.fade {
    animation: al-features22-fade 600ms 150ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
