* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: #ffffff;
  color: #171717;
}

.section {
  padding: 4rem 1rem;
}

.panel {
  max-width: 56rem;
  margin: 0 auto;
  border-radius: 1.5rem;
  background: #0a0a0a;
  padding: 2.5rem 1.5rem;
}

.panel__text {
  max-width: 22rem;
  margin: 0 auto;
  text-align: center;
}

.panel__heading {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.panel__copy {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #d4d4d4;
}

.grid {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}

.tile {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --rx: 0deg;
  --ry: 0deg;
}

.tile__glyph {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 640px) {
  .panel__heading {
    font-size: 1.875rem;
  }

  .panel {
    padding: 3.5rem 2.5rem;
  }

  .tile {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .panel__heading {
    font-size: 2.25rem;
  }
}

/*
 * Logos 18 — "dark stagger reveal + soft 3D tilt on hover" animation
 * identity. Same canonical keyframes as `Logos18.tailwind.css`. The tile
 * entrance is deliberately opacity-only: each tile's own `transform` is
 * continuously driven by the tilt's `--rx`/`--ry` custom properties (see
 * script.js) via a normal-priority declaration, and a `transform`-based
 * entrance animation would keep controlling that property via its
 * `fill-mode: both` hold even after it finishes — not just on hover, but
 * forever — which would block the tilt from ever applying at all. Scoped
 * so this never collides with another Resource's own animation layer.
 * Entirely disabled under reduced motion: tiles stay flat.
 */
@keyframes al-logos18-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes al-logos18-text-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .panel__text {
    animation: al-logos18-text-reveal 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .tile {
    animation: al-logos18-fade 500ms ease both;
    transition:
      transform 150ms ease,
      box-shadow 200ms ease;
    transform: perspective(600px) rotateX(var(--rx)) rotateY(var(--ry));
  }

  .tile:hover {
    box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.5);
  }
}
