/* ==========================================================================
   Utility classes
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* Display */
.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Flex helpers */
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* Spacing utilities */
.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }

/* Colors */
.text-muted { color: var(--fg-muted); }
.text-subtle { color: var(--fg-subtle); }
.text-accent { color: var(--accent); }

/* Sizing */
.w-full { width: 100%; }
.h-full { height: 100%; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: var(--tracking-snug);
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--dur-base) var(--ease-out-quart);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--accent-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border);
}

.btn--secondary:hover {
  background: var(--surface-hover);
  color: var(--fg);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: var(--surface);
  color: var(--fg);
  transform: translateY(-2px);
}

.btn--lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--fs-lg);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-sm);
}

.btn__icon {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-base) var(--ease-out-quart);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

/* ==========================================================================
   Pills / Tags
   ========================================================================== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--accent-muted);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border: 1px solid transparent;
}

.pill--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--fg-muted);
}

/* ==========================================================================
   Dividers
   ========================================================================== */

.divider {
  height: 1px;
  background: var(--border);
  border: none;
}

/* ==========================================================================
   Reveal-init state (before GSAP kicks in)
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
}

[data-reveal-ready] {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
