.hx-section {
  padding-block: var(--hx-section-space);
}

.hx-section--surface {
  background: var(--hx-color-surface);
}

.hx-section--soft {
  background: var(--hx-color-surface-soft);
}

.hx-grid {
  display: grid;
  gap: 1.5rem;
}

.hx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hx-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hx-cluster {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hx-text-center { text-align: center; }
.hx-text-soft { color: var(--hx-color-text-soft); }
.hx-mb-0 { margin-bottom: 0; }
.hx-mt-0 { margin-top: 0; }
.hx-hidden { display: none !important; }

[data-hx-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-hx-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .hx-grid--4,
  .hx-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hx-grid--4,
  .hx-grid--3,
  .hx-grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-hx-reveal] {
    opacity: 1;
    transform: none;
  }
}
